POM for Maven Compiler Plugin Jar is missing
EDIT : I just upgraded my Eclipse installation from Kepler to Luna - all my Maven projects were working fine before upgrading
I am getting an error that is interfering with my Maven project:
The POM for org.apache.maven.plugins:maven-compiler-plugin:jar:2.5.1 is missing, no dependency information available
And when I go to Maven Lifecycle Mapping in Eclipse I see
compiler:compile | error
compiler:text Compile | error
I have maven-compiler-plugin: jar: 3.1 (including POM file) in my .m2 repository and would like to use that instead.
How can this be configured in Eclipse? Alternatively, if this is not a solution to the problem, how can this be resolved?
source to share
You need to edit your pom.xml to set the version of the compiler plugin to be used. As described in the plugin main page , you configure the maven-compiler plugin in build
your project's pom.xml section like this:
<project>
...
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<!-- put your configurations here -->
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
...
</project>
If you want to use the local repository of your Maven installation (instead of the built-in Eclipse version), go to Preferences -> Maven -> Preferences and add your Maven installation there.
source to share