JDK-8177473 : Ensemble jar file contains duplicate, and misnamed, files in META-INF
  • Type: Bug
  • Component: javafx
  • Sub-Component: samples
  • Affected Version: 8,9
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2017-03-23
  • Updated: 2017-10-26
  • Resolved: 2017-10-26
Related Reports
Duplicate :  
Description
The Ensemble8.jar file produced by our build has duplicate LICENSE.txt and NOTICE.txt files copied from the two Lucene jar files:

$ jar tvf Ensemble8.jar
...
 16098 Mon May 30 22:52:10 PDT 2011 META-INF/LICENSE.txt
  4766 Mon May 30 22:52:10 PDT 2011 META-INF/NOTICE.txt
 16098 Mon May 30 22:52:10 PDT 2011 META-INF/LICENSE.txt
  4766 Mon May 30 22:52:10 PDT 2011 META-INF/NOTICE.txt

In addition to the problem if having more than one file of the same name (e.g., signing or any other operation that unpacks the file won't work), the name is misleading. These files do not contain the LICENSE and NOTICE for Ensemble itself, but for the embedded Lucene software.

We need to remove the duplicates and rename the single files to LUCENE_LICENSE.TXT and LUCENE_NOTICE.TXT, respectively.
Comments
This will be resolved by the upgrade to a newer version of Lucene, so closing as a duplicate of JDK-8178275.
26-10-2017