4

I am trying to setup embedded glassfish maven plugin and I succeeded, but I can't make jsp files to be hot-swapped.

Here is my config:

<plugin>
    <groupId>org.glassfish</groupId>
    <artifactId>maven-embedded-glassfish-plugin</artifactId>
    <version>3.0.1</version>
    <configuration>
        <instanceRoot>${project.build.directory}</instanceRoot>
        <goalPrefix>embedded-glassfish</goalPrefix>
        <app>target/myapp.war</app>
        <port>8080</port>
        <contextRoot>myapp</contextRoot>
        <autoDelete>true</autoDelete>
    </configuration>
</plugin>

Any clues?

glaz666
  • 8,707
  • 19
  • 56
  • 75

1 Answers1

2

Resurrection for further reference. I managed to do that by deploying an exploded war archive like this.

<app>${project.build.directory}/${project.build.finalName}</app>

To generate an exploded war use goal war:exploded.

Anthony Accioly
  • 21,918
  • 9
  • 70
  • 118
  • And for the really brave `${basedir}/src/main/webapp` and `war:inplace`. This means you can edit jsps and see the changes reflected immediately. – Anthony Accioly May 27 '11 at 01:31