[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Is it possible to have multiple versions of a java-lib installed?



Le 16/01/2018 à 18:32, Steinar Bang a écrit :
> Is it possible to have multiple versions of a java library, like eg.
>  https://packages.debian.org/stretch/libjna-java
> installed simultanously?
> 
> I guess the non-versioned files would collide...?
> (ie. the unversioned jar in /usr/share/java/ and the maven-repo with
> version "debian" in /usrshare/maven-repo
>  https://packages.debian.org/stretch/all/libjna-java/filelist
> )

Hi Steinar,

Yes this is possible for some exceptional cases by cloning the source
package with a new name (typically 'foo' become 'foo4' or 'foo-4.0'),
renaming the /usr/share/java files and changing the generic 'debian'
version in the Maven repository with something like 4.x.

We have some duplicated packages in the archive like junit/junit4,
plexus-utils/plexus-utils2, antlr3/antlr3.2, asm/asm3/asm4... You can
get a look at them if you need an example, but keep in mind this is
really a last recourse solution if porting the code to the version of
the library in Debian is too difficult or risky.

Do you have a compatibility issue with libjna-java?

Emmanuel Bourg


Reply to: