Where is the play framework maven repository?

假如想象 提交于 2019-12-18 11:19:38

问题


Trying to get my code to compile magically using maven dependancies. I can't find the playframework on any 3rd party maven repository.

Can someone help ? I is even deployed anywhere ?


回答1:


In typesafe Repo

<repositories>
  <repository>
    <id>typesafe</id>
    <name>typesafe-releases</name>
    <url>https://repo.typesafe.com/typesafe/releases</url>
  </repository>
</repositories>

The dependency is:

<dependency>
  <groupId>play</groupId>
  <artifactId>play_2.9.1</artifactId>
  <version>2.0.2</version>
</dependency>



回答2:


It looks like using Maven with Play! will require some special "Maven module". I'm not sure to understand the difference between the Maven support and the maven module pages though.

Have a look at the following thread for some background:

  • Play Framework with Maven?
  • Maven Module Created
  • Play + Maven issue???



回答3:


Play 1 has not been Mavenised, and likely will not be - but Play 2 uses sbt, which downloads Play and its dependencies from Maven repositories.




回答4:


Play 1.x and Play2 are not deployed on Maven repository. Plus, play is not intend to be use from a maven build. It's not a typical Java project where you pull your resources with a pom.xml. You need to download and install locally play framework on your server. Then do a local compilation from there.

Dependencies are handled with Apache Ivy for Play 1.x and SBT for Play 2.

To install Play 1.x, you can now also use "brew install play". This configures and installs play. It adds play to your path.

Play2 relies on SBT, a build tool for Scala that is similar to Maven.

Forget about Maven :-)



来源:https://stackoverflow.com/questions/4139687/where-is-the-play-framework-maven-repository

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!