wuff icon indicating copy to clipboard operation
wuff copied to clipboard

Compiling Scala with new 0.0.13-SNAPSHOT fails

Open r02b opened this issue 11 years ago • 6 comments

Hi Andrey,

I'm compiling Scala in my of my projects. In 0.0.12 version it's just fine, but when trying to move up to the new snapshot version, I get the following: "Could not find any version that matches eclipse-luna-sr1:org.scala-lang.scala-library:+"

So I'm thinking the new version somehow changes my scala dependencies. Could you take a look?

Thanks!

r02b avatar Nov 06 '14 08:11 r02b

Could you, please, provide simplest project, allowing to reproduce a problem?

akhikhl avatar Nov 06 '14 08:11 akhikhl

I'm afraid I was unable to reproduce using a simple project (as you can imagine, the build project I'm working on is very, very, complicated).

I was however able to solve the issue by adding the following to my configurations{ all*.exclude group:'eclipse-luna-sr1', module: 'org.scala-lang.scala-library' }

I used "all" as looking at the "dependency" output, the dependency seems to be present in multiple configurations.

The original dependency is org.scala-lang:scala-library, so I guess for some reason the new wuff version "parses" that dependency in a way that adds the mavenGroup as the group and not the actual one, and creates the module as a concatenation of the original group and module. That's just an educated guess, can't find support for that in the code though.

r02b avatar Nov 06 '14 10:11 r02b

Just a few more details - I'm building a multi-project setup, and this issue seem to be happening for other dependencies as well.

r02b avatar Nov 06 '14 11:11 r02b

Are other dependencies OSGi bundles or "normal" jars?

akhikhl avatar Nov 06 '14 13:11 akhikhl

The other dependencies are project dependencies - they are set as plugin dependencies in the original manifest.mf file.

r02b avatar Nov 10 '14 07:11 r02b

A short update - it caused the same issue with Xtend compilation - this time, it the "bad" dependency is the compiler itself: org.antlr.runtime became eclipse-luna-sr1:org.antlr.runtime:+ (the correct dependency is 'org.antlr:antlr-runtime'). The thing is, in this case, removing this dependency from the configurations causes the Xtend compiler to stop working (even when the correct dependency is added). This one is a real blocker, so I'm afraid I'll have to stick with version 12 until this problem is fixed (if ever).

r02b avatar Nov 17 '14 10:11 r02b