Tell Maven to use specific plugin version

If you want to use specific version of maven plugin you can say in build

In the version tag tell maven to use latest version ( or required ) while doing processing

<build>
...
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.2</version>
<executions>
<execution>
<id>pre-process-classes</id>
<phase>compile</phase>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<classifier>pre-process</classifier>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
...
</build>

No comments:

Post a Comment

Please share your views and comments below.

Thank You.