Ivy / sbt error for maven dependency that has variables, is there any other fix?

You may have a setup like me, maven2 build, but not sure if it matters:

parent/pom.xml parent/project/pom.xml <-depends on spring.version in parent 

Then your sbt build has:

 [warn] :: UNRESOLVED DEPENDENCIES :: [warn] :: org.springframework#spring-core;${spring.version}: not found [error] unresolved dependency: org.springframework#spring-core;${spring.version}: not found 

At first, according to the search schedule for several hours, I found a fix: https://groups.google.com/forum/#!topic/simple-build-tool/3OkYLXzHwG4

Then, when I switched the way I blessed the builds, I had to search the browser history to find it again!

Is there a better way to keep others from this rabbit hole?

Edit: The previously mentioned topic:

 mvn help:effective-pom -P scala2.9.2 -Doutput=tmp.pom mvn -f tmp.pom clean source:jar scala:doc-jar package deploy 

I managed to get away with:

 mvn help:effective-pom -Doutput=effective.pom && mvn -f effective.pom source:jar deploy 
+5
source share

Source: https://habr.com/ru/post/1205728/


All Articles