I am using Eclipse Juno with the m2e plugin. I converted my java project into a maven project via Eclipse
Right click on project > goto menu configure > Convert to maven project.
And these are the errors:
Multiple annotations found at this line:
- Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-
plugin:2.3.2:compile (execution: default-compile, phase: compile)
- Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-
plugin:2.3.2:testCompile (execution: default-testCompile, phase: test-compile)
- CoreException: Could not get the value for parameter compilerId for plugin execution default-
compile: PluginResolutionException: Plugin org.apache.maven.plugins:maven-compiler-plugin:2.3.2 or one of
its dependencies could not be resolved: The following artifacts could not be resolved:
org.codehaus.plexus:plexus-compiler-manager:jar:1.8.1, org.codehaus.plexus:plexus-compiler-javac:jar:1.8.1:
Failure to transfer org.codehaus.plexus:plexus-compiler-manager:jar:1.8.1 from http://repo.maven.apache.org/
maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central
has elapsed or updates are forced. Original error: Could not transfer artifact org.codehaus.plexus:plexus-compiler-
manager:jar:1.8.1 from/to central (http://repo.maven.apache.org/maven2): connection timed out to http://
repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-compiler-manager/1.8.1/plexus-compiler-
manager-1.8.1.jar
- CoreException: Could not get the value for parameter compilerId for plugin execution default-
testCompile: PluginResolutionException: Plugin org.apache.maven.plugins:maven-compiler-plugin:2.3.2 or one
of its dependencies could not be resolved: The following artifacts could not be resolved:
org.codehaus.plexus:plexus-compiler-manager:jar:1.8.1, org.codehaus.plexus:plexus-compiler-javac:jar:1.8.1:
Failure to transfer org.codehaus.plexus:plexus-compiler-manager:jar:1.8.1 from http://repo.maven.apache.org/
maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central
has elapsed or updates are forced. Original error: Could not transfer artifact org.codehaus.plexus:plexus-compiler-
manager:jar:1.8.1 from/to central (http://repo.maven.apache.org/maven2): connection timed out to http://
repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-compiler-manager/1.8.1/plexus-compiler-
manager-1.8.1.jar
How to solve this problem? Please help.
Eclipse Juno have some problem on creating a Maven project, the best way would to create Maven project,create Java and convert it.
Juno also has the problem with life cycle configuration of Maven, in building,compiling,installing. so please turn off your build automatically too.
Follow the below instruction to fix this issue.
Check if your proxy settings on Eclipse is behind your company corporate network.
To change this goto-> window->prefernces->General-> network connection and change the active providers.
If you have some proxy details, select Manaul as active provider and edit it. Add the proxy details , ie., host name and port , and click save.
Else try to get it from your company network team.
After this goto maven settings by Goto->window->prefernces->Maven-> user settings
Check if there is xml file called settings.xml if not add the code below to the file and save on the path.
For reference it will be locatedon : users\your name.m2
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd">
<localRepository/>
<interactiveMode/>
<usePluginRegistry/>
<offline/>
<pluginGroups/>
<servers/>
<mirrors/>
<proxies>
<proxy>
<id>myproxy</id>
<active>true</active>
<protocol>http</protocol>
<host>proxy name</host>
<port>number</port>
<username></username>
<password></password>
<nonProxyHosts>localhost,127.0.0.1</nonProxyHosts>
</proxy>
</proxies>
<profiles/>
<activeProfiles/>
</settings>
Even after this, if it does not works, Goto command prompt. navigate to project location. type command one after the other. - mvn clean - mvn compile - mvn install
Hope it will work for you and others.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With