Upgrade Maven plugins

Also specify minimum Maven version.

Test with mvn versions:display-plugin-updates
This commit is contained in:
Andrew Gaul 2012-10-29 16:10:45 -07:00
parent e9edce7bae
commit b4eaa4330e
2 changed files with 21 additions and 16 deletions

View File

@ -36,7 +36,6 @@
<plugins> <plugins>
<plugin> <plugin>
<artifactId>maven-archetype-plugin</artifactId> <artifactId>maven-archetype-plugin</artifactId>
<version>2.0-alpha-4</version>
<extensions>true</extensions> <extensions>true</extensions>
</plugin> </plugin>
<plugin> <plugin>
@ -50,7 +49,6 @@
<extension> <extension>
<groupId>org.apache.maven.archetype</groupId> <groupId>org.apache.maven.archetype</groupId>
<artifactId>archetype-packaging</artifactId> <artifactId>archetype-packaging</artifactId>
<version>2.0-alpha-4</version>
</extension> </extension>
</extensions> </extensions>
</build> </build>

View File

@ -397,7 +397,7 @@
</plugin> </plugin>
<plugin> <plugin>
<artifactId>maven-surefire-plugin</artifactId> <artifactId>maven-surefire-plugin</artifactId>
<version>2.12</version> <version>2.12.4</version>
<executions> <executions>
<execution> <execution>
<id>integration</id> <id>integration</id>
@ -447,7 +447,7 @@
</plugin> </plugin>
<plugin> <plugin>
<artifactId>maven-enforcer-plugin</artifactId> <artifactId>maven-enforcer-plugin</artifactId>
<version>1.1</version> <version>1.1.1</version>
<executions> <executions>
<execution> <execution>
<id>enforce-banned-dependencies</id> <id>enforce-banned-dependencies</id>
@ -484,7 +484,7 @@
</plugin> </plugin>
<plugin> <plugin>
<artifactId>maven-compiler-plugin</artifactId> <artifactId>maven-compiler-plugin</artifactId>
<version>2.5</version> <version>2.5.1</version>
<configuration> <configuration>
<encoding>${project.build.sourceEncoding}</encoding> <encoding>${project.build.sourceEncoding}</encoding>
<source>${maven.compile.source}</source> <source>${maven.compile.source}</source>
@ -493,7 +493,7 @@
</plugin> </plugin>
<plugin> <plugin>
<artifactId>maven-resources-plugin</artifactId> <artifactId>maven-resources-plugin</artifactId>
<version>2.5</version> <version>2.6</version>
<configuration> <configuration>
<encoding>${project.build.sourceEncoding}</encoding> <encoding>${project.build.sourceEncoding}</encoding>
</configuration> </configuration>
@ -559,6 +559,10 @@
</plugins> </plugins>
<pluginManagement> <pluginManagement>
<plugins> <plugins>
<plugin>
<artifactId>maven-archetype-plugin</artifactId>
<version>2.2</version>
</plugin>
<plugin> <plugin>
<artifactId>maven-assembly-plugin</artifactId> <artifactId>maven-assembly-plugin</artifactId>
<version>2.3</version> <version>2.3</version>
@ -569,11 +573,11 @@
</plugin> </plugin>
<plugin> <plugin>
<artifactId>maven-enforcer-plugin</artifactId> <artifactId>maven-enforcer-plugin</artifactId>
<version>1.1</version> <version>1.1.1</version>
</plugin> </plugin>
<plugin> <plugin>
<artifactId>maven-install-plugin</artifactId> <artifactId>maven-install-plugin</artifactId>
<version>2.3.1</version> <version>2.4</version>
</plugin> </plugin>
<plugin> <plugin>
<artifactId>maven-jxr-plugin</artifactId> <artifactId>maven-jxr-plugin</artifactId>
@ -581,7 +585,7 @@
</plugin> </plugin>
<plugin> <plugin>
<artifactId>maven-release-plugin</artifactId> <artifactId>maven-release-plugin</artifactId>
<version>2.3.1</version> <version>2.4</version>
<configuration> <configuration>
<releaseProfiles>doc</releaseProfiles> <releaseProfiles>doc</releaseProfiles>
</configuration> </configuration>
@ -592,7 +596,7 @@
</plugin> </plugin>
<plugin> <plugin>
<artifactId>maven-project-info-reports-plugin</artifactId> <artifactId>maven-project-info-reports-plugin</artifactId>
<version>2.4</version> <version>2.5.1</version>
</plugin> </plugin>
<plugin> <plugin>
<artifactId>maven-site-plugin</artifactId> <artifactId>maven-site-plugin</artifactId>
@ -617,6 +621,7 @@
</plugin> </plugin>
<plugin> <plugin>
<artifactId>maven-javadoc-plugin</artifactId> <artifactId>maven-javadoc-plugin</artifactId>
<version>2.9</version>
<configuration> <configuration>
<encoding>${project.build.sourceEncoding}</encoding> <encoding>${project.build.sourceEncoding}</encoding>
<quiet>true</quiet> <quiet>true</quiet>
@ -635,6 +640,7 @@
<plugin> <plugin>
<groupId>org.sonatype.maven.plugin</groupId> <groupId>org.sonatype.maven.plugin</groupId>
<artifactId>emma-maven-plugin</artifactId> <artifactId>emma-maven-plugin</artifactId>
<version>1.2</version>
<configuration> <configuration>
<formats>html,xml</formats> <formats>html,xml</formats>
</configuration> </configuration>
@ -676,7 +682,7 @@
</plugin> </plugin>
<plugin> <plugin>
<artifactId>maven-surefire-report-plugin</artifactId> <artifactId>maven-surefire-report-plugin</artifactId>
<version>2.12</version> <version>2.12.4</version>
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.apache.rat</groupId> <groupId>org.apache.rat</groupId>
@ -686,12 +692,12 @@
<plugin> <plugin>
<groupId>org.codehaus.mojo</groupId> <groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId> <artifactId>findbugs-maven-plugin</artifactId>
<version>2.5</version> <version>2.5.2</version>
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.sonatype.maven.plugin</groupId> <groupId>org.sonatype.maven.plugin</groupId>
<artifactId>emma-maven-plugin</artifactId> <artifactId>emma-maven-plugin</artifactId>
<version>1.3-SNAPSHOT</version> <version>1.2</version>
</plugin> </plugin>
<plugin> <plugin>
<groupId>com.theoryinpractise</groupId> <groupId>com.theoryinpractise</groupId>
@ -722,7 +728,7 @@
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId> <artifactId>maven-javadoc-plugin</artifactId>
<version>2.8.1</version> <version>2.9</version>
<configuration> <configuration>
<maxmemory>256m</maxmemory> <maxmemory>256m</maxmemory>
<encoding>${project.build.sourceEncoding}</encoding> <encoding>${project.build.sourceEncoding}</encoding>
@ -838,6 +844,7 @@ pageTracker._trackPageview();
<plugins> <plugins>
<plugin> <plugin>
<artifactId>maven-gpg-plugin</artifactId> <artifactId>maven-gpg-plugin</artifactId>
<version>1.4</version>
<configuration> <configuration>
<executable>${gpg.command}</executable> <executable>${gpg.command}</executable>
<passphrase>${gpg.passphrase}</passphrase> <passphrase>${gpg.passphrase}</passphrase>
@ -919,7 +926,7 @@ pageTracker._trackPageview();
<plugins> <plugins>
<plugin> <plugin>
<artifactId>maven-javadoc-plugin</artifactId> <artifactId>maven-javadoc-plugin</artifactId>
<version>2.8.1</version> <version>2.9</version>
<executions> <executions>
<execution> <execution>
<id>javadoc</id> <id>javadoc</id>
@ -940,7 +947,7 @@ pageTracker._trackPageview();
<!-- make sure we generate src jars too --> <!-- make sure we generate src jars too -->
<plugin> <plugin>
<artifactId>maven-source-plugin</artifactId> <artifactId>maven-source-plugin</artifactId>
<version>2.1.2</version> <version>2.2</version>
<executions> <executions>
<execution> <execution>
<id>attach-sources</id> <id>attach-sources</id>