maven-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brett Porter <br...@apache.org>
Subject Re: compiler plugin "how to use"
Date Fri, 07 Jul 2006 06:36:51 GMT
This is a good alternative. I think it should be added to the 
documentation (both approaches should be documented).

Can you provide a patch?

Thanks,
Brett

On 5/07/2006 5:33 PM, Nicolas De Loof wrote:
> 
> I've read on 
> http://maven.apache.org/plugins/maven-compiler-plugin/howto.html
> the "official" way to compile a Java1.3 application.
> 
> I think this solution isn't the best/easier as this requires the target 
> environment to have the expected JDK installed and the correct 
> properties set, with no standard naming for it.
> I myself get troubles with it as I can run JDK1.3 on my nightly build 
> server (Linux Ubuntu : requires some "stdlibc++libc6....")
> 
> I'm using an alternative solution that has less expectation on the 
> compilation environment :
> - Add a dependency to target runtime in the compiler plugin configuration
> - Set the compiler bootclasspaht to use it
> 
> <plugin>
>            <groupId>org.apache.maven.plugins</groupId>
>            <artifactId>maven-compiler-plugin</artifactId>
>            <configuration>
>                <source>1.3</source>
>                <target>1.3</target>
>                <compilerArguments>
>                      <bootclasspath>
>                           
> ${settings.localRepository}/com/sun/rt/1.3.1_08/rt-1.3.1_08.jar
>                      </bootclasspath>
>                </compilerArguments>
>            </configuration>
>            <dependencies>
>               <dependency>
>                      <groupId>com.sun</groupId>
>                      <artifactId>rt</artifactId>
>                      <version>1.3.1_08</version>
>               </dependency>
>            </dependencies>
> </plugin>
> 
> This solution only requires the to install first the expected rt.jar in 
> repo, as any others java API jars (com.sun:rt POM is in maven2 repo).
> 
> Don't you think this solution may be promoted on compiler plugin 
> documentation ?
> 
> Niso.
> 
> 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: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
> 


-- 
Apache Maven - http://maven.apache.org/
Better Builds with Maven - http://library.mergere.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Mime
View raw message