commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <>
Subject [ALL] CP24 and CP25 don't work with Java 1.5 - work-round
Date Sat, 05 May 2012 12:32:42 GMT
Commons Parent 24 and 25 don't work properly with Java 1.5 - the
bundle plugin fails.


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.



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:
For additional commands, e-mail:

View raw message