How do I update the versions of maven plugins used by an Intellij maven project?

Answered

A maven project includes a number of plugins by default eg. clean, compiler, install, war etc. The versions are out of date . eg. war is version 2.2 (Jan, 2012). Latest version is 3.1.

How do I update these plugins? Is there a config file somewhere?
There is a plugin update option in the settings dialog but this is ignored by Maven 3+. I am using 3.5.

0
4 comments

Specify the versions you want to use in pom.xml and reimport the Maven project.

1
Avatar
Permanently deleted user

Thanks! Is there a "base" pom.xml that the IDE uses? So versions can be set for IDE not by project?

0

I don't think there is any base pom.xml. IDE will use the same effective pom.xml as your command line Maven.

0
Avatar
Permanently deleted user

For any one stumbling across this you need to add this to:

<build> 
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>3.2.2</version>
</plugin>
</plugins>
</build>

I did not need to reimport project it updated automatically.

0

Please sign in to leave a comment.