在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):wangyizhuo/play-maven开源软件地址(OpenSource Url):https://github.com/wangyizhuo/play-maven开源编程语言(OpenSource Language):Python 82.7%开源软件介绍(OpenSource Introduction):Maven supportThe Maven module enables maven support for your application. It adds a pom.xml in your project and deploys a play-parent pom in your local Maven repository. Moreover, this module has the ability to create a war package of a Play! application using the ‘mvn package’ command’. What is supported?
Getting startedFirst, you need to download and install Apache Maven. Finally, you need to install the play-maven module:
Setting up the Maven moduleStart by creating a new application in the classical way.
Then edit the conf/application.conf file to enable the Maven module:
At this moment, if you are working with Eclipse, do not forget to update your .classpath :
You now have to install play-parent in your repository and get a pom.xml in your Play! application :
This command installs play-parent pom in your local repository (ex : ~/.m2/repository) and copies the ‘skeleton’ pom from the play-module to your application. Edit your pom.xml to change your groupId, artifactId, version, name and description. Launch an update to retrieve Play! libraries and check there is no error :
That’s it ! Your application is Maven-compliant.
play-maven specific commands
Installs play-parent project (a Maven pom project) into local Maven repository. Then creates the appropriate pom.xml. After this step, you can add your dependencies to pom.xml.
Retrieves all defined dependencies and then it copies them into your /lib folder.
Clears your app/lib folder first, then it executes play mvn:up. Known issuesAs long as Play! framework Issue #359 is not resolved, ‘target’ directory is embedded inside the generated war. Use caseThe expected use case of this module:
For packaging, I created a simple shell script, since all jars will be found in lib folder, and using shell script is faster and more flexible. LimitationsAnd maven commands (especially mvn commands) are not supported, includes.:
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论