How can I set up automatic redeployment after a package? After starting the server with the command, org.glassfish:maven-embedded-glassfish-plugin:3.1.1:runI run the package goalin the application (because I need to recompile my application after some changes in the source code) with the following parameters onmaven-embedded-glassfish-plugin
<execution>
<id>undeploy</id>
<phase>package</phase>
<goals>
<goal>undeploy</goal>
</goals>
</execution>
<execution>
<id>deploy</id>
<phase>package</phase>
<goals>
<goal>deploy</goal>
</goals>
</execution>
But that does not work.
source
share