Hi Milos, Thanks for the feedback.
If the archetype you tried use the archetype-metadata.xml (new descriptor) instead of the old archetype.xml (1.0-alpha-7 descriptor), then the goal to call is mvn archetype:generate. the goal archetype:create is the same as in the 1.0-alpha-7 version. I will look further on the stack trace at home. Raphaël 2008/4/14, Milos Kleint <[EMAIL PROTECTED]>: > I've tried with netbeans integration (where alpha-1 works) and it somehow > fails. > the debug output is below. > > the strange part is this line > Using following parameters for creating OldArchetype: nbm-archetype:1.0.1 > the nbm-archetype in question is actually an new archetype, not the old one. > > http://repo1.maven.org/maven2/org/codehaus/mojo/archetypes/nbm-archetype/1.0.1/ > > Regards > > Milos > > > > [DEBUG]Looked up - > [EMAIL PROTECTED] - > ClassRealm[/plugins/org.apache.maven.plugins:maven-archetype-plugin:[EMAIL > PROTECTED]/thread:exec_Create > project_2, parent: ClassRealm[plexus.core, parent: null]] > [DEBUG]Configuring mojo > 'org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-3:create' > with basic configurator --> > [DEBUG] (f) archetypeArtifactId = nbm-archetype > [DEBUG] (f) archetypeGroupId = org.codehaus.mojo.archetypes > [DEBUG] (f) archetypeVersion = 1.0.1 > [DEBUG] (f) artifactId = mavenproject4 > [DEBUG] (f) basedir = /home/mkleint/NetBeansProjects > [DEBUG] (f) groupId = com.mycompany > [DEBUG] (f) localRepository = [local] -> file:///home/mkleint/.m2/repository > [DEBUG] (f) pomRemoteRepositories = [[staging] -> > http://people.apache.org/~rafale/archetype-stage-repository/, > [central] -> http://repo1.maven.org/maven2] > [DEBUG] (f) project = MavenProject: org.apache.maven:super-pom:2.1 @ > [DEBUG] (f) version = 1.0-SNAPSHOT > [DEBUG]-- end configuration -- > [archetype:create] > [DEBUG]Setting context classloader for plugin to: > /plugins/org.apache.maven.plugins:maven-archetype-plugin:[EMAIL > PROTECTED]/thread:exec_Create > project_2 (instance is: > ClassRealm[/plugins/org.apache.maven.plugins:maven-archetype-plugin:[EMAIL > PROTECTED]/thread:exec_Create > project_2, parent: ClassRealm[plexus.core, parent: null]]) > [WARN]This goal is deprecated. Please use mvn archetype:generate instead > Defaulting package to group ID: com.mycompany > [DEBUG]Trying repository staging > [DEBUG]Unable to get resource > 'org.codehaus.mojo.archetypes:nbm-archetype:jar:1.0.1' from repository > staging (http://people.apache.org/~rafale/archetype-stage-repository/) > org.apache.maven.wagon.ResourceDoesNotExistException: Unable to locate > resource in repository > at > org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:100) > at org.apache.maven.wagon.StreamWagon.getIfNewer(StreamWagon.java:94) > at > org.apache.maven.artifact.manager.DefaultWagonManager.getRemoteFile(DefaultWagonManager.java:525) > at > org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:431) > at > org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:348) > at > org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:192) > at > org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveAlways(DefaultArtifactResolver.java:94) > at > org.apache.maven.archetype.downloader.DefaultDownloader.downloadOld(DefaultDownloader.java:91) > at > org.apache.maven.archetype.old.DefaultOldArchetype.createArchetype(DefaultOldArchetype.java:122) > at > org.apache.maven.archetype.mojos.MavenArchetypeMojo.execute(MavenArchetypeMojo.java:229) > at > org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:573) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:501) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmentsForProject(DefaultLifecycleExecutor.java:265) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:180) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:149) > at > org.codehaus.mevenide.netbeans.embedder.exec.MyLifecycleExecutor.execute(MyLifecycleExecutor.java:72) > at > org.apache.maven.DefaultMaven.execute_aroundBody0(DefaultMaven.java:225) > at > org.apache.maven.DefaultMaven.execute_aroundBody1$advice(DefaultMaven.java:304) > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:1) > at > org.apache.maven.embedder.MavenEmbedder.execute_aroundBody2(MavenEmbedder.java:895) > at > org.apache.maven.embedder.MavenEmbedder.execute_aroundBody3$advice(MavenEmbedder.java:304) > at > org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:1) > at > org.codehaus.mevenide.netbeans.execute.MavenJavaExecutor.run(MavenJavaExecutor.java:213) > at > org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:151) > Caused by: java.io.FileNotFoundException: > > http://people.apache.org/~rafale/archetype-stage-repository/org/codehaus/mojo/archetypes/nbm-archetype/1.0.1/nbm-archetype-1.0.1.jar > at > sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1151) > at > org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:83) > ... 23 more > [DEBUG]Trying repository central > [DEBUG] Artifact resolved > ---------------------------------------------------------------------------- > Using following parameters for creating OldArchetype: nbm-archetype:1.0.1 > ---------------------------------------------------------------------------- > Parameter: groupId, Value: com.mycompany > Parameter: packageName, Value: com.mycompany > Parameter: basedir, Value: /home/mkleint/NetBeansProjects > Parameter: package, Value: com.mycompany > Parameter: version, Value: 1.0-SNAPSHOT > Parameter: artifactId, Value: mavenproject4 > [ERROR] > [ERROR] > [ERROR]The following mojo encountered an error while executing: > [ERROR]Group-Id: org.apache.maven.plugins > [ERROR]Artifact-Id: maven-archetype-plugin > [ERROR]Version: 2.0-alpha-3 > [ERROR]Mojo: create > [ERROR]brought in via: Direct invocation > [ERROR] > [ERROR]While building project: > [ERROR]Group-Id: org.apache.maven > [ERROR]Artifact-Id: super-pom > [ERROR]Version: 2.1 > [ERROR]From file: null > [ERROR]Reason: Error creating from archetype > [ERROR] > [ERROR]org.apache.maven.archetype.old.ArchetypeDescriptorException: > The META-INF/maven/archetype.xml descriptor cannot be found. > [ERROR] at > org.apache.maven.archetype.old.DefaultOldArchetype.createArchetype(DefaultOldArchetype.java:193) > [ERROR] at > org.apache.maven.archetype.mojos.MavenArchetypeMojo.execute(MavenArchetypeMojo.java:229) > [ERROR] at > org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:573) > [ERROR] at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:501) > [ERROR] at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmentsForProject(DefaultLifecycleExecutor.java:265) > [ERROR] at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:180) > [ERROR] at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:149) > [ERROR] at > org.codehaus.mevenide.netbeans.embedder.exec.MyLifecycleExecutor.execute(MyLifecycleExecutor.java:72) > [ERROR] at > org.apache.maven.DefaultMaven.execute_aroundBody0(DefaultMaven.java:225) > [ERROR] at > org.apache.maven.DefaultMaven.execute_aroundBody1$advice(DefaultMaven.java:304) > [ERROR] at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:1) > [ERROR] at > org.apache.maven.embedder.MavenEmbedder.execute_aroundBody2(MavenEmbedder.java:895) > [ERROR] at > org.apache.maven.embedder.MavenEmbedder.execute_aroundBody3$advice(MavenEmbedder.java:304) > [ERROR] at > org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:1) > [ERROR] at > org.codehaus.mevenide.netbeans.execute.MavenJavaExecutor.run(MavenJavaExecutor.java:213) > [ERROR] at > org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:151) > [ERROR] > [ERROR] > [ERROR] > [ERROR]Error stacktrace: > [ERROR]org.apache.maven.lifecycle.LifecycleExecutionException: > Internal error in the plugin manager executing goal > 'org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-3:create': > Mojo execution failed. > [ERROR] at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:508) > [ERROR] at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmentsForProject(DefaultLifecycleExecutor.java:265) > [ERROR] at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:180) > [ERROR] at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:149) > [ERROR] at > org.codehaus.mevenide.netbeans.embedder.exec.MyLifecycleExecutor.execute(MyLifecycleExecutor.java:72) > [ERROR] at > org.apache.maven.DefaultMaven.execute_aroundBody0(DefaultMaven.java:225) > [ERROR] at > org.apache.maven.DefaultMaven.execute_aroundBody1$advice(DefaultMaven.java:304) > [ERROR] at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:1) > [ERROR] at > org.apache.maven.embedder.MavenEmbedder.execute_aroundBody2(MavenEmbedder.java:895) > [ERROR] at > org.apache.maven.embedder.MavenEmbedder.execute_aroundBody3$advice(MavenEmbedder.java:304) > [ERROR] at > org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:1) > [ERROR] at > org.codehaus.mevenide.netbeans.execute.MavenJavaExecutor.run(MavenJavaExecutor.java:213) > [ERROR] at > org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:151) > [ERROR]Caused by: org.apache.maven.plugin.PluginExecutionException: > Mojo execution failed. > [ERROR] at > org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:595) > [ERROR] at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:501) > [ERROR] ... 12 more > [ERROR]Caused by: org.apache.maven.plugin.MojoExecutionException: > Error creating from archetype > [ERROR] at > org.apache.maven.archetype.mojos.MavenArchetypeMojo.execute(MavenArchetypeMojo.java:244) > [ERROR] at > org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:573) > [ERROR] ... 13 more > [ERROR]Caused by: > org.apache.maven.archetype.old.ArchetypeDescriptorException: The > META-INF/maven/archetype.xml descriptor cannot be found. > [ERROR] at > org.apache.maven.archetype.old.DefaultOldArchetype.createArchetype(DefaultOldArchetype.java:193) > [ERROR] at > org.apache.maven.archetype.mojos.MavenArchetypeMojo.execute(MavenArchetypeMojo.java:229) > [ERROR] ... 14 more > ------------------------------------------------------------------------ > BUILD FAILED > ------------------------------------------------------------------------ > Total time: 3 seconds > Finished at: Mon Apr 14 13:13:26 CEST 2008 > Final Memory: 36M/85M > ------------------------------------------------------------------------ > > > On Mon, Apr 14, 2008 at 12:05 PM, Raphaël Piéroni > <[EMAIL PROTECTED]> wrote: > > Any one else has tested the plugin? > > I have not enough votes for the release. > > > > Regards, > > > > Raphaël > > > > 2008/4/14, Jason Dillon <[EMAIL PROTECTED]>: > > > > > > > +1 > > > > > > ---jason > > > > > > > > > > > > On Apr 11, 2008, at 5:22 AM, Raphaël Piéroni wrote: > > > > > > > > > > Hi, > > > > > > > > We solved 20 issues: > > > > > > > > http://jira.codehaus.org/secure/ReleaseNote.jspa?projectId=11095&styleName=Html&version=14088 > > > > > > > > Staging repo: > > > > > > > http://people.apache.org/~rafale/archetype-stage-repository/ > > > > > > > > Staging site: > > > > > > > http://maven.apache.org/plugins/maven-archetype-plugin-2.0-alpha-3 > > > > > > > > Guide to testing staged releases: > > > > > > > http://maven.apache.org/guides/development/guide-testing-releases.html > > > > > > > > Vote open for 72 hours. > > > > > > > > [ ] +1 > > > > [ ] +0 > > > > [ ] -1 > > > > > > > > > > > > Regards, > > > > > > > > Raphaël > > > > > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >