Use Advanced Search to search the entire archive.
[jsr363-experts] Re: "External" JAR compiling
- From: Martin Desruisseaux <
>
- To:
- Subject: [jsr363-experts] Re: "External" JAR compiling
- Date: Tue, 03 Feb 2015 00:56:27 +0100
- Organization: Geomatys
Le 03/02/15 00:50, Leonardo Lima a écrit :
>
Yes!
>
>
Using a specific .jar instead of the default "rt.jar" from the JDK.
with javac?
If this is about using an other "rt.jar" file when compiling the code
with javac, then you want to set the "bootstrap classpath". This can be
done in Maven with a profile like below:
<profiles>
<profile>
<activation>
<property>
<name>bootclasspath</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<compilerArgs>
<arg>-bootclasspath</arg>
<arg>${bootclasspath}</arg>
</compilerArgs>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
Then, when launching Maven, just pass the
-Dbootclasspath=/path/to/your/rt.jar option to Maven.
Martin