This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Ant, Maven and Other Build Tools and the fly likes Maven plugin error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Maven plugin error" Watch "Maven plugin error" New topic

Maven plugin error

Emilio de la Torre

Joined: Feb 16, 2012
Posts: 4
Hi, i just installed maven and execute this command

mvn archetype:generate -DarchetypeGroupId=org.ploin.archetype -DarchetypeArtifactId=tempSpringRichHibernate -DarchetypeVersion=1.7.1 -DarchetypeRepository= -DgroupId=es.mycompany -DartifactId=myteamcenter
And when its going to download dependencies i get this error

Faild to execute goal org.apache.maven.plugins: maven-archetype-plugin:2.2:generate <default-cli> on project standalone-pom: The desired archetype does not exist <org.ploin.archetype:tempSpringRichHibernate:1.7.1>

With archetypes without Spring it does download dependencies

Any ideas? Please
Peter Johnson

Joined: May 14, 2008
Posts: 5812

The org.ploin.archetype:tempSpringRichHibernate:1.7.1 artifact is not in Maven Central repository. You are going to first have to find out which repository contains this artifact and then add that to your settings.xml file, or reference it in some other way.

JBoss In Action
Tejas Shah

Joined: Oct 26, 2009
Posts: 23

That does not exist anywhere. The guy who created it hosted it somewhere on but seems like the server was not stable.

Cherish your life...!!
Peter Johnson

Joined: May 14, 2008
Posts: 5812

In such a case, where the repository is not well know and established, the best thing to do is manually add the artifact to your local repository using install:install-file. Or if several people need access to this (work environment), set up a Nexus repository and load it into there.
It is sorta covered in the JavaRanch Style Guide.
subject: Maven plugin error
Similar Threads
how to run a project using maven
Not Getting Started with Maven - Archtype plugin Not found
Unable to create Spring AOP archetype using Maven in Eclipse
Maven - trouble with mvn archetype:create
first example, i use maven2