Uploaded image for project: 'Syncope'
  1. Syncope
  2. SYNCOPE-1483

maven-enforcer-plugin: API incompatibility fails the build

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.0
    • Fix Version/s: 3.0.0
    • Component/s: build-tools
    • Labels:

      Description

      • Fresh clone of the master branch
      • Switch to JDK 11

       

      java version "11" 2018-09-25 
      Java(TM) SE Runtime Environment 18.9 (build 11+28) 
      Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11+28, mixed mode)

       

      Use Apache Maven 3.6.1 

      Apache Maven 3.6.1 (d66c9c0b3152b2e69ee9bac180bb8fcc8e6af555; 2019-04-04T23:30:29+04:30)

      Run:

      mvn clean install

      See below:

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:1.4.1:enforce (enforce-maven) on project syncope: Execution enforce-maven of goal org.apache.maven.plugins:maven-enforcer-plugin:1.4.1:enforce failed: An API incompatibility was encountered while executing org.apache.maven.plugins:maven-enforcer-plugin:1.4.1:enforce: java.lang.ExceptionInInitializerError: null
      

      Related issue:

      https://issues.apache.org/jira/browse/MENFORCER-274 

      Switching to 3.0.0.M2 version of plugin allows for a successful build.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ilgrosso Francesco Chicchiriccò
                Reporter:
                mmoayyed Misagh Moayyed
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m