Sunday, 15 April 2012

java - Error in converted maven project in Eclipse -



java - Error in converted maven project in Eclipse -

i using eclipse juno m2e plugin. converted java project maven project via eclipse

right click on project > goto menu configure > convert maven project.

and these errors:

multiple annotations found @ line: - plugin execution not covered lifecycle configuration: org.apache.maven.plugins:maven-compiler- plugin:2.3.2:compile (execution: default-compile, phase: compile) - plugin execution not covered lifecycle configuration: org.apache.maven.plugins:maven-compiler- plugin:2.3.2:testcompile (execution: default-testcompile, phase: test-compile) - coreexception: not value parameter compilerid plugin execution default- compile: pluginresolutionexception: plugin org.apache.maven.plugins:maven-compiler-plugin:2.3.2 or 1 of dependencies not resolved: next artifacts not resolved: org.codehaus.plexus:plexus-compiler-manager:jar:1.8.1, org.codehaus.plexus:plexus-compiler-javac:jar:1.8.1: failure transfer org.codehaus.plexus:plexus-compiler-manager:jar:1.8.1 http://repo.maven.apache.org/ maven2 cached in local repository, resolution not reattempted until update interval of central has elapsed or updates forced. original error: 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 http:// repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-compiler-manager/1.8.1/plexus-compiler- manager-1.8.1.jar - coreexception: not value parameter compilerid plugin execution default- testcompile: pluginresolutionexception: plugin org.apache.maven.plugins:maven-compiler-plugin:2.3.2 or 1 of dependencies not resolved: next artifacts not resolved: org.codehaus.plexus:plexus-compiler-manager:jar:1.8.1, org.codehaus.plexus:plexus-compiler-javac:jar:1.8.1: failure transfer org.codehaus.plexus:plexus-compiler-manager:jar:1.8.1 http://repo.maven.apache.org/ maven2 cached in local repository, resolution not reattempted until update interval of central has elapsed or updates forced. original error: 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 http:// repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-compiler-manager/1.8.1/plexus-compiler- manager-1.8.1.jar

how solve problem? please help.

eclipse juno have problem on creating maven project, best way create maven project,create java , convert it.

juno has problem life cycle configuration of maven, in building,compiling,installing. please turn off build automatically too.

follow below instruction prepare issue.

check if proxy settings on eclipse behind company corporate network.

to alter goto-> window->prefernces->general-> network connection , alter active providers.

if have proxy details, select manaul active provider , edit it. add together proxy details , ie., host name , port , , click save.

else seek company network team.

after goto maven settings goto->window->prefernces->maven-> user settings

check if there xml file called settings.xml if not add together code below file , save on path.

for reference 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 not works, goto command prompt. navigate project location. type command 1 after other. - mvn clean - mvn compile - mvn install

hope work , others.

java gwt maven selenium

No comments:

Post a Comment