Skip to content

A Maven plugin to create and manage domains and to deploy artifacts

License

Notifications You must be signed in to change notification settings

probedock/glassfish-maven-plugin

Repository files navigation

glassfish-maven-plugin

A plugin to create/drop domains, deploy application and manage resources.

Usage

  1. Put the following dependency in your pom.xml
<plugin>
	<groupId>io.probedock.maven.plugins</groupId>
	<artifactId>glassfish-maven-plugin</artifactId>
	<version>1.0.0</version>
	<executions>
		<execution>
			<id>glassfish</id>
			<goals>
				<goal>deploy</goal>
			</goals>
		</execution>
	</executions>
	
	<configuration>
		<glassfish>
			<home>path/to/glassfish/home</home>
			<user>admin</user>
			<passwordFile>path/to/glassfish/home/bin/PASSWORD_FILE</passwordFile>
			<echo>true</echo>
			<terse>false</terse>
		</glassfish>

		<domain>
			<name>domain1</name>
			<adminPort>4848</adminPort>
		</domain>

		<deployConfig>
			<name>${project.artifactId}</name>
			<file>${project.basedir}/target/${project.build.finalName}.${project.packaging}</file>
			<type>${project.packaging}</type>
			<force>true</force>
		</deployConfig>
	</configuration>
</plugin>

Requirements

  • Java 6+

Known issues

  1. If you are using glassfish 3.x with this plugin, you should not use the config:
...
	<deployConfig>
		...
		<type>ear</type>
		...
	</deployConfig>
...

Only one type is recognized by asadmin in glassfish 3.x. Therefore, the type is guessed from the packaging itself during the deployment.

See: http://docs.oracle.com/cd/E18930_01/html/821-2433/deploy-1.html#SJSASEEREFMANdeploy-1

Contributing

  • Fork
  • Create a topic branch - git checkout -b feature
  • Push to your branch - git push origin feature
  • Create a pull request from your branch

Please add a changelog entry with your name for new features and bug fixes.

License

glassfish-maven-plugin is licensed under the MIT License. See LICENSE.txt for the full text.

About

A Maven plugin to create and manage domains and to deploy artifacts

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages