user1768906
user1768906

Reputation:

Packaging play project into jar / war file

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)

Upvotes: 3

Views: 1379

Answers (2)

Yann Simon
Yann Simon

Reputation: 458

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.

Upvotes: 1

Jakob
Jakob

Reputation: 749

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...

Upvotes: 2

Related Questions