Uploaded image for project: 'DSpace'
  1. DSpace
  2. DS-4476

Oracle JDK 11 build causes "maven-enforcer-plugin" error

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 7.0
    • Fix Version/s: 7.0
    • Component/s: configuration
    • Labels:
      None
    • Attachments:
      0
    • Comments:
      3
    • Documentation Status:
      Not Required

      Description

      Reported on dspace-tech: https://groups.google.com/d/msg/dspace-tech/iXwUc33tXQM/tl2yxmW-CAAJ

      When building DSpace 7 REST API using Maven 3.6.3 and Oracle JDK 11 (on Windows 10), the following error occurs:

      C:\DSpace-dspace-7.0-beta1>mvn -version
      Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
      Maven home: C:\apache-maven-3.6.3\bin\..
      Java version: 11, vendor: Oracle Corporation, runtime: C:\jdk-11
      Default locale: en_US, platform encoding: Cp1252
      OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
      

      This appears to be a bug in "maven-enforcer-plugin" described here: https://issues.apache.org/jira/browse/MENFORCER-274

      Therefore, fixing it should just involve upgrading "maven-enforcer-plugin" to the latest version (currently 3.0.0-M3) in the [src]/pom.xml here: https://github.com/DSpace/DSpace/blob/master/pom.xml#L63

        Attachments

          Activity

            People

            Assignee:
            tdonohue Tim Donohue
            Reporter:
            tdonohue Tim Donohue
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: