Re: [Joda-money-interest] Compilation won't work on Macs
Project moved to GitHub
Status: Alpha
Brought to you by:
scolebourne
From: Rob P. <rob...@gm...> - 2010-01-04 22:54:59
|
Hi Stephen, I can appreciate your reluctance to fiddle with Maven. In this case I think things are pretty straightforward, however. You've already got: <source>1.5</source> <target>1.5</target> in your pom.xml, which gets you almost there. This isn't completely correct if your default JDK is not 1.5. In that case, adding: <compilerArgument>-verbose -bootclasspath ${java.home}\lib\rt.jar</compilerArgument> Would complete the picture (with true cross-compilation to Java 1.5 when java.home points to JDK 1.5). Just out of interest, I compared the classes produced from JDK1.5 and 1.6 (on Windows) and the bytecode is identical even without the extra compilerArgument. Alternatively, you might like to check this out: http://maven.apache.org/plugins/maven-compiler-plugin/examples/compile-using-different-jdk.html as this identifies another approach for solving the issue. Hope that's at least of some interest. Cheers, Rob On 3 Jan 2010, at 22:24, Stephen Colebourne wrote: > Thanks, I understand that the C: causes issues, but I need to release > the library as 1.5 specific I'd need to waste more time on maven to > try and find another solution... > Stephen > > 2010/1/2 Rob Purcell <rob...@gm...>: >> Hi, >> >> Having an initial look at the Joda Money library. Noticed that there's a slightly machine-specific element for maven-compiler-plugin in the pom.xml: >> >> <executable>C:\java\jdk1.5.0\bin\javac</executable> >> >> Needless to say, this isn't particularly Mac-friendly! >> >> I think this entry is actually unnecessary (unless you're really after a very specific version of Java, which seems unlikely), and removing it completely allows successful compilation on JDK 1.6.0_017 on Snow Leopard. >> >> Cheers, >> Rob >> ------------------------------------------------------------------------------ >> This SF.Net email is sponsored by the Verizon Developer Community >> Take advantage of Verizon's best-in-class app development support >> A streamlined, 14 day to market process makes app distribution fast and easy >> Join now and get one step closer to millions of Verizon customers >> http://p.sf.net/sfu/verizon-dev2dev >> _______________________________________________ >> Joda-money-interest mailing list >> Jod...@li... >> https://lists.sourceforge.net/lists/listinfo/joda-money-interest >> > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Joda-money-interest mailing list > Jod...@li... > https://lists.sourceforge.net/lists/listinfo/joda-money-interest |