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

JDK 14 is causing maven shade plugin error when porting resgc dependency

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.15.0
    • 0.15.0
    • Common
    • None

    Description

      New JDK 14 seems causing maven shade plug in failure when compilation, this issue occurs when porting resgc to mnemonic-common

      === error message ===

      [INFO] — maven-shade-plugin:2.4.3:shade (default) @ mnemonic-common —
      [INFO] Including org.apache.commons:commons-lang3:jar:3.4 in the shaded jar.
      [INFO] Including org.flowcomputing.commons:commons-primitives:jar:0.6.1 in the shaded jar.
      [INFO] Including org.slf4j:slf4j-api:jar:1.7.21 in the shaded jar.
      [INFO] Including org.slf4j:jul-to-slf4j:jar:1.7.21 in the shaded jar.
      [INFO] Including org.slf4j:jcl-over-slf4j:jar:1.7.21 in the shaded jar.
      [INFO] Including log4j:log4j:jar:1.2.17 in the shaded jar.
      [INFO] Including org.slf4j:slf4j-log4j12:jar:1.7.21 in the shaded jar.
      [INFO] Minimizing jar org.apache.mnemonic:mnemonic-common:jar:0.15.0-SNAPSHOT
      [INFO] ------------------------------------------------------------------------
      [INFO] Reactor Summary for mnemonic-parent 0.15.0-SNAPSHOT:
      [INFO]
      [INFO] mnemonic-parent .................................... SUCCESS [ 2.642 s]
      [INFO] mnemonic-common .................................... FAILURE [ 1.834 s]
      [INFO] mnemonic-memory-services ........................... SKIPPED
      [INFO] mnemonic-pmalloc-service ........................... SKIPPED
      [INFO] mnemonic-pmdk-vmem-service ......................... SKIPPED
      [INFO] mnemonic-pmdk-pmem-service ......................... SKIPPED
      [INFO] mnemonic-nvml-vmem-service ......................... SKIPPED
      [INFO] mnemonic-core ...................................... SKIPPED
      [INFO] mnemonic-collections ............................... SKIPPED
      [INFO] mnemonic-nvml-pmem-service ......................... SKIPPED
      [INFO] mnemonic-examples .................................. SKIPPED
      [INFO] mnemonic-sys-vmem-service .......................... SKIPPED
      [INFO] mnemonic-java-vmem-service ......................... SKIPPED
      [INFO] mnemonic-computing-services ........................ SKIPPED
      [INFO] mnemonic-utilities-service ......................... SKIPPED
      [INFO] mnemonic-query ..................................... SKIPPED
      [INFO] mnemonic-sessions .................................. SKIPPED
      [INFO] mnemonic-hadoop .................................... SKIPPED
      [INFO] mnemonic-hadoop-mapreduce .......................... SKIPPED
      [INFO] mnemonic-spark ..................................... SKIPPED
      [INFO] mnemonic-spark-core ................................ SKIPPED
      [INFO] mnemonic-benches ................................... SKIPPED
      [INFO] mnemonic-sort-bench ................................ SKIPPED
      [INFO] mnemonic-spark-kmeans-bench/ ....................... SKIPPED
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 4.881 s
      [INFO] Finished at: 2021-05-09T19:05:39-07:00
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-shade-plugin:2.4.3:shade (default) on project mnemonic-common: Error creating shaded jar: null: IllegalArgumentException -> [Help 1]
      org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-shade-plugin:2.4.3:shade (default) on project mnemonic-common: Error creating shaded jar: null
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
      at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
      at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
      at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
      at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
      at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
      at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
      at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
      at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
      at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke (Method.java:564)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
      at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
      at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
      Caused by: org.apache.maven.plugin.MojoExecutionException: Error creating shaded jar: null
      at org.apache.maven.plugins.shade.mojo.ShadeMojo.execute (ShadeMojo.java:540)
      at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
      at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
      at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
      at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
      at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
      at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
      at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
      at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
      at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
      at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke (Method.java:564)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
      at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
      at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
      Caused by: java.lang.IllegalArgumentException
      at org.objectweb.asm.ClassReader.<init> (Unknown Source)
      at org.objectweb.asm.ClassReader.<init> (Unknown Source)
      at org.objectweb.asm.ClassReader.<init> (Unknown Source)
      at org.vafer.jdependency.Clazzpath.addClazzpathUnit (Clazzpath.java:201)
      at org.vafer.jdependency.Clazzpath.addClazzpathUnit (Clazzpath.java:132)
      at org.apache.maven.plugins.shade.filter.MinijarFilter.<init> (MinijarFilter.java:94)
      at org.apache.maven.plugins.shade.mojo.ShadeMojo.getFilters (ShadeMojo.java:814)
      at org.apache.maven.plugins.shade.mojo.ShadeMojo.execute (ShadeMojo.java:446)
      at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
      at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
      at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
      at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
      at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
      at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
      at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
      at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
      at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
      at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke (Method.java:564)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
      at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
      at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
      [ERROR]
      [ERROR] Re-run Maven using the -X switch to enable full debug logging.
      [ERROR]
      [ERROR] For more information about the errors and possible solutions, please read the following articles:
      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
      [ERROR]
      [ERROR] After correcting the problems, you can resume the build with the command
      [ERROR] mvn <args> -rf :mnemonic-common

      Attachments

        Activity

          People

            yzz127 Yanhui Zhao
            yzz127 Yanhui Zhao
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: