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

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 called "org.apache.maven.plugin.jar.JarMojo". There is no additional error information.

This error is even present in the automatically generated pom.xml file when creating a new Spring utility project.

It does not cause errors during assembly, it is displayed only in the IDE (at the top of the Overview tab in the pom editor and the first line of pom.xml).

org.apache.maven.plugin.jar.JarMojo error screenshot

Has anyone seen this before and knows how to fix it? Google did not help.

Here is the default pom.xml file created by my Spring Tool Suite for the Spring utility project (it causes the described error):

<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <modelVersion>4.0.0</modelVersion> <groupId>org.springframework.samples.spring</groupId> <artifactId>spring-utility</artifactId> <version>1.0.0.CI-SNAPSHOT</version> <packaging>jar</packaging> <name>Spring Utility</name> <url>http://www.springframework.org</url> <description> <![CDATA[ This project is a minimal jar utility with Spring configuration. ]]> </description> <properties> <maven.test.failure.ignore>true</maven.test.failure.ignore> <spring.framework.version>3.0.6.RELEASE</spring.framework.version> </properties> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.7</version> <scope>test</scope> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-test</artifactId> <version>${spring.framework.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-context</artifactId> <version>${spring.framework.version}</version> </dependency> <dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId> <version>1.2.14</version> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.5</source> <target>1.5</target> </configuration> </plugin> </plugins> </build> </project> 
+6
source share
2 answers

Fixed. I downloaded Maven 3.0.5 separately and extracted C: \ springsource \ apache-maven-3.0.5. (STS used Maven 3.0.3). Then, in STS, she went to Windows-> Preferences from the menu, looking for “installations” to find the Maven installation page. A new installation has been added, pointing to the folder above. Applied. Then right-clicked on an existing project and selected Maven-> Update Project. The error has disappeared.

All new projects also have no errors. Win.

+4
source

We ran into the same problem with the Eclipse Java EE IDE for web developers (Juno Service Release 2), POM.xml just has this error "org.apache.maven.plugin.jar.JarMojo" as shown in the diagram above.

This seems like a problem with the new Maven. Finally, we install the older C: \ apache-maven-3.0.5

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

reference to external Maven 3.0.5

Then go to Project -> Clean and right-click on an existing project -> Maven -> Update Projects and possibly restart EClipse.

The error status disappears.

+2
source

All Articles