Project multi-module parent pom.xml: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<pre> </pre>") |
No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<pre> | <pre> | ||
<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/maven-v4_0_0.xsd"> | |||
<modelVersion>4.0.0</modelVersion> | |||
<name>User Friendly Name That May Include Spaces</name> | |||
<groupId>io.novaordis.groupId</groupId> | |||
<artifactId>artifactId-root</artifactId> | |||
<version>1.0.0-SNAPSHOT-1</version> | |||
<packaging>pom</packaging> | |||
<properties> | |||
<!-- | |||
Dependencies | |||
--> | |||
<novaordis.utilities.version>4.7.2</novaordis.utilities.version> | |||
<slf4j.version>1.7.6</slf4j.version> | |||
<junit.version>4.12</junit.version> | |||
<!-- | |||
End of Dependencies | |||
--> | |||
<source.java.version>1.8</source.java.version> | |||
<target.java.version>1.8</target.java.version> | |||
<test.scratch.directory>target/test-scratch</test.scratch.directory> | |||
<test.log.directory>target</test.log.directory> | |||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | |||
<maven.build.timestamp.format>MM/dd/yy</maven.build.timestamp.format> | |||
<release_date>${maven.build.timestamp}</release_date> | |||
</properties> | |||
<modules> | |||
<module>main</module> | |||
<module>release</module> | |||
</modules> | |||
<dependencies> | |||
<dependency> | |||
<groupId>io.novaordis.utilities</groupId> | |||
<artifactId>novaordis-utilities</artifactId> | |||
<version>${novaordis.utilities.version}</version> | |||
</dependency> | |||
<dependency> | |||
<groupId>org.slf4j</groupId> | |||
<artifactId>slf4j-api</artifactId> | |||
<version>${slf4j.version}</version> | |||
</dependency> | |||
<dependency> | |||
<groupId>org.slf4j</groupId> | |||
<artifactId>slf4j-log4j12</artifactId> | |||
<version>${slf4j.version}</version> | |||
</dependency> | |||
<!-- | |||
Testing Dependencies | |||
--> | |||
<dependency> | |||
<groupId>junit</groupId> | |||
<artifactId>junit</artifactId> | |||
<version>${junit.version}</version> | |||
<scope>test</scope> | |||
</dependency> | |||
<!-- | |||
End of Testing Dependencies | |||
--> | |||
</dependencies> | |||
<build> | |||
<plugins> | |||
<plugin> | |||
<groupId>org.apache.maven.plugins</groupId> | |||
<artifactId>maven-compiler-plugin</artifactId> | |||
<version>2.5.1</version> | |||
<configuration> | |||
<source>${source.java.version}</source> | |||
<target>${target.java.version}</target> | |||
<debug>true</debug> | |||
</configuration> | |||
</plugin> | |||
<plugin> | |||
<groupId>org.apache.maven.plugins</groupId> | |||
<artifactId>maven-source-plugin</artifactId> | |||
<version>3.0.1</version> | |||
<executions> | |||
<execution> | |||
<id>attach-sources</id> | |||
<phase>package</phase> | |||
<goals> | |||
<goal>jar</goal> | |||
</goals> | |||
</execution> | |||
</executions> | |||
</plugin> | |||
<plugin> | |||
<groupId>org.apache.maven.plugins</groupId> | |||
<artifactId>maven-antrun-plugin</artifactId> | |||
<version>1.8</version> | |||
<dependencies> | |||
<dependency> | |||
<groupId>org.apache.ant</groupId> | |||
<artifactId>ant</artifactId> | |||
<version>1.7.0</version> | |||
</dependency> | |||
</dependencies> | |||
<executions> | |||
<execution> | |||
<phase>generate-test-resources</phase> | |||
<configuration> | |||
<target> | |||
<mkdir dir="${test.scratch.directory}"/> | |||
</target> | |||
</configuration> | |||
<goals> | |||
<goal>run</goal> | |||
</goals> | |||
</execution> | |||
</executions> | |||
</plugin> | |||
<plugin> | |||
<groupId>org.apache.maven.plugins</groupId> | |||
<artifactId>maven-surefire-plugin</artifactId> | |||
<configuration> | |||
<argLine>-Xmx512m</argLine> | |||
<systemProperties> | |||
<property> | |||
<name>test.log.directory</name> | |||
<value>${test.log.directory}</value> | |||
</property> | |||
<property> | |||
<name>test.scratch.directory</name> | |||
<value>${test.scratch.directory}</value> | |||
</property> | |||
<property> | |||
<name>maven.injected.project.version</name> | |||
<value>${project.version}</value> | |||
</property> | |||
</systemProperties> | |||
</configuration> | |||
</plugin> | |||
</plugins> | |||
</build> | |||
</project> | |||
</pre> | </pre> |
Latest revision as of 17:48, 9 January 2018
<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/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <name>User Friendly Name That May Include Spaces</name> <groupId>io.novaordis.groupId</groupId> <artifactId>artifactId-root</artifactId> <version>1.0.0-SNAPSHOT-1</version> <packaging>pom</packaging> <properties> <!-- Dependencies --> <novaordis.utilities.version>4.7.2</novaordis.utilities.version> <slf4j.version>1.7.6</slf4j.version> <junit.version>4.12</junit.version> <!-- End of Dependencies --> <source.java.version>1.8</source.java.version> <target.java.version>1.8</target.java.version> <test.scratch.directory>target/test-scratch</test.scratch.directory> <test.log.directory>target</test.log.directory> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <maven.build.timestamp.format>MM/dd/yy</maven.build.timestamp.format> <release_date>${maven.build.timestamp}</release_date> </properties> <modules> <module>main</module> <module>release</module> </modules> <dependencies> <dependency> <groupId>io.novaordis.utilities</groupId> <artifactId>novaordis-utilities</artifactId> <version>${novaordis.utilities.version}</version> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-api</artifactId> <version>${slf4j.version}</version> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-log4j12</artifactId> <version>${slf4j.version}</version> </dependency> <!-- Testing Dependencies --> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>${junit.version}</version> <scope>test</scope> </dependency> <!-- End of Testing Dependencies --> </dependencies> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>2.5.1</version> <configuration> <source>${source.java.version}</source> <target>${target.java.version}</target> <debug>true</debug> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-source-plugin</artifactId> <version>3.0.1</version> <executions> <execution> <id>attach-sources</id> <phase>package</phase> <goals> <goal>jar</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifactId> <version>1.8</version> <dependencies> <dependency> <groupId>org.apache.ant</groupId> <artifactId>ant</artifactId> <version>1.7.0</version> </dependency> </dependencies> <executions> <execution> <phase>generate-test-resources</phase> <configuration> <target> <mkdir dir="${test.scratch.directory}"/> </target> </configuration> <goals> <goal>run</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> <argLine>-Xmx512m</argLine> <systemProperties> <property> <name>test.log.directory</name> <value>${test.log.directory}</value> </property> <property> <name>test.scratch.directory</name> <value>${test.scratch.directory}</value> </property> <property> <name>maven.injected.project.version</name> <value>${project.version}</value> </property> </systemProperties> </configuration> </plugin> </plugins> </build> </project>