archetype-resources.pom.xml Maven / Gradle / Ivy
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>\${groupId}</groupId> <artifactId>\${artifactId}</artifactId> <version>\${version}</version> <packaging>jar</packaging> <name>A Hazelcast Simulator Test project</name> <url>http://www.myorganization.org</url> <properties> <hazelcast.version>${hazelcast.version}</hazelcast.version> <hazelcast-simulator.version>${project.version}</hazelcast-simulator.version> <java.version>1.6</java.version> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> </properties> <repositories> <repository> <id>snapshot-repository</id> <name>Maven2 Snapshot Repository</name> <url>https://oss.sonatype.org/content/repositories/snapshots</url> </repository> </repositories> <dependencies> <dependency> <groupId>com.hazelcast.simulator</groupId> <artifactId>simulator</artifactId> <version>${hazelcast-simulator.version}</version> <scope>compile</scope> </dependency> <dependency> <groupId>com.hazelcast.simulator</groupId> <artifactId>driver-hazelcast4</artifactId> <version>${hazelcast-simulator.version}</version> <scope>compile</scope> </dependency> <dependency> <groupId>com.hazelcast</groupId> <artifactId>hazelcast</artifactId> <version>\${hazelcast.version}</version> <scope>compile</scope> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifactId> <version>1.6</version> <executions> <execution> <id>process-classes</id> <phase>process-classes</phase> <configuration> <target> <chmod file="workdir/run.sh" perm="755"/> </target> </configuration> <goals> <goal>run</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.1</version> <configuration> <source>\${java.version}</source> <target>\${java.version}</target> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <version>2.8</version> <executions> <execution> <id>copy-dependencies</id> <phase>package</phase> <goals> <goal>copy-dependencies</goal> </goals> <configuration> <excludeTransitive>true</excludeTransitive> <!-- the com.hazelcast libraries are excluded, because an explicit version is configured in the workerdir/simulator.properties. If you want to provide your own hazelcast dependencies, set VERSION_SPEC to none and remove 'com.hazelcast' from the excludedGroupIds --> <excludeGroupIds>com.hazelcast.simulator,com.hazelcast</excludeGroupIds> <outputDirectory>\${project.build.directory}</outputDirectory> <overWriteReleases>false</overWriteReleases> <overWriteSnapshots>false</overWriteSnapshots> <overWriteIfNewer>true</overWriteIfNewer> </configuration> </execution> </executions> </plugin> </plugins> </build> </project>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy