HTTPS SSH

The plugin deploys a webapp from its source into an embedded glassfish instance.
The run goal does not build a WAR, instead it builds an exploded WAR inside the
project's build directory (target) using symbolic links to the source under the
project's webapp folder (src/main/webapp) and copying the rest (resources, classes, lib).

Is this a hack? Sort of hack-ish... I consider it a time saver. The symbolic links
allow editing of the JSF, HTML, etc. in-place under src/main/webapp and the effects
are seen immediately with a browser refresh. This ability is similar to Jetty's and
Tomcat's maven plugins with respect to their running of an unassembled webapp.

Usage

Maven Generated Site

commandline

mvn glassfish-inplace:run

settings.xml

    <pluginGroups>
        ...
        <pluginGroup>us.hornerscorners.mojo</pluginGroup>
        ...
    </pluginGroups>

pom.xml

<plugin>
    <groupId>us.hornerscorners.mojo</groupId>
    <artifactId>glassfish-inplace-maven-plugin</artifactId>
    <version>1.0</version>
    <configuration>
        <port>23080</port>
        <webappDir>src/main/webapp</webappDir>
        <classpathItems>
            <classpathItem>target/classes</classpathItem>
        </classpathItems>
        <classpathOverlays>
            <classpathOverlay>src/test/resources/logback.xml</classpathOverlay>
        </classpathOverlays>
        <webinfOverlays>
            <webinfOverlay>src/test/resources/WEB-INF/glassfish-resources.xml</webinfOverlay>
        </webinfOverlays>
        <deployParameters>
            <deployParameter>--contextroot=helloworld</deployParameter>
        </deployParameters>
    </configuration>
    <dependencies>
    </dependencies>
</plugin>





The plugin is available from the Maven Central Repository, thanks to
Sonatype OSS Repository Hosting.