Uploaded image for project: 'Maven Shared Components'
  1. Maven Shared Components
  2. MSHARED-219

Maven3 LinkageError in maven report

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • maven-reporting-exec-1.0.1
    • maven-reporting-exec
    • None
    • [INFO] Maven Version: 3.0.3
      [INFO] JDK Version: 1.6.0_26 normalized as: 1.6.0-26
      [INFO] OS Info: Arch: amd64 Family: unix Name: linux Version: 2.6.32-37-generic

    Description

      Creating a maven report using some kind of a filter sink:

      public class DoxiaTestMojo extends AbstractMavenReport {
      
      ...
      
       @Override
       protected void executeReport(Locale locale) throws
      MavenReportException {
           org.apache.maven.doxia.sink.Sink s = new SinkAdapter() {
                   ...
           };
           ...
       }
      }

      produces the following error:

      [WARNING] An issue has occurred with report at.gw.test.DoxiaTestMojo,
      skip LinkageError loader constraint violation in interface itable
      initialization: when resolving method
      "org.apache.maven.doxia.sink.AbstractSink.enableLogging(Lorg/apache/maven/doxia/logging/Log;)V" the class loader (instance of org/codehaus/plexus/classworlds/realm/ClassRealm) of the current class, org/apache/maven/doxia/sink/AbstractSink, and the class loader (instance of org/codehaus/plexus/classworlds/realm/ClassRealm) for interface org/apache/maven/doxia/logging/LogEnabled have different Class objects for the type org/apache/maven/doxia/logging/Log used in the signature, please report an issue to Maven dev team.

      Attachments

        1. MSHARED-219.patch
          1 kB
          Gerhard Wipplinger

        Issue Links

          Activity

            People

              olamy Olivier Lamy
              gwipplin Gerhard Wipplinger (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: