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 255762 - NullPointerException at org.netbeans.modules.maven.execute.MavenCommandLineExecutor$7.build
Summary: NullPointerException at org.netbeans.modules.maven.execute.MavenCommandLineEx...
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Stupka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-07 09:52 UTC by skygo
Modified: 2015-12-08 05:45 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 218950


Attachments
stacktrace (889 bytes, text/plain)
2015-10-07 09:52 UTC, skygo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description skygo 2015-10-07 09:52:14 UTC
Build: NetBeans IDE 8.1 RC (Build 201510012201)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.66-b02, Java(TM) SE Runtime Environment, 1.8.0_66-ea-b02
OS: Windows 10

User Comments:
GUEST: Attempted to build maven project after just opening netbeans

GUEST: Updated jar versions in parent pom that have not been pulled into local .m2 repo. pressed F11 and then exception

GUEST: Attempted to build maven project just after startup

skygo: I tryied to execute a clean build on a maven project




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.maven.execute.MavenCommandLineExecutor$7.build(MavenCommandLineExecutor.java:738)
   at org.netbeans.modules.maven.execute.MavenCommandLineExecutor$7.build(MavenCommandLineExecutor.java:735)
   at org.netbeans.modules.maven.api.PluginPropertyUtils.getPluginPropertyImpl(PluginPropertyUtils.java:149)
   at org.netbeans.modules.maven.api.PluginPropertyUtils.getPluginPropertyBuildable(PluginPropertyUtils.java:194)
   at org.netbeans.modules.maven.execute.MavenCommandLineExecutor.guessBestMaven(MavenCommandLineExecutor.java:735)
   at org.netbeans.modules.maven.execute.MavenCommandLineExecutor.constructBuilder(MavenCommandLineExecutor.java:554)
Comment 1 skygo 2015-10-07 09:52:16 UTC
Created attachment 156579 [details]
stacktrace
Comment 2 Exceptions Reporter 2015-11-25 10:12:15 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=218950
Comment 3 mtbadi39 2015-11-25 15:23:29 UTC
This Exception is maven-enforcer-plugin Configuration related, NOT Netbeans :
After updating plugin version to 1.4.1, netbeans rise this exception. And by googling i found a solution her : 
http://stackoverflow.com/questions/6754974/usage-of-maven-enforcer-plugin
Hope this help.
Comment 4 Tomas Stupka 2015-12-07 09:29:05 UTC
fixed in jet-main #165d47e2357d
Comment 5 Quality Engineering 2015-12-08 05:45:41 UTC
Integrated into 'main-silver', will be available in build *201512080311* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/165d47e2357d
User: Tomas Stupka <tstupka@netbeans.org>
Log: Issue #255762 - NullPointerException at org.netbeans.modules.maven.execute.MavenCommandLineExecutor$7.build