Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eskatos/asadmin
Java API and Maven plugin to invoke Glassfish v3 & V2 asadmin commands
https://github.com/eskatos/asadmin
Last synced: 4 months ago
JSON representation
Java API and Maven plugin to invoke Glassfish v3 & V2 asadmin commands
- Host: GitHub
- URL: https://github.com/eskatos/asadmin
- Owner: eskatos
- License: apache-2.0
- Created: 2010-10-24T12:30:15.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2013-02-07T14:54:58.000Z (about 12 years ago)
- Last Synced: 2024-10-04T19:06:33.136Z (4 months ago)
- Language: Java
- Homepage: http://eskatos.github.com/asadmin/
- Size: 1.62 MB
- Stars: 16
- Watchers: 12
- Forks: 14
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# asadmin-java
asadmin-java is a java api to invoke glassfish V3 and V2 asadmin commands
The project is hosted in maven central.
[here](http://search.maven.org/#search%7Cga%7C1%7Casadmin-java) you'll find a quick copy/paste for the dependency.# asadmin-maven-plugin
asadmin-maven-plugin is a maven plugin based on asadmin commands
The project is hosted in maven central, to use it add the following snippet to your pom.xml:
org.codeartisans.asadmin
asadmin-maven-plugin
0.12
The following goals are available:
mvn asadmin:start-database
mvn asadmin:stop-databasemvn asadmin:start-domain
mvn asadmin:stop-domain
mvn asadmin:restart-domainmvn asadmin:start-cluster
mvn asadmin:stop-clustermvn asadmin:deploy
mvn asadmin:redeploy
mvn asadmin:undeploymvn asadmin:uptime
mvn asadmin:get-healthmvn asadmin:get
mvn asadmin:set
mvn asadmin:set-ports # To change the http listeners portsmvn asadmin:create-jdbc-connection-pool
mvn asadmin:ping-connection-pool
mvn asadmin:delete-jdbc-connection-poolmvn asadmin:add-resources
mvn asadmin:create-jdbc-resource
mvn asadmin:delete-jdbc-resourcemvn asadmin:create-auth-realm
mvn asadmin:list-file-users
mvn asadmin:create-file-user
mvn asadmin:update-file-user
mvn asadmin:delete-file-usermvn asadmin:create-message-security-provider
mvn asadmin:delete-message-security-providerBy default the asadmin-maven-plugin use the following settings:
user: admin
password-file: ~/.asadmintruststore
admin-host: localhost
admin-port: 4848
domain: domain1
contextRoot: ${finalName} (only for WAR projects)By default, the deploy and undeploy mojos use the archive (jar/war/ear) produced by your maven project and deploy it using your project's artifactId as module name.
Here is a pom example expressing the default configuration :
4.0.0[ ... ]
org.codeartisans.asadmin
asadmin-maven-plugin
0.12
/path/to/your/glassfish/installation/folder
domain1
localhost
4848
admin
~/.asadmintruststore
${project.build.directory}/${project.build.finalName}.${project.artifact.artifactHandler.extension}
war-exemple
[ ... ]
# ChangeLog
**asadmin-0.12** - 2013-02-07
Thanks to Alexander Ovchinnikov for his contribution to this release.
- Redeploy action/goal now support upload
**asadmin-0.11** - 2012-12-17
Thanks to Adi for his contribution to this release.
- Added redeploy action and virtual servers support to the asadmin:deploy goal
**asadmin-0.10** - 2012-11-04
Thanks to J.Francis and Charles Brown for their contribution to this release.
- Added JSP precompile option to all deployment goals
- Added asadmin:restart-domain goal
- Added ability to deploy to remote instance/cluster
- Added add-resources command and goal
- Added start-cluster and stop-cluster commands and goals
- Added --availabilityenabled param to the deploy command and goal
- Added get-health command and goal
- Added uptime command and goal
- Better error handling**asadmin-0.9** - 2012-05-02
------------------
This code was previously hosted [here](http://code.google.com/p/asadmin-maven-plugin/).