org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-shade-plugin:2.4.2:shade (default) on project selenese-runner-java: Error creating shaded jar: duplicate entry: Main.class

GitHub | sentry0 | 3 months ago
  1. 0

    Duplicate class build error

    GitHub | 3 months ago | sentry0
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-shade-plugin:2.4.2:shade (default) on project selenese-runner-java: Error creating shaded jar: duplicate entry: Main.class
  2. 0

    Unable to save a runnable jar.

    GitHub | 1 year ago | Chnkr
    java.util.zip.ZipException: duplicate entry: Hello.class
  3. 0

    java.lang.RuntimeException: java.util.zip.ZipException: duplicate entry: when building kxml

    https://bugzilla.redhat.com/bugzilla/ | 9 months ago | Severin Gehwolf
    java.lang.RuntimeException: java.util.zip.ZipException: duplicate entry: META-INF/services/org.xmlpull.v1.XmlPullParserFactory
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Can´t run an jnlp file. Shows message "Cannot run application"

    Stack Overflow | 5 months ago | Juan_Carlos
    java.util.zip.ZipException: duplicate entry: org/apache/xmlbeans/xml/stream/Location.class
  6. 0

    plugin crashes trying to create dupe entry in jar

    GitHub | 2 months ago | gavinking
    java.util.zip.ZipException: duplicate entry: WEB-INF/lib/org.wildfly.swarm.datasources-2016.9.jar

    1 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.util.zip.ZipException

      duplicate entry: Main.class

      at java.util.zip.ZipOutputStream.putNextEntry()
    2. Java RT
      JarOutputStream.putNextEntry
      1. java.util.zip.ZipOutputStream.putNextEntry(ZipOutputStream.java:232)
      2. java.util.jar.JarOutputStream.putNextEntry(JarOutputStream.java:109)
      2 frames
    3. Apache Maven Shade Plugin
      ShadeMojo.execute
      1. org.apache.maven.plugins.shade.resource.IncludeResourceTransformer.modifyOutputStream(IncludeResourceTransformer.java:63)
      2. org.apache.maven.plugins.shade.DefaultShader.shade(DefaultShader.java:203)
      3. org.apache.maven.plugins.shade.mojo.ShadeMojo.execute(ShadeMojo.java:454)
      3 frames
    4. Maven Plugin
      DefaultBuildPluginManager.executeMojo
      1. org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
      1 frame
    5. Maven Core
      DefaultMaven.execute
      1. org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
      2. org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
      3. org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
      4. org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
      5. org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
      6. org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
      7. org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
      8. org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
      9. org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
      9 frames
    6. M3 Interceptor
      MavenCli.main
      1. org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
      2. org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
      3. org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
      3 frames
    7. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:498)
      4 frames
    8. Plexus
      Launcher.main
      1. org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
      2. org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
      3. org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
      4. org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
      4 frames