Is there a way to package play project into self-contained jar / war file?
(the only way I found was to use the stage task and then run the server with the start script)
Is there a way to package play project into self-contained jar / war file?
(the only way I found was to use the stage task and then run the server with the start script)
There is a plugin called play2war that does that. Check it here: https://github.com/dlecan/play2-war-plugin
I havent tried it myself tho...
I personaly found the stage task very good.
You can also use the dist task to have a zip file containing everthing you need. (https://plus.google.com/u/0/108788785914419775677/posts/5kNbVAE1ZYe)
To deploy as war file, use the play2war plugin as mentionnned before. But deploying a play application as war is not optimal. To have full performance, prefer the stage task.