【发布时间】:2014-12-24 10:38:08
【问题描述】:
你可能有一个像我一样的设置,一个 maven2 构建,但不确定这是否会有所作为:
parent/pom.xml
parent/project/pom.xml <-depends on spring.version in parent
那么你的 sbt 构建有:
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] :: org.springframework#spring-core;${spring.version}: not found
[error] unresolved dependency: org.springframework#spring-core;${spring.version}: not found
起初,谷歌搜索了几个小时,我找到了解决方法: https://groups.google.com/forum/#!topic/simple-build-tool/3OkYLXzHwG4
后来当我改变了我祝福构建的方式时,我不得不搜索我的浏览器历史才能再次找到它!
有没有更好的方法让其他人远离这个兔子洞?
编辑:前面提到的线程:
mvn help:effective-pom -P scala2.9.2 -Doutput=tmp.pom
mvn -f tmp.pom clean source:jar scala:doc-jar package deploy
我能够逃脱:
mvn help:effective-pom -Doutput=effective.pom && mvn -f effective.pom source:jar deploy
【问题讨论】: