/In the create a new project wizard --> Maven Project, in the next slide,
DON'T check "Create a simple project", go next, select
"maven-archetype-mojo"(maybe need to wait a few seconds) and next, give some
necessary info, click finish, then the project is created, whose name is the
artifactId you specified, and the classes MyMojo is created too. /

I was following the above method to create a new mojo project, but couldn't
pass this error. My internet has no proxy. I can connect to Maven central
repo with no problem from my browser. I can create the project from maven
command line with no issue, just can't make it work within eclipse.

Could not resolve archetype
org.apache.maven.archetypes:maven-archetype-mojo:RELEASE from any of the
configured repositories.
Could not resolve artifact
org.apache.maven.archetypes:maven-archetype-mojo:pom:RELEASE
Failed to resolve version for
org.apache.maven.archetypes:maven-archetype-mojo:pom:RELEASE: Could not find
metadata org.apache.maven.archetypes:maven-archetype-mojo/maven-metadata.xml
in local (C:\Users\Administrator\.m2\repository)
Failed to resolve version for
org.apache.maven.archetypes:maven-archetype-mojo:pom:RELEASE: Could not find
metadata org.apache.maven.archetypes:maven-archetype-mojo/maven-metadata.xml
in local (C:\Users\Administrator\.m2\repository)


--
View this message in context: 
http://maven.40175.n5.nabble.com/How-to-develop-Maven-plugin-in-eclipse-with-m2e-tp5711440p5711466.html
Sent from the Maven - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to