Uploaded image for project: 'Mnemonic'
  1. Mnemonic
  2. MNEMONIC-503

MAVEN warnings for Java 10

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 0.13.0
    • None
    • Tools
    • None

    Description

      The old version of maven v3.5.2 shows the following warning messages when working with OpenJDK 10

      WARNING: An illegal reflective access operation has occurred
      WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$1 (file:/usr/share/maven/lib/guice.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
      WARNING: Please consider reporting this to the maintainers of com.google.inject.internal.cglib.core.$ReflectUtils$1
      WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
      WARNING: All illegal access operations will be denied in a future release
      
      

      It is caused by the guice.jar that does not well support Java 10,

      The release note of Maven v3.5.4 includes the upgrades as follows

      MNG-6344 Upgrade Guice to 4.2.0
      

      That should resolve this issue.

       

      Attachments

        Activity

          People

            ywang261 Yanping Wang
            qichfan Gordon King
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: