How to use just one scala library for maven/eclipse/scala - Stack Overflow
There is nothing to worry about. Eclipse warns you that you have several scala-library.jar
s on your classpath, but as long as they are the same version, it doesn't matter.
If one of them diverged (for instance, by bumping the Scala version number in your pom
file), you'd be in trouble: depending on the classpath order, the IDE will pick up classes from one or the other, and you might get different results when building on the command line.
Coming back to your setup, you could
- remove the
Scala Library
classpath container from your Eclipse projects, leaving just the jar that maven adds. - ignore the warning
Read full article from How to use just one scala library for maven/eclipse/scala - Stack Overflow
No comments:
Post a Comment