eskatos's thoughts

Maven plugins for Glassfish ecosystem

with 7 comments

GlassfishThis post is only a snapshot of what is available at the time of writing to use Glassfish from maven., seen from the perspective of a simple maven plugin developer (simple plugin or simple developer ?).

Before beginning asadmin-maven-plugin, I searched and tried several ways to use Glassfish from maven. Main use case is simply deployment and undeployment of applications.

There are two ways to do this “programmatically” :

  • using the asadmin command, Glassfish specific,
  • and using the JSR-88 api, app-server agnostic

Here are all the glassfish maven plugins I’ve found :

Appart from this, the exec-maven-plugin allows to execute external commands and some posts on the net provide examples of using this plugin to invoke the asadmin command from a maven pom. Some others posts talks about using ant tasks inside maven pom to invoke asadmin.

In fact asadmin-maven-plugin is based on what Wouter van Reeven explain in a post called Deploying to GlassFish using Maven2 on the AMIS Technology Blog. I was using the exec-maven-plugin the way it’s explained there in my projects when I realized how much xml I had to copy/paste around.

At the end of the day, asadmin-maven-plugin is just a convenience maven plugin to execute the asadmin glassfish command leveraging the “convention over configuration” concept that maven teached to me.

In conclusion, I hope that the support for JSR-88 will soon be available in Cargo as we, developers, mostly need the cargo’s integration api usable from unit tests. On the other side, I hope that beside the immediate need of a working solution I’ll have time to maintain and continue asadmin-maven-plugin development.

Next time I’ll publish some documentation about asadmin-maven-plugin configuration.

Written by eskatos

March 28, 2008 at 12:31 am

Posted in Projects

Tagged with , , ,

7 Responses

Subscribe to comments with RSS.

  1. Hi,

    Clownfish plugin binary is now available at:

    http://sourceforge.net/project/platformdownload.php?group_id=222137

    Installation and usage is also available at:
    http://clownfish.sourceforge.net

    Cheers,
    lyeung

    lyeung

    March 30, 2008 at 6:34 pm

  2. Hi lyeung,

    This post already provided a link to your project.

    With your investment in jsr-88, have you in mind to work with the cargo team ? Just curious.

    Regards,
    eskatos

    eskatos

    March 30, 2008 at 8:03 pm

  3. Hi Eskatos,

    Thanks for providing this plugin. I will definately have a look at this later this week.

    Thanks, Wouter

    Wouter van Reeven

    March 31, 2008 at 9:15 am

  4. Yes, I’m open to this option.

    Cheers,
    lyeung

    lyeung

    March 31, 2008 at 10:56 am

  5. @Wouter van Reeven : give me feedback :)

    @lyeung : nice, we all need support for jsr-88 in maven integration tests

    eskatos

    March 31, 2008 at 12:01 pm

  6. This plugin also works well: https://maven-glassfish-plugin.dev.java.net/
    There is a ‘host’ property of ‘domain’, I cannot see it documented, but it works for remote deployment..

    Phil

    October 20, 2009 at 3:36 pm

    • @Phil

      Yes this plugin works well, it was not really usable when I wrote this post

      asadmin-maven-plugin stays easy to extends and close to asadmin way of doing things which can help peoples that knows asadmin well

      And with the upcoming glassfish v3 release, the maven tooling will be even better.

      eskatos

      October 20, 2009 at 3:53 pm


Leave a Reply