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 220500

Summary: Profile project action in maven project is misconfigured when arguments are added
Product: profiler Reporter: jozart <jozart>
Component: IdeAssignee: issues@profiler <issues>
Status: RESOLVED DUPLICATE    
Severity: normal CC: faximili, gtzabari
Priority: P3 Keywords: REGRESSION
Version: 7.3   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:

Description jozart 2012-10-21 10:12:16 UTC
Adding arguments to a Maven project results in a misconfigured "Profile project" action:

exec.args=${profiler.args} -classpath %classpath ${packageClassName} foo
exec.executable=${profiler.java}

Above, adding a "foo" argument in Project properties > Run results in the addition of ${profiler.args} and ${profiler.java} to the "Profile project" action.

Neither of these profiler properties are defined, resulting in the error below when attempting to profile the project:

Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (default-cli) on project: The parameters 'executable' for goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec are missing or invalid -> [Help 1]
Comment 1 jozart 2012-10-22 06:43:27 UTC
Workaround:

Edit the "Profile project" action, removing ${profiler.args} and replacing ${profiler.java} with "java".

exec.args=-classpath %classpath ${packageClassName} foo
exec.executable=java
Comment 2 _ gtzabari 2012-12-13 22:02:23 UTC
Out of curiosity, isn't this a regression? I'd be surprised if older versions used to break this way.
Comment 3 jozart 2012-12-13 22:15:16 UTC
(In reply to comment #2)
> Out of curiosity, isn't this a regression? I'd be surprised if older versions
> used to break this way.

Yes, it used to work in 7.2.
Comment 4 Petr Cyhelsky 2013-01-08 08:22:59 UTC
*** Bug 224509 has been marked as a duplicate of this bug. ***
Comment 5 Petr Cyhelsky 2013-07-31 14:26:39 UTC

*** This bug has been marked as a duplicate of bug 233321 ***