Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-5080

org.apache.sling.scripting.javascript fails baseline check with maven-bundle-plugin 3.0.0

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Scripting JavaScript 2.0.24
    • Scripting
    • None

    Description

      After updating the maven-bundle-plugin to 3.0.0 the mentioned module fails to build due to a baseline check. When compared to the 2.5.3 build output, I can see that

      1. it complains about multiple org.mozilla.javascript.... split packages, e..g.

      [WARNING] Bundle org.apache.sling:org.apache.sling.scripting.javascript:bundle:2.0.25-SNAPSHOT : Split package, multiple jars provide the same package:org/mozilla/javascript/serialize
      Use Import/Export Package directive -split-package:=(merge-first|merge-last|error|first) to get rid of this warning
      Package found in   [Jar:rhino, Jar:js]

      2. It thinks that org.mozilla.javascript should be exported with the 1.1.0 version instead of 1.0.0, due to multiple classes being added: ScriptOrFnNode, PropertyException, NotAFunctionException, Node$Jump, FunctionNode, ClassDefinitionException .

      The first note might hold the key to understanding why the second one happens ; bnd might have changed the way it embeds/reexports classes and therefore triggers this problem

      Attachments

        Issue Links

          Activity

            People

              radu Radu Cotescu
              rombert Robert Munteanu
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: