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

Class-Path manifest entry should support maven repository layout

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1
    • 2.2
    • None
    • None

    Description

      The assembly plugin supports outputting all dependencies in a repository layout.
      The jar plugin should support adding the classpath manifest entry based on the repository layout.
      The combination of the two makes it easy to write a script to run the app: "java -jar org/domain/project/projectApp.jar" at the base of the repository layout.

      Example of a Class-Path entry:
      ClassPath: org/springframework/spring-core/2.0/spring-core-2.0.jar;org/drools/drools-core/4.0/drools-core-4.0.jar;org/domain/project/projectApp.jar

      Also see maven user mailing list "maven-jar-plugin: how to avoid conflicts in <addClasspath>"

      Attachments

        Issue Links

          Activity

            People

              olamy Olivier Lamy
              ge0ffrey.desmet Geoffrey De Smet
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: