Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-18136

Upgrade maven-shade-plugin to fix shaded dtest JAR build

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 5.0-alpha1, 5.0
    • Build, Packaging
    • None
    • Packaging
    • Normal
    • Low Hanging Fruit
    • User Report
    • All
    • None
    • 5.0
    • Hide

      This passes test if shaded dtest JARs build successfully and can be used by dependencies such as Harry.

      Show
      This passes test if shaded dtest JARs build successfully and can be used by dependencies such as Harry.

    Description

      Could not build shaded dtest JAR with ./build-shaded-dtest-jar.sh due to:

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-shade-plugin:3.2.1:shade (default) on project cassandra-dtest-shaded: Error creating shaded jar: Problem shading JAR ~/Repos/apache/cassandra/target/cassandra-dtest-shaded-4.0.1-SNAPSHOT.jar entry net/openhft/chronicle/wire/YamlWire$TextValueIn.class: org.apache.maven.plugin.MojoExecutionException: Error in ASM processing class net/openhft/chronicle/wire/YamlWire$TextValueIn.class: 65536 -> [Help 1] 

       

      Tried on both Java 8 and Java 11, included ant clean / realclean / unlinking the entire ~/.m2/repository.

       

      Fixed by upgrading maven-shade-plugin in relocate-dependencies.pom:

                       <groupId>org.apache.maven.plugins</groupId>
                       <artifactId>maven-shade-plugin</artifactId>
      -                <version>3.2.1</version>
      +                <version>3.4.1</version>

      Attachments

        Activity

          People

            Unassigned Unassigned
            aratnofsky Abe Ratnofsky
            Abe Ratnofsky
            Caleb Rackliffe
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: