You need to have only one scala library in the project's classpath, having two of them is ambiguous (how do you know which one is used).
Try to use only Scala Library bundled with the plugin and remove the other one.
If that doesn't fix your issue I can have a look at it during the week.
-- Mirco
You need to have only one scala library in the project's classpath, having two of them is ambiguous (how do you know which one is used).Try to use only Scala Library bundled with the plugin and remove the other one.
Yep, I didn't think of that. Luc (Bourlier) looked at your issue and he's actually writing up a short wiki page on how to use Maven with the Scala IDE.
I think you will have an answer very soon ;)
-- Mirco
Please, give it a try and let us know if that doesn't work.
-- Mirco
Unfortunately, the current implementation of the Classpath Validator does not play nicely with Maven,
even when using m2eclipse-scala.
Very useful feedback has been provided by Matthew Farwell and we will for sure work for fixing it.
https://groups.google.com/group/scala-ide-dev/browse_thread/thread/6ea6c7677560fb91?hl=en
I think what he explains is exactly what you are experiencing. I'd suggest you to have a look at it, I'm sure
you will find yourself nodding :)
At the moment, my suggestion would be to either
1) Modify your POM and exclude the dependencies to the scala library (I know, less than optimal, but if
you can manage to have only the bundled Scala Library in the classpath, then everything should work
just as expected and you will take full advantage of beta-12).
2) Downgrade to beta11 and wait for the new release. Here is the update site for beta11-29
http://download.scala-ide.org/builds/beta-29-2.0.0/beta11/
Hope this helps.
Cheers,
Mirco
Happy coding! :))
-- Mirco
Sweet.
>
> (fyi, modifying the POM file is really not an option, I can't see my
> collegues (the ones not using Eclipse) or my build server being able
> to compile if scala is not in the POM file :)
Yeah, I can definitely see that. I was simply giving the available options, as
I didn't see a truly best one (downgrading is also a shame, as beta12 has
improved in many ways - at least I hope so ;))
Cheers,
Mirco
Yes, we are aware that the classpath validator did cause troubles to Maven users and we
are already working on a solution. Hopefully, we will have some more news on Monday/Tuesday.
-- Mirco