NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
arittner
Joined: 10 Jun 2009 Posts: 118
|
Posted: Tue Sep 21, 2010 10:19 am Post subject: Can't create Maven projects any more |
|
|
Hi!
My last maven based project creations failed into build error. I've no idea what's going wrong
| Code: |
NetBeans: Executing 'C:\Entw\apache-maven-2.2.1\bin\mvn.bat -DarchetypeVersion=1.1 -Darchetype.interactive=false -DgroupId=de.sepix.app.customers.rep -DarchetypeArtifactId=nbm-suite-root -DarchetypeRepository=http://repository.codehaus.org/ -Dversion=1.0-SNAPSHOT -DarchetypeGroupId=org.codehaus.mojo.archetypes -Darchetype.repository=http://repository.codehaus.org/ -Dbasedir=C:\Entw\Work\svn\4.2\suites -Dpackage=de.sepix.app.customers.rep -DartifactId=sXcustomerreps -Dnetbeans.execution=true --batch-mode org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-4:generate'
NetBeans: JAVA_HOME=C:\Program Files (x86)\Java\jdk1.6.0_20\jre
Scanning for projects...
------------------------------------------------------------------------
Building Maven Default Project
task-segment: [org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-4:generate] (aggregator-style)
------------------------------------------------------------------------
Preparing archetype:generate
No goals needed for project - skipping
Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
Setting property: velocimacro.messages.on => 'false'.
Setting property: resource.loader => 'classpath'.
Setting property: resource.manager.logwhenfound => 'false'.
[archetype:generate]
Generating project in Batch mode
Archetype defined by properties
------------------------------------------------------------------------
[ERROR]BUILD FAILURE
------------------------------------------------------------------------
The defined artifact is not an archetype
------------------------------------------------------------------------
For more information, run Maven with the -e switch
------------------------------------------------------------------------
Total time: 4 seconds
Finished at: Tue Sep 21 12:08:53 CEST 2010
Final Memory: 8M/21M
------------------------------------------------------------------------
|
With the -e Switch, I get this stacktrace:
| Code: |
Trace
org.apache.maven.BuildFailureException: The defined artifact is not an archetype
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:715)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:284)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoFailureException: The defined artifact is not an archetype
at org.apache.maven.archetype.mojos.CreateProjectFromArchetypeMojo.execute(CreateProjectFromArchetypeMojo.java:201)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
... 17 more
------------------------------------------------------------------------
|
br, josh. |
|
| Back to top |
|
 |
arittner
Joined: 10 Jun 2009 Posts: 118
|
Posted: Tue Sep 21, 2010 10:47 am Post subject: |
|
|
Hi!
I've added a global maven option -DarchetypeVersion=1.0 to override the 1.1 version. Now I get a created suite, but not an optional module to the suite.
The module creation, started by the wizard after a successful suite build, failed:
| Code: |
NetBeans: Executing 'C:\Entw\apache-maven-2.2.1\bin\mvn.bat -DarchetypeVersion=1.4 -Darchetype.interactive=false -DgroupId=de.sepix.app.customers.rep -DarchetypeArtifactId=nbm-archetype -DarchetypeRepository=http://repository.codehaus.org/ -Dversion=1.0-SNAPSHOT -DarchetypeGroupId=org.codehaus.mojo.archetypes -Darchetype.repository=http://repository.codehaus.org/ -Dbasedir=C:\Entw\Work\svn\4.2\suites\sXcustomerrep -Dpackage=de.sepix.app.customers.rep -DartifactId=sXcustomerreports -Dnetbeans.execution=true --batch-mode --errors -e -DarchetypeVersion=1.0 org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-4:generate'
NetBeans: JAVA_HOME=C:\Program Files (x86)\Java\jdk1.6.0_20\jre
+ Error stacktraces are turned on.
Scanning for projects...
------------------------------------------------------------------------
Building sXcustomerrep Netbeans Module Suite
task-segment: [org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-4:generate] (aggregator-style)
------------------------------------------------------------------------
Preparing archetype:generate
No goals needed for project - skipping
Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
Setting property: velocimacro.messages.on => 'false'.
Setting property: resource.loader => 'classpath'.
Setting property: resource.manager.logwhenfound => 'false'.
[archetype:generate]
Generating project in Batch mode
Archetype defined by properties
Downloading: http://repository.codehaus.org//org/codehaus/mojo/archetypes/nbm-archetype/1.0/nbm-archetype-1.0.jar
424b downloaded (nbm-archetype-1.0.jar)
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '414b3f78ca5b89d06342573b044e451ba6b00c9e'; remote = '<!DOCTYPE' - RETRYING
Downloading: http://repository.codehaus.org//org/codehaus/mojo/archetypes/nbm-archetype/1.0/nbm-archetype-1.0.jar
424b downloaded (nbm-archetype-1.0.jar)
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '414b3f78ca5b89d06342573b044e451ba6b00c9e'; remote = '<!DOCTYPE' - IGNORING
------------------------------------------------------------------------
[ERROR]BUILD FAILURE
------------------------------------------------------------------------
The defined artifact is not an archetype
------------------------------------------------------------------------
Trace
org.apache.maven.BuildFailureException: The defined artifact is not an archetype
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:715)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:284)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoFailureException: The defined artifact is not an archetype
at org.apache.maven.archetype.mojos.CreateProjectFromArchetypeMojo.execute(CreateProjectFromArchetypeMojo.java:201)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
... 17 more
------------------------------------------------------------------------
Total time: 4 seconds
Finished at: Tue Sep 21 12:40:03 CEST 2010
Final Memory: 8M/21M
------------------------------------------------------------------------
|
br, josh. |
|
| Back to top |
|
 |
arittner
Joined: 10 Jun 2009 Posts: 118
|
Posted: Tue Sep 21, 2010 11:03 am Post subject: |
|
|
Hi!
After deleting the archetypes in my local repository, I get this message (with a standard version = 1.4 build):
| Code: | Downloading: http://repository.codehaus.org//org/codehaus/mojo/archetypes/nbm-archetype/1.4/nbm-archetype-1.4.jar
424b downloaded (nbm-archetype-1.4.jar)
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = 'ef559d761b07ebd6c853bbec9bb4474223333568'; remote = '<!DOCTYPE' - RETRYING
Downloading: http://repository.codehaus.org//org/codehaus/mojo/archetypes/nbm-archetype/1.4/nbm-archetype-1.4.jar
424b downloaded (nbm-archetype-1.4.jar)
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = 'ef559d761b07ebd6c853bbec9bb4474223333568'; remote = '<!DOCTYPE' - IGNORING
|
I've downloaded the jar with Firefox and moved the file into the repository. It works. But what is the base problem? NetBeans is unable to download the archetype file...
br, josh. |
|
| Back to top |
|
 |
Milos Kleint Posted via mailing list.
|
Posted: Wed Sep 22, 2010 6:01 pm Post subject: [platform-dev] Re: Can't create Maven projects any more |
|
|
you are probably on your own there. A global option like that will break things especially when multiple archetypes are executed to construct the setup. run the old archetypes on the cmd line and you should get the same results. That's why it's archetypes in the first place.
you might want to file an issue to make the archetype versions (or ids in general) not hardwired and somehow configurable by advanced users (no ui i guess). I think I've have something along those lines for plugins in some situations..
Milos
On Tue, Sep 21, 2010 at 12:47 PM, arittner <address-removed ([email]address-removed[/email])> wrote:
| Quote: | Hi!
I've added a global maven option -DarchetypeVersion=1.0 to override the 1.1 version. Now I get a created suite, but not an optional module to the suite.
The module creation, started by the wizard after a successful suite build, failed:
Code:
NetBeans: Executing 'C:\Entw\apache-maven-2.2.1\bin\mvn.bat -DarchetypeVersion=1.4 -Darchetype.interactive=false -DgroupId=de.sepix.app.customers.rep -DarchetypeArtifactId=nbm-archetype -DarchetypeRepository=http://repository.codehaus.org/ -Dversion=1.0-SNAPSHOT -DarchetypeGroupId=org.codehaus.mojo.archetypes -Darchetype.repository=http://repository.codehaus.org/ -Dbasedir=C:\Entw\Work\svn\4.2\suites\sXcustomerrep -Dpackage=de.sepix.app.customers.rep -DartifactId=sXcustomerreports -Dnetbeans.execution=true --batch-mode --errors -e -DarchetypeVersion=1.0 org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-4:generate'
NetBeans: JAVA_HOME=C:\Program Files (x86)\Java\jdk1.6.0_20\jre
+ Error stacktraces are turned on.
Scanning for projects...
------------------------------------------------------------------------
Building sXcustomerrep Netbeans Module Suite
task-segment: [org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-4:generate] (aggregator-style)
------------------------------------------------------------------------
Preparing archetype:generate
No goals needed for project - skipping
Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
Setting property: velocimacro.messages.on => 'false'.
Setting property: resource.loader => 'classpath'.
Setting property: resource.manager.logwhenfound => 'false'.
[archetype:generate]
Generating project in Batch mode
Archetype defined by properties
Downloading: http://repository.codehaus.org//org/codehaus/mojo/archetypes/nbm-archetype/1.0/nbm-archetype-1.0.jar
424b downloaded (nbm-archetype-1.0.jar)
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '414b3f78ca5b89d06342573b044e451ba6b00c9e'; remote = '<!DOCTYPE' - RETRYING
Downloading: http://repository.codehaus.org//org/codehaus/mojo/archetypes/nbm-archetype/1.0/nbm-archetype-1.0.jar
424b downloaded (nbm-archetype-1.0.jar)
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '414b3f78ca5b89d06342573b044e451ba6b00c9e'; remote = '<!DOCTYPE' - IGNORING
------------------------------------------------------------------------
[ERROR]BUILD FAILURE
------------------------------------------------------------------------
The defined artifact is not an archetype
------------------------------------------------------------------------
Trace
org.apache.maven.BuildFailureException: The defined artifact is not an archetype
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:715)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:284)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoFailureException: The defined artifact is not an archetype
at org.apache.maven.archetype.mojos.CreateProjectFromArchetypeMojo.execute(CreateProjectFromArchetypeMojo.java:201)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
... 17 more
------------------------------------------------------------------------
Total time: 4 seconds
Finished at: Tue Sep 21 12:40:03 CEST 2010
Final Memory: 8M/21M
------------------------------------------------------------------------
br, josh.
------------------------
JNBB/BeanDev: Das deutsche Blog zur NetBeans Platform (http://www.sepix.de/blogs/blogrittner)
|
|
|
| Back to top |
|
 |
Antonin Nebuzelsky Posted via mailing list.
|
Posted: Wed Sep 22, 2010 6:08 pm Post subject: [platform-dev] Re: Can't create Maven projects any more |
|
|
http://netbeans.org/bugzilla/show_bug.cgi?id=190033#c7
On 09/21/2010 12:47 PM, arittner wrote:
| Quote: | Hi!
I've added a global maven option -DarchetypeVersion=1.0 to override the 1.1 version. Now I get a created suite, but not an optional module to the suite.
The module creation, started by the wizard after a successful suite build, failed:
Code:
NetBeans: Executing 'C:\Entw\apache-maven-2.2.1\bin\mvn.bat -DarchetypeVersion=1.4 -Darchetype.interactive=false -DgroupId=de.sepix.app.customers.rep -DarchetypeArtifactId=nbm-archetype -DarchetypeRepository=http://repository.codehaus.org/ -Dversion=1.0-SNAPSHOT -DarchetypeGroupId=org.codehaus.mojo.archetypes -Darchetype.repository=http://repository.codehaus.org/ -Dbasedir=C:\Entw\Work\svn\4.2\suites\sXcustomerrep -Dpackage=de.sepix.app.customers.rep -DartifactId=sXcustomerreports -Dnetbeans.execution=true --batch-mode --errors -e -DarchetypeVersion=1.0 org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-4:generate'
NetBeans: JAVA_HOME=C:\Program Files (x86)\Java\jdk1.6.0_20\jre
+ Error stacktraces are turned on.
Scanning for projects...
------------------------------------------------------------------------
Building sXcustomerrep Netbeans Module Suite
task-segment: [org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-4:generate] (aggregator-style)
------------------------------------------------------------------------
Preparing archetype:generate
No goals needed for project - skipping
Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
Setting property: velocimacro.messages.on => 'false'.
Setting property: resource.loader => 'classpath'.
Setting property: resource.manager.logwhenfound => 'false'.
[archetype:generate]
Generating project in Batch mode
Archetype defined by properties
Downloading: http://repository.codehaus.org//org/codehaus/mojo/archetypes/nbm-archetype/1.0/nbm-archetype-1.0.jar
424b downloaded (nbm-archetype-1.0.jar)
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '414b3f78ca5b89d06342573b044e451ba6b00c9e'; remote = '<!DOCTYPE' - RETRYING
Downloading: http://repository.codehaus.org//org/codehaus/mojo/archetypes/nbm-archetype/1.0/nbm-archetype-1.0.jar
424b downloaded (nbm-archetype-1.0.jar)
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '414b3f78ca5b89d06342573b044e451ba6b00c9e'; remote = '<!DOCTYPE' - IGNORING
------------------------------------------------------------------------
[ERROR]BUILD FAILURE
------------------------------------------------------------------------
The defined artifact is not an archetype
------------------------------------------------------------------------
Trace
org.apache.maven.BuildFailureException: The defined artifact is not an archetype
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:715)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:284)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoFailureException: The defined artifact is not an archetype
at org.apache.maven.archetype.mojos.CreateProjectFromArchetypeMojo.execute(CreateProjectFromArchetypeMojo.java:201)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
... 17 more
------------------------------------------------------------------------
Total time: 4 seconds
Finished at: Tue Sep 21 12:40:03 CEST 2010
Final Memory: 8M/21M
------------------------------------------------------------------------
br, josh.
------------------------
JNBB/BeanDev: Das deutsche Blog zur NetBeans Platform (http://www.sepix.de/blogs/blogrittner)
|
|
|
| Back to top |
|
 |
arittner
Joined: 10 Jun 2009 Posts: 118
|
Posted: Wed Sep 22, 2010 9:24 pm Post subject: |
|
|
Hi Antonin & Milos!
Thank you for the infos!
br, josh. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|