Uploaded image for project: 'Maven Shared Components'
  1. Maven Shared Components
  2. MSHARED-36

Maven Archiver creates incorrect Class-Path entry in Manifest for deployed snapshots

    XMLWordPrintableJSON

Details

    Description

      See related problems MJAR-28 and MASSEMBLY-67.

      Summary:

      The Maven-Archiver uses the file part of the artifact's filename to create the Class-Path entries in the Manifest.
      This works fine for released artifacts and non-deployed snapshot.
      The problem occurs when using a deployed snapshot as the assembly plugin will copy the dependency as ${artifactId}${version}-timestampedversion.jar and the entry in the Class-Path will be ${artifactId}${version}-SNAPSHOT
      thus use of java -jar <jarfile> will fail because of the differing names.

      Attachments

        1. MNG-2456-maxb.patch
          6 kB
          Max Oliver Bowsher
        2. MNG-2456-patch.txt
          25 kB
          Barrie Treloar
        3. MNG-2456-step1-refactoring-patch.txt
          20 kB
          Barrie Treloar
        4. MNG-2456-step2-add-test-cases-patch.txt
          25 kB
          Barrie Treloar
        5. MNG-2456-step3-fix-bug-patch.txt
          25 kB
          Barrie Treloar

        Issue Links

          Activity

            People

              jdcasey John Dennis Casey
              baerrach Barrie Treloar
              Votes:
              9 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: