You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Brendon Matheson <br...@brendonmatheson.com> on 2005/05/15 02:27:06 UTC

Maven repository artifacts and JVM Targets

Hi all,

I've recently started developing software for a Linux PDA which runs a 1.1.x compatible JVM.  To get my code running on it I need to compile it with a -target of 1.1, but when it comes to the 3rd-party dependencies, I'm a bit unsure about what to do.  When my build retrieves JARS from say the ibiblio Maven repository, there's no way for me to specify that I want one targetting Java 1.1.

Has anyone else come across this issue?  How have you dealt with it?  Perhaps Maven's repository architecture needs to add the extra dimension of "JVM target" so we can, for example, the log4j 1.2.9 JAR targetting the 1.1, 1.2, ... 1.5 JVM

Brendon Matheson


Re: Maven repository artifacts and JVM Targets

Posted by Brett Porter <br...@gmail.com>.
JARs should target the lowest JVM they'll run on: eg, if you target
1.1, then the generated bytecode should run on 1.1, 1.2, 1.3, etc
without issues (except for use of any specific classes from the
runtime library).

If log4j doesn't run on 1.1 because of a higher class version, they
need to rebuild for 1.1 (unless they don't support it).

Cheers,
Brett

On 5/15/05, Brendon Matheson <br...@brendonmatheson.com> wrote:
> Hi all,
> 
> I've recently started developing software for a Linux PDA which runs a 1.1.x compatible JVM.  To get my code running on it I need to compile it with a -target of 1.1, but when it comes to the 3rd-party dependencies, I'm a bit unsure about what to do.  When my build retrieves JARS from say the ibiblio Maven repository, there's no way for me to specify that I want one targetting Java 1.1.
> 
> Has anyone else come across this issue?  How have you dealt with it?  Perhaps Maven's repository architecture needs to add the extra dimension of "JVM target" so we can, for example, the log4j 1.2.9 JAR targetting the 1.1, 1.2, ... 1.5 JVM
> 
> Brendon Matheson
> 
>

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