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 - Profile project action in maven project is misconfigured when arguments are added
Summary: Profile project action in maven project is misconfigured when arguments are a...
Status: RESOLVED DUPLICATE of bug 233321
Alias: None
Product: profiler
Classification: Unclassified
Component: Ide (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P3 normal with 1 vote (vote)
Assignee: issues@profiler
URL:
Keywords: REGRESSION
: 224509 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-10-21 10:12 UTC by jozart
Modified: 2013-07-31 14:26 UTC (History)
2 users (show)

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 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 ***