Maven Problem by crearting a new project with "mvn archetype:create"

thomas2004ch

Mitglied
Hi all,

Usually I create a new project with following mvn command:

mvn archetype:create -DgroupId=com.weichen.app -DartifactId=TestClusteringEJB

But today as I use this command to create a new project I got error as follow. What could wrong?

Code:
D:\Temp\MyProjects>mvn archetype:create -DgroupId=com.weichen.app -DartifactId=TestClusteringEJB
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[WARNING] Cannot resolve plugin-mapping metadata for groupId: org.apache.maven.plugins - IGNORING.
[WARNING] Cannot resolve plugin-mapping metadata for groupId: org.codehaus.mojo - IGNORING.
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).


Project ID: org.apache.maven.plugins:maven-archetype-plugin

Reason: Error getting POM for 'org.apache.maven.plugins:maven-archetype-plugin' from the repository: Unable to read loca
l copy of metadata: Cannot read metadata from 'd:\daten\maven2-local\org\apache\maven\plugins\maven-archetype-plugin\mav
en-metadata-codehaus.xml': end tag name </body> must match start tag name <hr> from line 7 (position: TEXT seen ...</add
ress>\n</body>... @9:8)
  org.apache.maven.plugins:maven-archetype-plugin:pom:LATEST

 for project org.apache.maven.plugins:maven-archetype-plugin


[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Fri Aug 27 15:04:41 CEST 2010
[INFO] Final Memory: 1M/4M
[INFO] ------------------------------------------------------------------------
 
Zuletzt bearbeitet:
Apparently your local Repository under .m2/repository is messed up, delete it so Maven can re-create it.
 

Zurück
Oben