Goals available for this plugin:
| Goal | Description |
|---|---|
| embedded-glassfish:admin | This Mojo runs post startup adminstrative commands on the Embedded GlassFish. The commands should be specified in the commands string array. |
| embedded-glassfish:deploy | This Mojo deploys the application to the Embedded GlassFish server. The deployment artifact's location can be specified using 'app' configuration and the deployment parameters can be specified in 'deploymentParams' configuration. |
| embedded-glassfish:run | This Mojo starts Embedded GlassFish and deploys the application with the configured parameters supplied by the user in the embedded-glassfish-maven-plugin configuration. Use must enter 'X' in their console for this Mojo to exit. |
| embedded-glassfish:runscatteredarchive | This goal is not implemented. There is no usecase/requirement in support of this goal. |
| embedded-glassfish:start | This Mojo starts the Embedded GlassFish with the configured parameters supplied by the user in the embedded-glassfish-maven-plugin configuration. |
| embedded-glassfish:stop | This Mojo stops the Embedded GlassFish server. |
| embedded-glassfish:undeploy | This Mojo undeploys the application from the Embedded GlassFish server. The name of the application to be undeployed can be specified using 'name' configuration and the undeployment parameters can be specified in 'undeploymentParams' configuration. |
The following specifies the minimum requirements to run this Maven plugin:
| Maven | 2.0 |
| JDK | 1.5 |
| Memory | No minimum requirement. |
| Disk Space | No minimum requirement. |
You should specify the version in your project's plugin configuration:
<project>
...
<build>
<!-- To define the plugin version in your parent POM -->
<pluginManagement>
<plugins>
<plugin>
<groupId>org.glassfish</groupId>
<artifactId>maven-embedded-glassfish-plugin</artifactId>
<version>3.1</version>
</plugin>
...
</plugins>
</pluginManagement>
<!-- To use the plugin goals in your POM or parent POM -->
<plugins>
<plugin>
<groupId>org.glassfish</groupId>
<artifactId>maven-embedded-glassfish-plugin</artifactId>
<version>3.1</version>
</plugin>
...
</plugins>
</build>
...
</project>
For more information, see "Guide to Configuring Plug-ins"