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 257700 - LifecycleExecutionException when profiling maven based project
Summary: LifecycleExecutionException when profiling maven based project
Status: RESOLVED INCOMPLETE
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 8.1
Hardware: PC Windows 10
: P3 normal (vote)
Assignee: issues@profiler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-26 13:50 UTC by senendds
Modified: 2016-08-11 12:55 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 senendds 2016-01-26 13:50:45 UTC
When I profile a maven based project I get this exception:

org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (default-cli) on project whatever: The parameters 'executable' for goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec are missing or invalid

Enabling debug messages in maven, I guess this is the relevant part:

[DEBUG] Configuring mojo 'org.codehaus.mojo:exec-maven-plugin:1.2.1:exec' with basic configurator -->
[DEBUG]   (f) basedir = C:\whatever
[DEBUG]   (f) classpathScope = runtime
[DEBUG]   (f) commandlineArgs = -agentpath:"C:/Program Files/NetBeans 8.1/profiler/lib/deployed/jdk16/windows/profilerinterface.dll"="C:\Program Files\NetBeans 8.1\profiler\lib",5140,10 -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=C:\Users\user\AppData\Local\Temp\  -classpath %classpath com.whatever.WhatEver
Comment 1 senendds 2016-01-26 17:14:12 UTC
I've deleted the nbactions.xml file, a new one has been created, and now it's working.

The old file had this configuration:

<exec.args>${profiler.args} -classpath %classpath com.whatever.WhatEver</exec.args>

the new file has this one:

<exec.args>-classpath %classpath com.whatever.WhatEver</exec.args>
Comment 2 Tomas Hurka 2016-08-11 12:55:20 UTC
Can you, please, provide steps how to reproduce it? Thanks.