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

Fix the way we produce a DTest jar

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 5.0-alpha1, 5.0
    • Build
    • None

    Description

      The problem is related to how we produce the dtest jar. That repackages all dependencies along with our classes in a single jar. Some dependencies might have digital signatures extracted into META-INF as, say, *.SF files. We need to remove them because they are invalid for the uber-jar we produce. Therefore, there are exclusions in zipgroupfileset operations, more or less like this:

      <zipgroupfileset dir="${build.lib}" includes="*.jar" excludes="META-INF/*.SF"/>
      

      However, this does not work as expected. The exclude attribute denotes jar files we don't want to repackage rather than filter on the content of the jar file. The new BouncyCastle jars include signatures in SF and DSA files, which all land in the final dtest.jar regardless of that filter.

      See also https://stackoverflow.com/questions/35577351/exclude-jar-from-ant-build-using-zipgroupfileset/35593838#35593838

      The issue was discovered and explained by jlewandowski in CASSANDRA-17992

      Attachments

        Issue Links

          Activity

            People

              jlewandowski Jacek Lewandowski
              e.dimitrova Ekaterina Dimitrova
              Jacek Lewandowski
              Brandon Williams, Ekaterina Dimitrova
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m