update maven pom

embed properties that were in a local settings.xml
fix tag names and properties that have changed from maven 2 and new plugin versions
specify compiler plugin version.
main
SENG302 10 years ago
parent 9649f67863
commit bf3a0eb713

@ -1,93 +1,104 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <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"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>seng302</groupId> <groupId>seng302</groupId>
<artifactId>app</artifactId> <artifactId>app</artifactId>
<packaging>jar</packaging> <packaging>jar</packaging>
<version>0.0</version> <version>0.0</version>
<name>app</name> <name>app</name>
<url>https://eng-git.canterbury.ac.nz/SENG302-2016/team-0</url> <url>https://eng-git.canterbury.ac.nz/SENG302-2016/team-0</url>
<dependencies>
<dependency> <properties>
<groupId>junit</groupId> <maven.compiler.source>1.8</maven.compiler.source>
<artifactId>junit</artifactId> <maven.compiler.target>1.8</maven.compiler.target>
<version>4.12</version> </properties>
<scope>test</scope>
</dependency> <dependencies>
</dependencies> <dependency>
<build> <groupId>junit</groupId>
<plugins> <artifactId>junit</artifactId>
<plugin> <version>4.12</version>
<groupId>org.apache.maven.plugins</groupId> <scope>test</scope>
<artifactId>maven-shade-plugin</artifactId> </dependency>
<version>2.4.3</version> </dependencies>
<configuration>
<transformers> <build>
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> <plugins>
<manifestEntries> <plugin>
<Main-Class>seng302.App</Main-Class> <groupId>org.apache.maven.plugins</groupId>
<X-Compile-Source-JDK>${maven.compile.source}</X-Compile-Source-JDK> <artifactId>maven-compiler-plugin</artifactId>
<X-Compile-Target-JDK>${maven.compile.target}</X-Compile-Target-JDK> <version>3.5.1</version>
</manifestEntries> </plugin>
</transformer> <plugin>
</transformers> <groupId>org.apache.maven.plugins</groupId>
</configuration> <artifactId>maven-shade-plugin</artifactId>
<executions> <version>2.4.3</version>
<execution> <configuration>
<phase>package</phase> <transformers>
<goals> <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<goal>shade</goal> <manifestEntries>
</goals> <Main-Class>seng302.App</Main-Class>
</execution> <X-Compile-Source-JDK>${maven.compiler.source}</X-Compile-Source-JDK>
</executions> <X-Compile-Target-JDK>${maven.compiler.target}</X-Compile-Target-JDK>
</plugin> </manifestEntries>
</plugins> </transformer>
</build> </transformers>
<reporting> </configuration>
<plugins> <executions>
<plugin> <execution>
<groupId>org.apache.maven.plugins</groupId> <phase>package</phase>
<artifactId>maven-jxr-plugin</artifactId> <goals>
<version>2.5</version> <goal>shade</goal>
</plugin> </goals>
<plugin> </execution>
<groupId>org.apache.maven.plugins</groupId> </executions>
<artifactId>maven-pmd-plugin</artifactId> </plugin>
<version>3.6</version> </plugins>
<configuration> </build>
<linkXref>true</linkXref> <reporting>
<targetjdk>1.8</targetjdk> <plugins>
<minimumtokencount>100</minimumtokencount> <plugin>
<rulesets> <groupId>org.apache.maven.plugins</groupId>
<ruleset>/rulesets/java/basic.xml</ruleset> <artifactId>maven-jxr-plugin</artifactId>
<ruleset>/rulesets/java/imports.xml</ruleset> <version>2.5</version>
<ruleset>/rulesets/java/codesize.xml</ruleset> </plugin>
<ruleset>/rulesets/java/design.xml</ruleset> <plugin>
<ruleset>/rulesets/java/empty.xml</ruleset> <groupId>org.apache.maven.plugins</groupId>
<ruleset>/rulesets/java/junit.xml</ruleset> <artifactId>maven-pmd-plugin</artifactId>
<ruleset>/rulesets/java/unusedcode.xml</ruleset> <version>3.6</version>
</rulesets> <configuration>
<includeXmlInSite>true</includeXmlInSite> <linkXRef>true</linkXRef>
<sourceEncoding>utf-8</sourceEncoding> <targetJdk>${maven.compiler.target}</targetJdk>
</configuration> <rulesets>
</plugin> <ruleset>/rulesets/java/basic.xml</ruleset>
<plugin> <ruleset>/rulesets/java/imports.xml</ruleset>
<groupId>org.apache.maven.plugins</groupId> <ruleset>/rulesets/java/codesize.xml</ruleset>
<artifactId>maven-javadoc-plugin</artifactId> <ruleset>/rulesets/java/design.xml</ruleset>
<version>2.10.3</version> <ruleset>/rulesets/java/empty.xml</ruleset>
<configuration> <ruleset>/rulesets/java/junit.xml</ruleset>
</configuration> <ruleset>/rulesets/java/unusedcode.xml</ruleset>
</plugin> </rulesets>
<plugin> <includeXmlInSite>true</includeXmlInSite>
<groupId>org.apache.maven.plugins</groupId> <sourceEncoding>utf-8</sourceEncoding>
<artifactId>maven-surefire-report-plugin</artifactId> </configuration>
<version>2.19.1</version> </plugin>
</plugin> <plugin>
<plugin> <groupId>org.apache.maven.plugins</groupId>
<groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId>
<artifactId>maven-project-info-reports-plugin</artifactId> <version>2.10.3</version>
<version>2.8.1</version> <configuration>
</plugin> </configuration>
</plugins> </plugin>
</reporting> <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
<version>2.19.1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>2.8.1</version>
</plugin>
</plugins>
</reporting>
</project> </project>

Loading…
Cancel
Save