Svatopluk Dedic created NETBEANS-5389:
-----------------------------------------
Summary: Maven parent POM VM parameters ignored
Key: NETBEANS-5389
URL: https://issues.apache.org/jira/browse/NETBEANS-5389
Project: NetBeans
Issue Type: Improvement
Components: projects - Maven
Affects Versions: 12.2
Reporter: Svatopluk Dedic
During development of a Micronaut-based project, I have realized that launch of
the application gets *different parameters* when run from the IDE, and from the
commandline.
In absence of an action mapping, the IDE attempts to parse out VM parametrs and
application parameters from the pom.xml, but does not use *effective POM*
model.
Micronaut incidentally generates their project's boilerplate so that it
references
{code:java}
<parent>
<groupId>io.micronaut</groupId>
<artifactId>micronaut-parent</artifactId>
<version>2.3.3</version>
</parent>
{code}
as the parent POM. The micronaut parent, in turn, defines
{code:java}
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>${exec-maven-plugin.version}</version>
<configuration>
<executable>java</executable>
<arguments>
<argument>-classpath</argument>
<classpath/>
<argument>-XX:TieredStopAtLevel=1</argument>
<argument>-Dcom.sun.management.jmxremote</argument>
<argument>${exec.mainClass}</argument>
</arguments>
</configuration>
</plugin>
{code}
But IDE will not pick the VM arguments from here to the Run action, the Project
Customizer, (and subsquently to the created action mappings).
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists