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

前端 未结 3 778
孤街浪徒
孤街浪徒 2021-01-18 08:45

I am using Spring Tool Suite 3.1.0.RELEASE and the pom.xml file in every project that I create has a single error entitled \"org.apache.maven.plugin.jar.JarMojo\". No furthe

相关标签:
3条回答
  • 2021-01-18 09:23

    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.

    0 讨论(0)
  • 2021-01-18 09:32

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

    0 讨论(0)
  • 2021-01-18 09:34

    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.

    0 讨论(0)
提交回复
热议问题