• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Maven plugin error

 
Emilio de la Torre
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, i just installed maven and execute this command

mvn archetype:generate -DarchetypeGroupId=org.ploin.archetype -DarchetypeArtifactId=tempSpringRichHibernate -DarchetypeVersion=1.7.1 -DarchetypeRepository=http://www.ploin-m2.de/nexus/content/groups/public/ -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
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Tejas Shah
Greenhorn
Posts: 23
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That does not exist anywhere. The guy who created it hosted it somewhere on http://www.ploin-m2.de/nexus/ but seems like the server was not stable.
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic