Commit dacad22f authored by Stephane Nicoll's avatar Stephane Nicoll

Fix jvmArgs usage example

The  configuration within an execution is only applied when that
particular execution is invoked as part of the build. It is not
applied when the plugin is invoked on the command line (i.e.
mvn spring-boot:run).

This commit clarifies the situation so that users can safely copy/paste
those bits and get the expected behavior.

 Fixes gh-875
parent 549daaef
...@@ -21,18 +21,11 @@ ...@@ -21,18 +21,11 @@
<groupId>${project.groupId}</groupId> <groupId>${project.groupId}</groupId>
<artifactId>${project.artifactId}</artifactId> <artifactId>${project.artifactId}</artifactId>
<version>${project.version}</version> <version>${project.version}</version>
<executions> <configuration>
<execution> <jvmArguments>
<goals> -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005
<goal>run</goal> </jvmArguments>
</goals> </configuration>
<configuration>
<jvmArguments>
-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005
</jvmArguments>
</configuration>
</execution>
</executions>
... ...
</plugin> </plugin>
... ...
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment