I am using play as web app framework and I love it, but I would like to know if there is a good way to declare the pom for a play! app ?
As the sources files are meant to be in specials (not maven standard) folders, and that the goal is not to generate a target file, but to permit to manage the projet in diferents IDE (Eclipse, Netbeans, ...)
It would be great if it would be possible to link pom.xml dependencies with the 1.2.X conf/dependencies.yml specific format.
Thanks.
An updated answer to this question as play install does not work with Play 2
I just had to mavenify a Play 2 application.
To do this, I used play2-maven-plugin and sbt-pom-reader.
I used sbt-pom-reader to keep the hot reloading feature which is not supported by play2-maven-plugin yet.
This is how you need to configure your play2-maven project:
Each of the files should have the following contents.
pom.xml:
build.sbt:
project/build.properties:
project/build.scala:
project/plugins.sbt:
Now you can use Maven for builds and SBT for development with hot reload.
Yes, there are play maven module. So you need to install it "play install maven" then call "play mvn:init". then each time you update it call "play mvn:up". Integration is not very good, means it one way maven to play dependency. and not all maven commands supported. But playfremwork2 will be based completly on SBT(aka maven on Scala)
Since Play 2.4 you can disable the
PlayLayoutPlugin
to use normal, Maven-style layout instead of Play's traditional layout. You just need to adddisablePlugins(PlayLayoutPlugin)
into your sbt project definition.See: https://www.playframework.com/documentation/2.6.x/Anatomy#Default-SBT-layout
There are some different plugins that support this:
Any others? I would be interested to hear other options?