How to remove org.apache.maven.plugin.jar.JarMojo error from pom editor

Fixed. I downloaded Maven 3.0.5 separately and extracted to C:\springsource\apache-maven-3.0.5. (STS was using Maven 3.0.3) Then in STS went to Windows->Preferences from the menu, searched for "installations" to find the Maven installations page. Added a new installation by pointing to the folder above. Applied. Then right clicked on existing project and chose Maven->Update Project. Error gone.

All new projects also don't have the error anymore. Win.

We faced the same issue with Eclipse Java EE IDE for Web Developers (Juno Service Release 2), POM.xml simply has this "org.apache.maven.plugin.jar.JarMojo" error as shown in the above diagram.

This seems a version issue with newer Maven. Finally we install an older C:\apache-maven-3.0.5

Then inside Eclipse -> Windows -> Preference -> search "Maven" -> Installations, add the External C:\apache-maven-3.0.5

reference to external Maven 3.0.5

Then go Project -> Clean and right click on existing proect -> Maven -> Update Projects and maybe restart EClipse.

The error status will disappear.

convert the packaging from jar to war. This solved my problem.