I think you need to fork the compiler and use compilerArguments  instead

-D


On 6/28/06, Nicolas De Loof <[EMAIL PROTECTED]> wrote:


Hello,

<short version>
       How to set the bootclasspath used by maven-compiler-plugin ?
</short version>

My build must target JDK1.3 so I've configured compiler plugin to use
JRE1.3 rt.jar as bootclasspath.
Please notice I'd like to avoid to install a 1.3 JDK on every developper
system and use <executable>.

<plugin>
       <groupId>org.apache.maven.plugins</groupId>
       <artifactId>maven-compiler-plugin</artifactId>
       <configuration>
           <source>1.3</source>
           <target>1.3</target>


<bootclasspath>${localRepository}/com/sun/rt/1.3.1_08/rt.jar</bootclasspath>
       </configuration>
       <dependencies>
           <dependency>
              <groupId>com.sun</groupId>
              <artifactId>rt</artifactId>
              <version>1.3.1_08</version>
           </dependency>
       </dependencies>
     </plugin>


As this doesn't work (I've added a <code> "Test".split(","); </code>
sanity check in a class so compilation may fail but doesn't) I've used
-X to get the compiler configuration. Here it is :

[DEBUG]   (f) compileSourceRoots =
[D:\commons\platina\platina-core\src\test\java]
[DEBUG]   (f) compilerId = javac
[DEBUG]   (f) debug = true
[DEBUG]   (f) fork = false
[DEBUG]   (f) optimize = false
[DEBUG]   (f) outputDirectory =
D:\commons\platina\platina-core\target\test-classes
[DEBUG]   (f) outputFileName = platina-core-1.0.0-SNAPSHOT
[DEBUG]   (f) showDeprecation = false
[DEBUG]   (f) showWarnings = false
[DEBUG]   (f) source = 1.3
[DEBUG]   (f) staleMillis = 0
[DEBUG]   (f) target = 1.3
[DEBUG]   (f) verbose = false
[DEBUG] -- end configuration --

There is no "bootclasspath" property.
According to
http://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html
this does not exist.
This option was used on a previous version of maven2 / compiler plugin.

Is this option deprecated (and removed), and why ?

Nico.


This message contains information that may be privileged or confidential
and is the property of the Capgemini Group. It is intended only for the
person to whom it is addressed. If you are not the intended recipient,  you
are not authorized to read, print, retain, copy, disseminate,  distribute,
or use this message or any part thereof. If you receive this  message in
error, please notify the sender immediately and delete all  copies of this
message.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to