--
You received this message because you are subscribed to the Google Groups "sbt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sbt-dev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sbt-dev/fd66e271-fe2e-43f5-b803-e545fd78cada%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Stéphane,So you want us to hack on Ivy code to reproduce Maven bug because Apache Thrift has a buggy POM file? We'll be happy to review a PR, but I'm not sure if that'll be high priority for sbt team tbh.-eugeneSome links for other readers following this story:- https://maven.apache.org/guides/introduction/introduction-to-the-pom.html#Project_Aggregation
On Thu, Nov 24, 2016 at 4:02 AM, <slan...@gatling.io> wrote:
Hi there,Some jars deployed on maven central have a "pom.xml" that has a "pom" packaging.An example is libthrift: https://repo1.maven.org/maven2/org/apache/thrift/libthrift/0.9.3/libthrift-0.9.3.pomI personally would expect it to have a instead of the expected "jar" and think such pom is broken (I opened an issue against Thrift).It seems sbt has the same opinion, as it indeed doesn't add the libthrift jar to the classpath.In order to reproduce, just add a dependency to "org.apache.thrift" % "libthrift" % "0.9.3" and import whatever Thrift class in your code. sbt will fail to compile.Yet, maven disagrees and does add the jar.So in the end, things work with maven while they don't with sbt, so I expect this problem to go completely unnoticed in the Java world, and don't expect to get enough traction to get those poms fixed.The only workaround I found was to deploy on maven central an empty jar that would depend on libthrift.In such case, sbt does fetch the transitive dependency jar.Is there any way to get sbt to have the same behavior as maven?Thanks in advance,Stéphane
--
You received this message because you are subscribed to the Google Groups "sbt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sbt-dev+u...@googlegroups.com.