commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Carman <ja...@carmanconsulting.com>
Subject Re: [ALL] CP24 and CP25 don't work with Java 1.5 - work-round
Date Sat, 05 May 2012 13:31:12 GMT
Perhaps we should start having a proper vote on commons-parent? :)


On Sat, May 5, 2012 at 8:32 AM, sebb <sebbaz@gmail.com> wrote:

> Commons Parent 24 and 25 don't work properly with Java 1.5 - the
> bundle plugin fails.
>
> Workround:
>
> When building with Java 1.5, disable its profile as follows:
>
> mvn test -P-java-1.5-detected
>
> Note the "-" after the "-P"; this disables the profile.
>
> ===========
>
> Background:
>
> This is because of the work-round added to allow Maven bundle plugin
> version 2.3.5 to work on Java 1.5
>
> The work-round uses the profile "java-1.5-detected" to downgrade the
> nested dependency bndlib from 1.43.0 (which was wrongly built for Java
> 1.6) to 1.15.0
>
> The current bundle plugin version (2.3.7) now depends on a later
> version of the bndlib dependency.
> This is now compatible with Java 1.5 again.
> But it also includes new methods, some of which are now used by the
> Maven bundle plugin.
> Thus the downgrade now causes the following error.
>
> [FATAL ERROR] org.apache.felix.bundleplugin.ManifestPlugin#execute()
> caused a linkage error (java.lang.NoSuchMethodError)
>
> Note: the profile will be removed in the next release of CP
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message