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.
Build: NetBeans IDE 7.1 Beta (Build 201109222201) VM: Java HotSpot(TM) 64-Bit Server VM, 20.1-b02, Java(TM) SE Runtime Environment, 1.6.0_26-b03 OS: Linux User Comments: Monezz: click "build installers" on a maven platform application. Stacktrace: java.lang.NullPointerException at org.netbeans.modules.apisupport.installer.maven.actions.BuildInstallersAction$ContextBuildInstaller.actionPerformed(BuildInstallersAction.java:224) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242) at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
Created attachment 111410 [details] stacktrace
Steps to reproduce: - Create a Maven Netbeans application (RELEASE71-BETA) - check "Create Module Project" - build the application - copy the application project ($ cp -r mavenproject1/application standalone-app) - change the name in the copied pom (standalone-app/pom.xml) to "<name>standalone-app</name>" - open "standalone-app" project in the IDE - perform clean install and run on the standalone-app, both work like expected and similar to mavenproject1/application, zip distribution is created and works - run Build Installers on the project "standalone-app" Expected result: - Installers to be build Actual result: - NullPointerException
Reproducible but unsure how to fix. (Did not write the NBI support and am not sure who if anyone claims to maintain it. Should probably be moved out of the standard distro.) Problem is attempt to pass a variable suite.location which in a normal app would point to the parent POM, i.e. ../, but here your parent POM is in the repo not in the reactor so such a location would be meaningless. The Ant script libs.nbi.ant/stub/template.xml interprets this variable. Quick inspection suggests that it is not capable of handling your setup. Probably needs to be rewritten to really support Maven.
*** Bug 207200 has been marked as a duplicate of this bug. ***
The 3.7 plugin includes a goal for building installers which should be used instead.