Uploaded image for project: 'Admininterface Legacy 4.x (closed)'
  1. Admininterface Legacy 4.x (closed)
  2. MGNLADMLEG-62

Dependencies use/bring in libraries incompatible with java 1.6

    XMLWordPrintable

Details

    • Bug
    • Resolution: Obsolete
    • Neutral
    • None
    • 5.2.4
    • None

    Description

      When enabling the animal-sniffer plugin the build of the module will fail due to incompatibilities detected. The libraries are not used in our code.

      Current workaround

      For the time being, the animal-sniffer plugin was disabled.

      Error displayed when building module
      [ERROR] Failed to execute goal org.codehaus.mojo:animal-sniffer-maven-plugin:1.14:check (check-java-api-compatibility) on project magnolia-module-legacy-admininterface: Execution check-java-api-compatibility of goal org.codehaus.mojo:animal-sniffer-maven-plugin:1.14:check failed: An API incompatibility was encountered while executing org.codehaus.mojo:animal-sniffer-maven-plugin:1.14:check: java.lang.NoSuchMethodError: java.nio.CharBuffer.subSequence(II)Ljava/nio/CharBuffer;
      [ERROR] -----------------------------------------------------
      [ERROR] realm =    plugin>org.codehaus.mojo:animal-sniffer-maven-plugin:1.14
      [ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
      [ERROR] urls[0] = file:/Users/pmundt/.m2/repository/org/codehaus/mojo/animal-sniffer-maven-plugin/1.14/animal-sniffer-maven-plugin-1.14.jar
      [ERROR] urls[1] = file:/Users/pmundt/.m2/repository/org/codehaus/mojo/animal-sniffer/1.14/animal-sniffer-1.14.jar
      [ERROR] urls[2] = file:/Users/pmundt/.m2/repository/org/ow2/asm/asm-all/5.0.3/asm-all-5.0.3.jar
      [ERROR] urls[3] = file:/Users/pmundt/.m2/repository/org/codehaus/mojo/java-boot-classpath-detector/1.14/java-boot-classpath-detector-1.14.jar
      [ERROR] urls[4] = file:/Users/pmundt/.m2/repository/org/apache/maven/reporting/maven-reporting-api/2.0.1/maven-reporting-api-2.0.1.jar
      [ERROR] urls[5] = file:/Users/pmundt/.m2/repository/org/apache/maven/doxia/doxia-sink-api/1.0-alpha-6/doxia-sink-api-1.0-alpha-6.jar
      [ERROR] urls[6] = file:/Users/pmundt/.m2/repository/commons-cli/commons-cli/1.0/commons-cli-1.0.jar
      [ERROR] urls[7] = file:/Users/pmundt/.m2/repository/org/codehaus/plexus/plexus-interactivity-api/1.0-alpha-4/plexus-interactivity-api-1.0-alpha-4.jar
      [ERROR] urls[8] = file:/Users/pmundt/.m2/repository/org/apache/maven/shared/maven-common-artifact-filters/1.4/maven-common-artifact-filters-1.4.jar
      [ERROR] urls[9] = file:/Users/pmundt/.m2/repository/org/codehaus/plexus/plexus-utils/1.5.6/plexus-utils-1.5.6.jar
      [ERROR] Number of foreign imports: 1
      [ERROR] import: Entry[import  from realm ClassRealm[maven.api, parent: null]]
      
      Possible todo

      Identify source of import.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                Unassigned Unassigned
                pmundt Philip Mundt
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: