Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p><strong>Update:</strong> <strike><a href="http://jira.codehaus.org/browse/CARGO-491" rel="noreferrer">CARGO-491</a></strike> has been fixed and I've updated my answer accordingly. To summarize, there are now basically three options:</p> <h3>Maven GlassFish Plugin</h3> <p>A first option would be to use the <a href="https://maven-glassfish-plugin.dev.java.net/" rel="noreferrer">Maven GlassFish Plugin</a>. This plugin allows to interact with a local or remote GlassFish install and the <em>management of Glassfish domains and component deployments from within the Maven build lifecycle</em>.</p> <h3>Maven Embedded GlassFish Plugin</h3> <p>The second option would be to use the <a href="http://docs.sun.com/app/docs/doc/821-1208/gijhs?l=en&amp;a=view" rel="noreferrer">Maven Embedded Glassfish Plugin</a>. As stated by its name, this plugin doesn't rely on an existing install but uses an embedded GlassFish, running in the same JVM as the plugin. This plugin is extremely nice if you want to keep your build portable (anybody can get your POM and run a build involving GlassFish without having it installed) with almost the same features as a normal GlassFish install, except clustering of course (you can use a preconfigured <code>domain.xml</code> if you want). See <a href="http://blogs.oracle.com/alexismp/entry/glassfish_embedded_and_javadb_embedded" rel="noreferrer">Testing with the GlassFish Maven plugin and JavaDB Embedded</a> for an example.</p> <h3>Maven Cargo Plugin</h3> <p>The work initiated by Kohsuke Kawagushi as been finally integrated in Cargo and, starting with Cargo 1.0.1, <a href="http://cargo.codehaus.org/Glassfish+3.x" rel="noreferrer">GlassFish 3.x is now supported</a>. Using the <a href="http://cargo.codehaus.org/Maven2+plugin" rel="noreferrer">Maven Cargo plugin</a> is thus a third option. This would be interesting for builds that want to interact with containers in an agnostic way. But I'm not sure Cargo allows all the flexibility of the GlassFish specific plugin(s) (e.g. deployment of JMS resources, etc).</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload