This page describes the shell script atlas-debug
, part of the Atlassian Plugin SDK.
atlas-debug [options]
- Runs the application in debug mode with your plugin installed. (Runs mvn amps:debug
.) Interpreted parameters: version, container, http-port, context-path, server, jvmargs, log4j, test-version, sal-version, rest-version, plugins, lib-plugins, bundled-plugins, product, jvm-debug-port, jvm-debug-suspend
.
This shell script supports some interpreted parameters, specified below. All other parameters are passed straight through to Maven.
Explaining the table columns:
Interpreted parameters:
Full Parameter | Description |
---|---|
--version | Version of the application to run. Default is
Shortened: -v |
--container | Container to run in. Default is Shortened: -c |
--http-port | HTTP port for the servlet container. The defaults are as described in the SDK overview. You may need to change this if you already have a process listed for the default port, such as when you want to bring up two instances of Confluence. Shortened: -p |
--ajp-port
| AJP port for the servlet container. The defaults are as described in the SDK overview. You may need to change this if you already have a process listed for the default port, such as when you want to bring up two instances of Confluence. Shortened: -ajp |
--context-path | The application context path. You will need to include the leading forward slash. For example, if your application is running at http://localhost:1990/confluence then you should enter To run your application in the root web application context (eg. http://localhost:1990), then you should enter ROOT. |
--server | Host name of the application server. The default is |
--jvmargs | Additional JVM arguments if required. |
--log4j | Path and file name of the Log4j properties file. |
--test-version | Version to use for test resources. Default is |
--sal-version | Version of SAL (Shared Access Layer) to use. |
--rest-version | Version of the Atlassian REST module to use. |
--plugins | A list of plugin artifacts, separated by commas, in the form |
--lib-plugins | A list of lib artifacts, separated by commas, in the form |
--bundled-plugins | A list of bundled plugin artifacts, separated by commas, in the form |
--product | The application to launch with the plugin. You might use this if your plugin is written for one application (as specified in the POM) but you want to install the plugin into another application. |
--jvm-debug-port | Port open to accept connections for remote debugging. Default is |
--jvm-debug-suspend | If this parameter is present, the JVM will be suspended until the debugger connects. |
--jvm-debug-suspend doesn't accept a value.
The shell script will display some help text if you enter one of the following as the first argument:
For example:
1 2atlas-debug -? atlas-debug -help
Say you want to install and run your plugin in your host Atlassian application, attaching your debugger. Go to the plugin's project directory (where you created the plugin) and type:
1 2atlas-debug
Note that the above shell script will work for any host application, including Confluence, Jira, etc. The script will determine the application, based on your plugin's specifications.
Say you want to run your plugin with Confluence 2.10.3, attaching your debugger. Go to the plugin's project directory (where you created the plugin) and type:
1 2atlas-clean atlas-debug --version 2.10.3
Say you want to run your plugin with Jira 4.0 snapshot. Go to the plugin's project directory (where you created the plugin) and type:
1 2atlas-clean atlas-debug --version 4.0-SNAPSHOT
Running atlas-clean
will clear the previous version of the host application from your build output directory. You only need to do this if the previous application version was different from the one you need now.
Say you want to run your plugin with Confluence 2.10.3 and JBoss 4.2.x. Go to the plugin's project directory (where you created the plugin) and type:
1 2atlas-debug --version 2.10.3 --container jboss42x
Say you want to run that plugin but with Confluence 2.10.3 and SAL 2.0.5:
1 2atlas-debug --version 2.10.3 --sal-version 2.0.5
Say you want to run that RefApp plugin in multiple applications simultaneously, with debugger attached. In three separate tabs in your terminal (command window):
Type the following to run the plugin in the RefApp:
1 2atlas-debug
Type the following to run the plugin in Confluence:
1 2atlas-debug --product confluence --version 3.0-m9
Type the following to run the plugin in Jira:
1 2atlas-debug --product jira --version 4.0-SNAPSHOT
Rate this page: