javamaven-2build-processmaven-ear-plugin

How do I upgrade the version of a maven plugin?


I am using the maven-ear-plugin version 2.3.1 - I know there is a new version available: http://maven.apache.org/plugins/maven-ear-plugin/

I can't work out how to upgrade to the latest version?


Solution

  • The default plugin versions are inherited from the Super POM, and you can check them with mvn help:effective-pom.

    If you want to override the version provided there, add this to your POM:

    <project>
      <build>
        <plugins>
          <plugin>
            <artifactId>maven-ear-plugin</artifactId>
            <version>2.3.1</version>
          </plugin>
        </plugins>
      </build>
    </project>
    

    Replace the version with what you need.