Three different versions of scala-library on -Xbootclasspath

93 views
Skip to first unread message

Janek Bogucki

unread,
Jan 28, 2016, 4:27:01 PM1/28/16
to Maven and Scala
Hi,

When I dump the command used to compile I see a range of versions of scala-library.jar is use. Is this expected? Not causing any problem I am aware, just curious.

[INFO] cmd:
C:\Program Files\Java\jdk1.8.0_66\jre\bin\java
-Xbootclasspath/a:
C:\Users\jdb\.m2\repository\org\scala-lang\scala-library\2.11.7\scala-library-2.11.7.jar;
C:\Users\jdb\.m2\repository\org\scala-lang\scala-compiler\2.11.7\scala-compiler-2.11.7.jar;
C:\Users\jdb\.m2\repository\org\scala-lang\scala-reflect\2.11.7\scala-reflect-2.11.7.jar;
C:\Users\jdb\.m2\repository\org\scala-lang\scala-library\2.11.6\scala-library-2.11.6.jar;
C:\Users\jdb\.m2\repository\org\scala-lang\modules\scala-parser-combinators_2.11\1.0.4\scala-parser-combinators_2.11-1.0.4.jar;
C:\Users\jdb\.m2\repository\org\scala-lang\scala-library\2.11.4\scala-library-2.11.4.jar;
C:\Users\jdb\.m2\repository\org\scala-lang\modules\scala-xml_2.11\1.0.4\scala-xml_2.11-1.0.4.jar
 -classpath
C:\Users\jdb\.m2\repository\net\alchim31\maven\scala-maven-plugin\3.2.2\scala-maven-plugin-3.2.2.jar
scala_maven_executions.MainWithArgsInFile scala.tools.nsc.Main
C:\Users\jdb\AppData\Local\Temp\scala-maven-1801724026178648094.args
 
POM

<properties>
    <scala.version>2.11.7</scala.version>
</properties>

<dependencies>
    <dependency>
        <groupId>org.scala-lang</groupId>
        <artifactId>scala-library</artifactId>
        <version>${scala.version}</version>
    </dependency>
    <dependency>
        <groupId>org.scala-lang</groupId>
        <artifactId>scala-compiler</artifactId>
        <version>${scala.version}</version>
    </dependency>
</dependencies>

<build>
    <plugins>
        <plugin>
            <groupId>net.alchim31.maven</groupId>
            <artifactId>scala-maven-plugin</artifactId>
            <version>3.2.2</version>
            <executions>
                <execution>
                    <id>compile</id>
                    <goals>
                        <goal>compile</goal>
                        <goal>testCompile</goal>
                    </goals>
                    <configuration>
                        <displayCmd>true</displayCmd>
                    </configuration>
                </execution>
            </executions>
        </plugin>
    </plugins>
</build>

Any insights?

Janek
Message has been deleted

Janek Bogucki

unread,
Jan 28, 2016, 4:40:39 PM1/28/16
to Maven and Scala
Adding the content of the scala-maven-1801724026178648094.args file. This does not have multiple versions of libraries.

-classpath
C:\Users\jdb\.m2\repository\org\scala-lang\scala-library\2.11.7\scala-library-2.11.7.jar;
C:\Users\jdb\.m2\repository\org\scala-lang\scala-compiler\2.11.7\scala-compiler-2.11.7.jar;
C:\Users\jdb\.m2\repository\org\scala-lang\scala-reflect\2.11.7\scala-reflect-2.11.7.jar;
C:\Users\jdb\.m2\repository\org\scala-lang\modules\scala-xml_2.11\1.0.4\scala-xml_2.11-1.0.4.jar;
C:\Users\jdb\.m2\repository\org\scala-lang\modules\scala-parser-combinators_2.11\1.0.4\scala-parser-combinators_2.11-1.0.4.jar

-d
C:\Users\jdb\workspaces\main\professional-scala\target\classes
C:\Users\jdb\workspaces\main\examples\src\main\scala\com\scalacraft\examples\updation\Probe.scala
Reply all
Reply to author
Forward
0 new messages