Uploaded image for project: 'Build'
  1. Build
  2. BUILD-219

Clirr maven plugin can fail on Java 8 (e.g. main, UI, pages, etc.)

XMLWordPrintable

    • Basel 70
    • 1

      When running mvn clirr:clirr directly or when generating the site (which includes the clirr report) one might run into the folloing error:

      [INFO] org.apache.bcel.classfile.ClassFormatException: Invalid byte tag in constant pool: 18

      Additionally, one might see:

      Caused by: java.lang.NullPointerException
          at org.codehaus.mojo.clirr.ClirrReportGenerator$ApiChangeComparator.compare(ClirrReportGenerator.java:64)
          at org.codehaus.mojo.clirr.ClirrReportGenerator$ApiChangeComparator.compare(ClirrReportGenerator.java:57)
      

      Which is due to an ApiChange being initialized to null.

      Both bugs (see links below) have been fixed in org.codehaus.mojo:clirr-maven-plugin:2.8 and we should therefore update our plugin to this latest version.

        Acceptance criteria

              pmundt Philip Mundt
              mgeljic Mikaël Geljić
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Task DoR