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 156166 - create project fails
Summary: create project fails
Status: RESOLVED DUPLICATE of bug 151559
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: Milos Kleint
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-30 14:19 UTC by raharsha
Modified: 2009-02-19 22:42 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 raharsha 2008-12-30 14:19:52 UTC
When  you create a new maven project with a chosen archetype, it fails. 

NetBeans: Executing 'C:\maven\2.0.7\bin\mvn.bat -DarchetypeVersion=1.1.2 -Darchetype.interactive=false -
DgroupId=com.xxx.xxx -DarchetypeArtifactId=spring-osgi-bundle-archetype -
DarchetypeRepository=http://repo1.maven.org/maven2 -Dversion=1.0-SNAPSHOT -DarchetypeGroupId=org.springframework.osgi -
Darchetype.repository=http://repo1.maven.org/maven2 -Dbasedir=C:\work\osgi1 -Dpackage=com.xxx.xxx.server -
DartifactId=osgiserverbundle --batch-mode org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-3:generate'

ERROR: JAVA_HOME not found in your environment.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation
Comment 1 Milos Kleint 2009-01-02 09:44:05 UTC
the primary problem is that you failed to follow the maven.apache.org's installation instructions.
See http://maven.apache.org/download.html#Installation

I'll see if the situation can be recognized from netbeans' codebase and worarounded somehow.
Comment 2 Milos Kleint 2009-01-02 09:50:04 UTC
it shoud actually be done in netbeans 7.0 milestone 1, duplicate of #151559

*** This issue has been marked as a duplicate of 151559 ***