Uploaded image for project: 'Maven JAR Plugin'
  1. Maven JAR Plugin
  2. MJAR-28

Using the jar plugin with addClasspath and snapshots can create manifest classpath with incorrect jar versions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0
    • 2.3
    • None
    • None

    Description

      When the POM contains dependencies to snapshot versions of jars, and snapshot versions of those jars are downloaded from a remote repository, the name of the jar contained in the classpath added to the manifest, of the form artifactID-X.X-SNAPSHOT.jar, does not match the actual name of the jar downloaded, which contains version information of the form artifactID-X.X-YYYYMMDD.HHmmss-V.jar.

      This does not affect snapshot versions which have been directly installed into a local repository and have no uploaded version within the remote repository, as these jars are named using the artifactID-X.X-SNAPSHOT.jar form.

      Attachments

        1. MJAR-28-patch.txt
          12 kB
          Barrie Treloar

        Issue Links

          Activity

            People

              jdcasey John Dennis Casey
              mjtitorenko Mark J. Titorenko
              Votes:
              16 Vote for this issue
              Watchers:
              19 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: