Eskatos’s thoughts on JEE development

Maven plugins for Glassfish ecosystem

Posted in asadmin-maven-plugin by eskatos on March 28th, 2008

This 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.

Tagged with: , , ,

5 Responses to 'Maven plugins for Glassfish ecosystem'

Subscribe to comments with RSS or TrackBack to 'Maven plugins for Glassfish ecosystem'.

  1. lyeung said, on March 30th, 2008 at 6:34 pm

    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

  2. eskatos said, on March 30th, 2008 at 8:03 pm

    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

  3. Wouter van Reeven said, on March 31st, 2008 at 9:15 am

    Hi Eskatos,

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

    Thanks, Wouter

  4. lyeung said, on March 31st, 2008 at 10:56 am

    Yes, I’m open to this option.

    Cheers,
    lyeung

  5. eskatos said, on March 31st, 2008 at 12:01 pm

    @Wouter van Reeven : give me feedback :)

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

Leave a Reply