guchenbo / simple-build-tool

Automatically exported from code.google.com/p/simple-build-tool
Other
0 stars 0 forks source link

Unable to use the correct repository (when repo in sub-scope) with transient dependencies #165

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem (please be specific)?
Try to update (to retrieve dependencies) a project using the given project 
definition

What is the expected behavior? What do you see instead?
Expected:
all dependencies must be found in each repository and downloaded
Instead:
SBT is unable to use the correct repository for the artifact 
'com.recursivity#recursivity-commons_2.8.1;0.5.3' that is transient from 
org.bowlerframework.core_2.8.1

What versions of the following are you using?

Java: 1.6.0_24
Scala: 2.8.1
sbt: 0.7.5
Operating system: Linux

Please provide any additional information below.

There is two workaround as seen in the CaligoProject.scala:
- (line 6) First is to set the repository to the global context
- (line 21) Second is to set the repository to the artifact manually using 
ModuleConfiguration

Original issue reported on code.google.com by alois.co...@gmail.com on 4 May 2011 at 7:25

Attachments:

GoogleCodeExporter commented 9 years ago
I assume 1) you mean transitive and not transient and then 2) you expect that 
declaring a module configuration on bowler means the repository will be used 
for its dependencies.

Module configurations are only used for the specified group/module and not any 
dependencies.  This is the intended behavior for Ivy, so you'd have to take it 
up with the Ivy project.

Original comment by dmhar...@gmail.com on 4 May 2011 at 9:48

GoogleCodeExporter commented 9 years ago
Yes I was meaning transitive - not good to send bug report late at night ;)

So Ok, I must move to Ivy, but I think it's better for them if I provide a test 
case that don't imply using SBT ?

Thanks

Original comment by alois.co...@gmail.com on 11 May 2011 at 6:23

GoogleCodeExporter commented 9 years ago
Yes.  Again, I'm pretty sure this is by design for Ivy, so you should discuss 
it on the Ivy mailing list first.

Original comment by dmhar...@gmail.com on 12 May 2011 at 3:10

GoogleCodeExporter commented 9 years ago
Thanks for you help, hope to get feedback from Ivy soon.

Here is the post to the ML:
http://old.nabble.com/Possible-bug-with-transitive-dependencies-ts31591667.html

Original comment by alois.co...@gmail.com on 18 May 2011 at 6:43