Scala's maven central repo dist issue

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Scala's maven central repo dist issue

Jun Feng
Hello
When I use maven to download Scala dist, I add a dependency to my pom file
<dependency>
<groupId>org.scala-lang</groupId>
<artifactId>scala-dist</artifactId>
<version>2.12.0-M2</version>
</dependency>


However, the default dependency type is jar, and scala-dist depends scala-library-all
The problem is at scala-library-all artifacts, It doesn't contain a jar file, 
Because the default dependency type is jar, I got a dependency can't satisfied error.
So I rewrite Scala dependency as follow:
<dependency>
<groupId>org.scala-lang</groupId>
<artifactId>scala-library-all</artifactId>
<version>2.12.0-M2</version>
<type>pom</type>
</dependency>
<dependency>
<groupId>org.scala-lang</groupId>
<artifactId>scala-dist</artifactId>
<version>2.12.0-M2</version>
<exclusions>
<exclusion>
<groupId>org.scala-lang</groupId>
<artifactId>scala-library-all</artifactId>
</exclusion>
</exclusions>
<!--scope>test</scope-->
</dependency>

Then it works, but not beautiful.

Hope someone can fix it

Thanks



--
You received this message because you are subscribed to the Google Groups "scala-tools" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.