开发者

Where is the play framework maven repository?

开发者 https://www.devze.com 2023-01-24 12:05 出处:网络
Trying to get my code to compile magically using maven dependancies. I can\'t find the playframework on any 3rd party ma开发者_JAVA百科ven repository.

Trying to get my code to compile magically using maven dependancies. I can't find the playframework on any 3rd party ma开发者_JAVA百科ven repository.

Can someone help ? I is even deployed anywhere ?


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>


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


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.


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 :-)

0

精彩评论

暂无评论...
验证码 换一张
取 消