archetype-resources.pom.xml Maven / Gradle / Ivy
<?xml version="1.0" encoding="UTF-8"?> <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>\${name}</name> <description>This is your WildFly subsystem</description> <properties> <version.wildfly.core>${version.wildfly.core}</version.wildfly.core> <version.junit>4.13.2</version.junit> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <module.name>\${module}</module.name> <!-- other plugin versions --> <version.compiler.plugin>${version.compiler.plugin}</version.compiler.plugin> <version.surefire.plugin>${version.surefire.plugin}</version.surefire.plugin> <version.antrun.plugin>${version.antrun.plugin}</version.antrun.plugin> <!-- maven-compiler-plugin --> <maven.compiler.release>${maven.compiler.release}</maven.compiler.release> </properties> <build> <!-- Maven will append the version to the finalName (which is the name given to the generated war, and hence the context root) --> <finalName>\${project.artifactId}</finalName> <plugins> <plugin> <artifactId>maven-compiler-plugin</artifactId> <version>\${version.compiler.plugin}</version> <configuration> <source>\${maven.compiler.release}</source> <target>\${maven.compiler.release}</target> <!-- put your configurations here --> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>\${version.surefire.plugin}</version> <!-- <configuration> <redirectTestOutputToFile>true</redirectTestOutputToFile> <enableAssertions>true</enableAssertions> <argLine>-Xmx512m</argLine> <systemProperties> <property> <name>jboss.home</name> <value>${jboss.home}</value> </property> </systemProperties> <includes> <include>**/*TestCase.java</include> </includes> <forkMode>once</forkMode> </configuration> --> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifactId> <inherited>false</inherited> <version>\${version.antrun.plugin}</version> <executions> <execution> <id>build-dist</id> <goals> <goal>run</goal> </goals> <phase>package</phase> <configuration> <target> <!-- Replace the '.' in ${module.name} with '/' to get its path --> <tempfile property="temp.file"/> <echo message="${module.name}" file="${temp.file}"/> <replace file="${temp.file}" token="." value="/"/> <loadfile srcfile="${temp.file}" property="module.path"/> <delete file="${temp.file}"/> <delete dir="target/module"/> <property name="module.dir" value="target/module/${module.path}/main"/> <copy file="src/main/resources/module/main/module.xml" tofile="${module.dir}/module.xml"/> <copy file="target/\${project.artifactId}.jar" todir="${module.dir}/"/> <echo>Module ${module.name} has been created in the target/module directory. Copy to your WildFly installation.</echo> </target> </configuration> </execution> </executions> </plugin> </plugins> </build> <dependencyManagement> <dependencies> <dependency> <groupId>org.wildfly.core</groupId> <artifactId>wildfly-controller</artifactId> <version>\${version.wildfly.core}</version> </dependency> <dependency> <groupId>org.wildfly.core</groupId> <artifactId>wildfly-server</artifactId> <version>\${version.wildfly.core}</version> </dependency> <dependency> <groupId>org.wildfly.core</groupId> <artifactId>wildfly-subsystem-test</artifactId> <type>pom</type> <scope>test</scope> <version>\${version.wildfly.core}</version> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <scope>test</scope> <version>\${version.junit}</version> </dependency> </dependencies> </dependencyManagement> <dependencies> <dependency> <groupId>org.wildfly.core</groupId> <artifactId>wildfly-controller</artifactId> </dependency> <dependency> <groupId>org.wildfly.core</groupId> <artifactId>wildfly-server</artifactId> </dependency> <dependency> <groupId>org.wildfly.core</groupId> <artifactId>wildfly-subsystem-test</artifactId> <type>pom</type> <scope>test</scope> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <scope>test</scope> </dependency> </dependencies> </project>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy