Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-3083

maven-bundle-plugin 2.3.5 breaks compatibility with Java5

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • webconsole-3.1.8
    • None
    • Maven Bundle Plugin
    • None

    Description

      Using maven-bundle-plugin version 2.3.4 works fine, but with with 2.3.5 and Java 5, we get a stack trace of:

       Caused by: java.lang.NoSuchMethodError: java.lang.String.getBytes(Ljava/nio/charset/Charset;)[B
              at aQute.lib.osgi.Jar.<clinit>(Jar.java:290)
              at org.apache.felix.bundleplugin.BundlePlugin.getClasspath(BundlePlugin.java:942)
              at org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:261)
              at org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:252)
              at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
              ... 11 more
      

      I guess that's technically a bug in the aQute.lib stuff, but I'm logging here as maven users will likely encounter it.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dkulp Daniel Kulp
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: