This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 155057 - Project from NetBeans platform archetype not created
Summary: Project from NetBeans platform archetype not created
Status: RESOLVED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Maven (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Milos Kleint
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-09 17:40 UTC by Tomas Danek
Modified: 2009-03-10 08:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Danek 2008-12-09 17:40:21 UTC
Product Version: NetBeans IDE Dev (Build 200812080201)
Java: 1.6.0_10-beta; Java HotSpot(TM) Client VM 11.0-b11
System: Linux version 2.6.27-9-generic running on i386; UTF-8; en_US (nb)
Userdir: /tmp/ud
----------
- started ide and waited till repository index get downloaded
- new project wizard
- select netbeans platform module archetype, click next -> project creation fails with:

NetBeans: Executing 'mvn -DarchetypeVersion=1.0.2 -Dbrandingtoken= -Darchetype.interactive=false -DgroupId=com.mycompany
-DarchetypeArtifactId=netbeans-platform-app-archetype -Dversion=1.0-SNAPSHOT
-DarchetypeGroupId=org.codehaus.mojo.archetypes -Dbasedir=/usr/local/home/tomas/NetBeansProjects -Dnetbeans-install=
-Dcluster= -Dpackage=com.mycompany.mavenproject3 -DartifactId=mavenproject3 --batch-mode
org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-3:generate'
Scanning for projects...
------------------------------------------------------------------------
Building Maven Default Project
   task-segment: [org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-3: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
[WARNING] No archetype repository found. Falling back to central repository (http://repo1.maven.org/maven2). 
[WARNING] Use -DarchetypeRepository=<your repository> if archetype's repository is elsewhere.
------------------------------------------------------------------------
[ERROR]BUILD FAILURE
------------------------------------------------------------------------
: org.apache.maven.archetype.exception.ArchetypeNotConfigured: Archetype
org.codehaus.mojo.archetypes:netbeans-platform-app-archetype:1.0.2 is not configured
Archetype org.codehaus.mojo.archetypes:netbeans-platform-app-archetype:1.0.2 is not configured

Archetype org.codehaus.mojo.archetypes:netbeans-platform-app-archetype:1.0.2 is not configured
------------------------------------------------------------------------
For more information, run Maven with the -e switch
------------------------------------------------------------------------
Total time: 4 seconds
Finished at: Tue Dec 09 18:39:10 CET 2008
Final Memory: 9M/82M
------------------------------------------------------------------------
Comment 1 Jaromir Uhrik 2008-12-16 14:56:59 UTC
Decreasing the priority to P3. There is a simple way how to workaround this. Just pay attention to the values available
in the 3rd step of the wizard when creating this project and don't leave empty Additional Creation Properties. These are
empty - as visible from the output which contains:
-Dbrandingtoken=
-Dnetbeans-install=
-Dcluster=
when these are empty then the project is not created. Of course there should be some logic that cannot let user to
finish wizard without set up of required stuff.
Comment 2 Milos Kleint 2009-03-10 08:14:02 UTC
the archetype doesn't require any additional values now (in 1.1 version)