Uploaded image for project: 'Tika'
  1. Tika
  2. TIKA-41

Resource files occur twice in jar file.

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.1-incubating
    • Fix Version/s: 0.1-incubating
    • Component/s: None
    • Labels:
      None

      Description

      The Tika and Mime config files occur in two places in the jar file. This is because they are not stored in our src/test/resources directory tree in the same place that they need to be in the target/classes directory tree, and there is a copy directive in the POM file that copies the files to different directory.

      For example, tika-config.xml is in src/main/resources, but needs to go to target/class/org/apache/tika. Maven automatically copies the files in src/main/resources to the same location in target/classes, so tika-config.xml is copied to target/classes. Then, the copy directive in the POM file copies the file to target/classes/org/apache/tika. So the file is copied twice.

      I recommend the following to fix this:

      • Move tika-config.xml to src/main/resources/org/apache/tika.
      • Move tika-mimetypes.xml to src/main/resources/org/apache/tika/mime.
      • Remove the copy directives for the above two from the POM file.

        Attachments

        1. TIKA-41.patch
          1 kB
          Jukka Zitting

          Activity

            People

            • Assignee:
              jukkaz Jukka Zitting
              Reporter:
              kbennett Keith Bennett
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: