commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Phil Steitz <>
Subject [all] Using maven.compile.executable
Date Sat, 10 Dec 2005 22:12:54 GMT
To get maven to compile sources using a different jdk than maven
itself runs under, you can set maven.compile.executable to the full
path to the version of javac that you want maven to use.  You also
need to have maven.compile.fork=true in order for this to have any

To get the correct jdk version in MANIFEST.MF, you need to add a text
file with the correct version and then set maven.jar.manifest to point
to that file.

My question is, what is the best way to configure this in svn and distros?

The simplest is to create manifestMods.txt including the replacement
line for the manifest and put the following into


(Note the top line *must* be commented out for jdk 1.3 compilation to work)

But this is obviously bad in, since it forces the
executable to be there.

So, I am thinking best is to add with the
lines above, but checkin and distribute the manifestMods file.

Does that sound reasonable?  Any better ideas?



To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message