Skip to main content

Usage

Released versions of this plugin are hosted in the java.net Maven2 Repository . To include the plugin in your project you must add the following to your POM:

    <pluginRepositories>
        ...
        <pluginRepository>
            <id>maven.java.net</id>
            <name>Java.net Maven2 Repository</name>
            <url>http://download.java.net/maven/2</url>
        </pluginRepository>
        ...
    </pluginRepositories>

    <build>
        ...
        <plugins>
            ...
            <plugin>
                <groupId>org.glassfish.maven.plugin</groupId>
                <artifactId>maven-glassfish-plugin</artifactId>
                <version>2.1</version>
            </plugin>
            ...
        </plugins>
        ...
    </build>

Snapshots of the next development iteration are available (for those who live life on the edge) from the Ocean Maven2 Snapshot Repository . The additions for your POM are:

    <pluginRepositories>
        ...
        <pluginRepository>
            <id>snapshot.ocean.net.au</id>
            <name>Ocean Snapshot Repository</name>
            <url>http://maven.ocean.net.au/snapshot</url>
            <releases>
                <enabled>false</enabled>
                <updatePolicy>never</updatePolicy>
            </releases>
            <snapshots>
                <enabled>true</enabled>
                <updatePolicy>always</updatePolicy>
            </snapshots>
        </pluginRepository>
        ...
    </pluginRepositories>

    <build>
        ...
        <plugins>
            ...
            <plugin>
                <groupId>org.glassfish.maven.plugin</groupId>
                <artifactId>maven-glassfish-plugin</artifactId>
                <version>2.2-SNAPSHOT</version>
            </plugin>
            ...
        </plugins>
        ...
    </build>

 
 
Close
loading
Please Confirm
Close