Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
12.2
-
None
Description
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
<parent> <groupId>io.micronaut</groupId> <artifactId>micronaut-parent</artifactId> <version>2.3.3</version> </parent>
as the parent POM. The micronaut parent, in turn, defines
<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>
But IDE will not pick the VM arguments from here to the Run action, the Project Customizer, (and subsquently to the created action mappings).