Skip to content

Instantly share code, notes, and snippets.

@mike-boddin
Created December 8, 2015 07:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mike-boddin/0939c90ec5dfe99405a2 to your computer and use it in GitHub Desktop.
Save mike-boddin/0939c90ec5dfe99405a2 to your computer and use it in GitHub Desktop.
NetBeans: nbactions for spring-boot
<?xml version="1.0" encoding="UTF-8"?>
<actions>
<action>
<actionName>CUSTOM-spring-boot:run</actionName>
<displayName>spring-boot:run</displayName>
<goals>
<goal>spring-boot:run -Drun.jvmArguments="-Xms128m -Xmx256m"</goal>
</goals>
</action>
<action>
<actionName>CUSTOM-spring-boot:run-Debug</actionName>
<displayName>spring-boot:run-Debug</displayName>
<goals>
<goal>spring-boot:run -Drun.jvmArguments="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=4000""</goal>
</goals>
</action>
<action>
<actionName>CUSTOM-dependency:tree</actionName>
<displayName>dependency:tree</displayName>
<goals>
<goal>dependency:tree</goal>
</goals>
</action>
</actions>
@mike-boddin
Copy link
Author

For using the debug-mode start the spring-boot:run-Debug goal, wait for Listening for transport dt_socket at address: 4000 in the console and then attach the debugger by click on Debug->Attach Debugger... in the context-menu
attach_debugger

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment