Hi
I'm developing Maven Plugin for Play2. My plugin defines custom packaging "play2" and produces regular jar file.
Maven knows that for dependency with "play2" type is regular jar file (this is defined in "play2" packaging in the plugin).
The problem is SBT and Ivy look for file with "play2" extension instead.
My simple Maven test module is here
https://play2-maven-plugin.googlecode.com/svn/tags/test-projects-1.0.0-alpha6/play22/java/helloworld(this is one of Play! examples ported to Maven)
"pom.xml" fragment:
<modelVersion>4.0.0</modelVersion>
<groupId>com.google.code.play2-maven-plugin.test-projects.play22.java</groupId>
<artifactId>helloworld</artifactId>
<version>1.0.0-alpha6</version>
<packaging>play2</packaging>
You can checkout it from svn and install with Maven by just calling "mvn install".
My SBT build.sbt file (this is Play! 2.2.2 project) looks like:
import play.Project._
...
resolvers += "Local Maven Repository" at "file:///path/to/.m2/repository"
...
libraryDependencies ++= Seq(
...
"com.google.code.play2-maven-plugin.test-projects.play22.java" % "helloworld" % "1.0.0-alpha6"
)
playJavaSettings
SBT log fragment:
...
[warn] [NOT FOUND ] com.google.code.play2-maven-plugin.test-projects.play22.java#helloworld;1.0.0-alpha6!helloworld.play2 (0ms)
[warn] ==== Maven2 Local: tried
[warn] file:/D:/home/gs/.m2/repository/com/google/code/play2-maven-plugin/test-projects/play22/java/helloworld/1.0.0-alpha6/helloworld-1.0.0-alpha6.play2
[info] downloading file:/D:/home/gs/.m2/repository/com/typesafe/play/play-java_2.10/2.2.2/play-java_2.10-2.2.2.pom ...
[info] [SUCCESSFUL ]
com.typesafe.play#play-java_2.10;2.2.2!play-java_2.10.pom (63ms)
[info] downloading
http://repo.typesafe.com/typesafe/releases/com/typesafe/play/play-java_2.10/2.2.2/play-java_2.10-2.2.2-test-sources.jar ...
[info] [SUCCESSFUL ]
com.typesafe.play#play-java_2.10;2.2.2!play-java_2.10.jar(src) (1031ms)
[info] downloading
http://repo.typesafe.com/typesafe/releases/com/typesafe/play/play-java_2.10/2.2.2/play-java_2.10-2.2.2-sources.jar ...
[info] [SUCCESSFUL ]
com.typesafe.play#play-java_2.10;2.2.2!play-java_2.10.jar(src) (1031ms)
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: FAILED DOWNLOADS ::
[warn] :: ^ see resolution messages for details ^ ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: com.google.code.play2-maven-plugin.test-projects.play22.java#helloworld;1.0.0-alpha6!helloworld.play2
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
sbt.ResolveException: download failed: com.google.code.play2-maven-plugin.test-projects.play22.java#helloworld;1.0.0-alpha6!helloworld.play2
...
So, is this problem in SBT or in Ivy, and can I fix it?
Regards
Grzegorz Slowikowski