How to run Maven as soon as my server boots? Is it OK to have a script executed using cron once the server run? or is this a bad practice? I am using Jetty and Resteasy and running them on Maven to start my webserver.
What is the best solution for when my server starts, Maven automatically starts? The command is use is:
mvn jetty:run -e
EDIT: I am using Amazon EC2 to launch an instance and I would like to have the maven build to run as soon as an instance is launched. Maven builds and runs Resteasy, Jetty and a bunch of other dependencies that are stated in the pom.xml file.