Giter Club home page Giter Club logo

lotaris-glassfish-maven-plugin's Introduction

lotaris-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>com.lotaris.maven.plugins</groupId>
	<artifactId>lotaris-glassfish-maven-plugin</artifactId>
	<version>1.2.2</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

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

lotaris-glassfish-maven-plugin's People

Contributors

prevole avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.