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.
Summary: | Cannot profile projects with maven-exec-plugin in pom.xml | ||
---|---|---|---|
Product: | projects | Reporter: | Jaroslav Tulach <jtulach> |
Component: | Maven | Assignee: | Tomas Stupka <tstupka> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | sdedic, thurka, tstupka |
Priority: | P3 | ||
Version: | 8.2 | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Jaroslav Tulach
2016-04-27 08:49:16 UTC
Similar problem has been observed by Sváťa. The solution he currently considers is to set other properties than "exec.args" and let the plugin configuration itself compose them together. That would be similar to the debugger/maven integration. The debugger integration reacts to property: jpda.listen=true and once it is provided, it starts JPDA server and sets property jpda.address to the port the server listens to. As a result it is possible to have following in nbactions.xml: <action> <actionName>debug</actionName> <packagings> <packaging>jar</packaging> </packagings> <goals> <goal>process-classes</goal> <goal>exec:exec</goal> </goals> <properties> <debug>-Xrunjdwp:transport=dt_socket,server=n,address=${jpda.address}</debug> <jpda.listen>true</jpda.listen> </properties> </action> to reproduce: - graal has to be installed and setup in the IDE (http://www.oracle.com/technetwork/oracle-labs/program-languages/downloads/index.html) - https://github.com/jtulach/sieve (#8709183dd0e7ef5b0cf78644903cbcd928d2ff90) - open project "ruby+js/fromjava" - profile ... Tomáš mentioned that the Maven support could understand the exec-maven-plugin and its configuration and when preparing the command line, merge the arguments from the pom.xml with the arguments provided by tools like profiler or javarepl. If that was done, it would be perfect. merging the exec args as given by pom might become tricky in non trivial cases. so will do the merge only for cases when the nb action doesn't derive much from the (hopefully) typical scenario as reported by jarda. That should resolve the problem in profiler and also avoid the additional configuration steps in nbactions.xml and pom.xml which were necessary to get debug and run working. the solution via a dedicated property/-ies as suggested above would by more powerful and probably cover all possible cases, though not so trivial to set up and a clean implementation would ask also for changes in the already existing debugger-maven interaction. Lets keep this option open for the time when the need really appears. fixed in jet-main #f0bb222fc8d9 Integrated into 'main-silver', will be available in build *201605070002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/f0bb222fc8d9 User: Tomas Stupka <tstupka@netbeans.org> Log: Issue #259028 - Cannot profile projects with maven-exec-plugin in pom.xml |