Error Creating From Archetype The Meta-inf/maven/archetype.xml
a new project from an exist projectAgile Board ExportXMLWordPrintableJSON Details Type: Bug Status: Closed Priority: Major Resolution: Duplicate Affects Version/s: 2.0-alpha-2 Fix Version/s: None Component/s: Archetypes Labels: None Description 1:run mvn:create-from-project in an existing project d:\workspace\myArchetype 2:run mvn:install in d:\workspace\myArchetype\target\archetype All the command run success But after that, i move to d:\workspace and try run mvn archetype:create. It fails. The log is here: Downloading: http://repo1.maven.org/maven2/com/ncs/iconnect/testproject/wagon-h tp-shared/1.0-beta-2/wagon-http-shared-1.0-beta-2.pom Downloading: http://repo1.maven.org/maven2/com/ncs/iconnect/testproject/wagon-h tp-shared/1.0-beta-2/wagon-http-shared-1.0-beta-2.pom [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexu .velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on => 'false'. [INFO] Setting property: resource.loader => 'classpath'. [INFO] Setting property: resource.manager.logwhenfound => 'false'. [INFO] [archetype:create] [INFO] Defaulting package to group ID: com.ncs.iconnect.testproject [INFO] ------------------------------------------------------------------------ -- [INFO] Using following parameters for creating OldArchetype: iframe-blank:1.0-S APSHOT [INFO] ------------------------------------------------------------------------ -- [INFO] Parameter: groupId, Value: com.ncs.iconnect.testproject [INFO] Parameter: packageName, Value: com.ncs.iconnect.testproject [INFO] Parameter: basedir, Value: D:\workspace\testProject [INFO] Parameter: package, Value: com.ncs.iconnect.testproject [INFO] Parameter: version, Value: 1.0-SNAPSHOT [INFO] Parameter: artifactId, Value: myproject [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Error creating from archetype Embedded error: The META-INF/maven/archetype.xml descriptor cannot be found. [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] -----------------------------------------------------------
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a https://issues.apache.org/jira/browse/ARCHETYPE-147 community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up first time mvn archetype:generate failed up vote 3 down vote favorite im just getting started on maven, and im currently following the article from http://www.sonatype.com/books/mvnex-book/reference/simple-project-sect-create-simple.html : To start a new Maven project, use http://stackoverflow.com/questions/4656316/first-time-mvn-archetypegenerate-failed the Maven Archetype plugin from the command line. Run the archetype:generate goal, select archetype #77, and then enter "Y" to confirm and generate the new project: my environment is : albert@albertkam:~/java/mvn-test> mvn -v Apache Maven 3.0.1 (r1038046; 2010-11-23 17:58:32+0700) Java version: 1.6.0_22 Java home: /home/albert/java/jdk1.6.0_22/jre Default locale: en_US, platform encoding: UTF-8 OS name: "linux" version: "2.6.34-12-desktop" arch: "i386" Family: "unix" And here is what i did mvn archetype:generate (it seems like the quick start archetype is 98 in my case ?) .... 98: remote -> maven-archetype-quickstart (An archetype which contains a sample Maven project.) .... 360: remote -> wikbook.archetype (-) 361: remote -> circumflex-archetype (-) 362: remote -> javg-minimal-archetype (-) Choose a number: 98: 98 Choose version: 1: 1.0-alpha-1 2: 1.0-alpha-2 3: 1.0-alpha-3 4: 1.0-alpha-4 5: 1.0 6: 1.1 Choose a number: 6: 1 Downloading: http://repo1.maven.org/maven2/org/apache/maven/archetypes/maven-archetype-quickstart/1.0-alpha-1/maven-archetype-quickstart-1.0-alpha-1.jar [WARNING] Checksum validation failed, expected 10f8e92bdec884d353c6b6232feaf3f47e220ec7 but is 4801a224d23f43da2013e35696e278f59c24c1a3 for http://repo1.maven.org/maven2/org/apache/maven/archetypes/maven-archetype-quickstart/1.0-alpha-1/maven-archetype-quickstart-1.0-alpha-1.jar [WARNING] Checksum validation failed, expected 10f8e92bdec884d353c6b6232feaf3f47e220ec7 but is 4801a224d23f43da2013e35696e278f59c24c1a3 for http://repo1.maven.org/maven2/org/apache/maven/archetypes/maven-archetype-quickstart/1.0-alpha-1/maven-archetype-quickstart-1
von GoogleAnmeldenAusgeblendete FelderNach Gruppen oder Nachrichten suchen