Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-4428

add jar metadata testing to smokeTester

    XMLWordPrintableJSON

    Details

    • Type: Test
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.0, 6.0
    • Component/s: general/test
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      It would be nice if the smokeTester could verify the metadata inside the jars/wars we release, things like the following in META-INF/MANIFEST.MF:

      • Implementation-Vendor: The Apache Software Foundation
      • X-Compile-Source-JDK: 1.6 <-- check they used a 1.6 actual compiler
      • X-Compile-Target-JDK: 1.6 <-- check that classes are the right format
      • Specification-Version: 4.0.0 <-- should match release version

      There should also exist META-INF/LICENSE.txt and META-INF/NOTICE.txt and they should be correct (e.g. the solr one should not have lucene's or whatever).

      I think we could use some code similar to what Mike did on SOLR-3879 to do this. The only difference is that inside the solr.war, we are only interested in lucene-xxx and apache-solr-xxx jar files (not third party ones).

        Attachments

        1. LUCENE-4428.patch
          8 kB
          Michael McCandless

          Activity

            People

            • Assignee:
              mikemccand Michael McCandless
              Reporter:
              rcmuir Robert Muir
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: