Email ico
Glassfish

Auto deploy maven project to glassfish with CLI or cron

Devendra Nationalwala | 01 Jan 2022

Every time you make changes to the code of maven project, to reflect the changes in the applicaton, you would hit many clicks to publish those changes. It takes the critical time of your development cycle and is a bottleneck for rapid application development.

We have found the shell script or batch file life-saving in this scenario. It not only reduces the effort to publish but sometimes it publishes changes quicker compared to manual clicks in eclipse IDE.

Save this script to your home directory, and invoke it directly from the eclipse terminal window or any Linux terminal.


Linux script file

Windows .bat file

You may also link this file to your CI using webhook or pipeline.

Related articles

Auto deploy war to Glassfish with jenkins - Read Now