Felix Rudolphi created NETBEANS-6279: ----------------------------------------
Summary: In-place deployment on Glassfish no longer works
Key: NETBEANS-6279
URL: https://issues.apache.org/jira/browse/NETBEANS-6279
Project: NetBeans
Issue Type: Bug
Components: serverplugins - GlassFish
Affects Versions: 12.5, 12.4, 12.3, 12.2, 12.0.1, 12.1, 12.0, 12.6
Environment: Linux Mint 20.2
OpenJDK 8u282 DCE
GlassFish 5.1.0
Reporter: Felix Rudolphi
------------------------------------------------------------------------
BUILD SUCCESS
------------------------------------------------------------------------
Total time: 01:48 min
Finished at: 2021-12-10T00:06:27+01:00
------------------------------------------------------------------------
Deploying on GlassFish 5.1.0
profile mode: false
debug mode: true
force redeploy: true
Seems similar to
https://stackoverflow.com/questions/66216074/glassfish-server-5-deployment-error-in-netbeans-12-0
https://stackoverflow.com/questions/43849098/netbeans-glassfish-hangs-at-in-place-deployment-at
Workaround (works but really ugly):
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>3.0.0</version>
<executions>
<execution>
<id>inplacedeploy</id>
<phase>package</phase>
<configuration>
<target>
<exec
executable="java" >
<arg
value="-jar"/>
<arg
value="${local.glassfish.home}/glassfish/lib/client/appserver-cli.jar"/>
<arg
value="deploy"/>
<arg
value="--contextroot"/>
<arg
value=""/>
<arg
value="${project.build.directory}/${project.build.finalName}"/>
</exec>
<exec
executable="firefox" spawn="true">
<arg
value="http://localhost:8080"/>
</exec>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
<execution>
<id>undeploy</id>
<phase>clean</phase>
<configuration>
<target>
<exec
executable="java">
<arg
value="-jar"/>
<arg
value="${local.glassfish.home}/glassfish/lib/client/appserver-cli.jar"/>
<arg
value="undeploy"/>
<arg
value="${project.build.finalName}"/>
<!--<spawn value="true"/>-->
</exec>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
