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 199809

Summary: Cannot run mvn module suite
Product: apisupport Reporter: Tomas Danek <musilt2>
Component: MavenAssignee: Jesse Glick <jglick>
Status: RESOLVED INVALID    
Severity: normal    
Priority: P2    
Version: 7.0.1   
Hardware: PC   
OS: Mac OS X   
Issue Type: DEFECT Exception Reporter:

Description Tomas Danek 2011-07-01 09:58:36 UTC
Product Version: NetBeans IDE 7.0.1 RC1 (Build 201106222100)
Java: 1.6.0_26; Java HotSpot(TM) 64-Bit Server VM 20.1-b02-384
System: Mac OS X version 10.6.8 running on x86_64; MacRoman; en_US (nb)
Userdir: /Users/tomas/.netbeans/7.0.1rc1
----------------
- create maven module suite, select RELEASE70 as target version, check to allow osgi, check to create sample module
- build with dependencies
- run -> run fails on launching NB instance of 7.0 RC2 ?!

--------------->8-------------------------------------- 


[nbm:cluster]
Created NetBeans module cluster(s) at /private/tmp/suiteMvn/target/netbeans_clusters

[nbm:run-ide]
Additional arguments=null
      --userdir
      /private/tmp/suiteMvn/target/userdir
      -J-Dnetbeans.logger.console=true
      -J-ea
Executing: /bin/sh -c "/Applications/NetBeans/NetBeans 7.0 RC2.app/Contents/Resources/NetBeans/bin/netbeans" --userdir /private/tmp/suiteMvn/target/userdir -J-Dnetbeans.logger.console=true -J-ea
/bin/sh: /Applications/NetBeans/NetBeans 7.0 RC2.app/Contents/Resources/NetBeans/bin/netbeans: No such file or directory
------------------------------------------------------------------------
Reactor Summary:

suiteMvn NetBeans Module Suite .................... SUCCESS [1.186s]
suiteMvn-sample NetBeans Module ................... SUCCESS [18.677s]
------------------------------------------------------------------------
BUILD SUCCESS
------------------------------------------------------------------------
Total time: 21.333s
Finished at: Fri Jul 01 11:52:19 CEST 2011
Final Memory: 8M/81M
------------------------------------------------------------------------
Comment 1 Jesse Glick 2011-07-01 14:31:57 UTC
~/.m2/settings.xml can contain a default global definition of ${netbeans.installation}, typically in a netbeans-ide profile. If you want to use some other installation, update it. (When _absent_ the New Project wizard for NetBeans Module Suite will define it according to the current installation, but will not edit an existing definition.)

In general I do not recommend using Maven > NetBeans Module Suite (and nbm:run-ide) to begin with. It is not the "Maven way", since it relies on an external definition of an IDE installation for running. Use NetBeans Application (and nbm:run-platform) instead, which builds and runs exclusively from the repository.