]> source.dussan.org Git - javassist.git/commitdiff
Update maven-jar-plugin and maven-compiler-plugin to fix warning 33/head
authorMichal Kordas <kontakt@michalkordas.com>
Sat, 14 Mar 2015 13:33:09 +0000 (14:33 +0100)
committerMichal Kordas <kontakt@michalkordas.com>
Sat, 14 Mar 2015 13:33:09 +0000 (14:33 +0100)
The following warning when invoking `mvn versions:display-plugin-updates` does not appear anymore:
```
[WARNING] Some problems were encountered while building the effective model for org.javassist:javassist:bundle:3.19.0-GA
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 137, column 15
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-jar-plugin is missing. @ line 160, column 15
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
```

pom.xml

diff --git a/pom.xml b/pom.xml
index 82270e853e3d43d103bb1b48d260294fb0926799..f7925803b850d407b9b74ee461d8ce6f7c2527eb 100644 (file)
--- a/pom.xml
+++ b/pom.xml
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-compiler-plugin</artifactId>
+        <version>3.2</version>
         <configuration>
           <source>1.6</source>
           <target>1.6</target>
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-jar-plugin</artifactId>
+        <version>2.6</version>
         <configuration>
           <archive>
             <manifestFile>${project.build.sourceDirectory}/META-INF/MANIFEST.MF</manifestFile>