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

Upgrade maven-archiver dependency to 2.4

    XMLWordPrintableJSON

Details

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

    Description

      Hi,
      currently I am using the maven-jar-plugin 2.2.
      One of my project-teams really has the need to specify the <customClasspathLayout> introduced with maven-archiver 2.4.

      Just adding maven-archiver 2.4 to the dependencies of the maven-jar-plugin did not help.
      What I am trying is to use following <manifest>-entry in maven-jar-plugin:
      <manifest>
      <addClasspath>true</addClasspath>
      <classpathLayoutType>custom</classpathLayoutType>
      <customClasspathLayout>${artifact.artifactId}.${artifact.extension}</customClasspathLayout>
      </manifest>

      But the classpath-entries are only resolved to null.null, I guess 'artifact' is not resolved to anything.

      Attachments

        Activity

          People

            bentmann Benjamin Bentmann
            soeren.chittka Sören Chittka
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: