3

What are the options to set a value for a Maven POM property for a dependency in a sbt build?

My project has a dependency to another project that's under Maven. I think I need to somehow provide a value for my.classifier. This is the part of the dependency's pom.xml:

<dependency>
  <groupId>com.mycoolproject.something</groupId>
  <artifactId>core</artifactId>
  <version>1.0</version>
  <classifier>${my.classifier}</classifier>
</dependency>

Currently I am getting:

[warn] ==== public: tried
[warn]   http://repo1.maven.org/maven2/com/mycoolproject/something/core/0.4.0/core-1.0-${my.classifier}.jar
4

1 回答 1

2

您现在可以对 SBT的分类器使用一种解决方法:

"the.other.dependency.that.needs.the.lib" % "x" % "1.0" exclude("com.mycoolproject.something", "core")
"com.mycoolproject.something" % "core" % "1.0" classifier "myvalue"
于 2013-10-17T11:22:43.457 回答