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

Maven Sets Manifest Attribute Values to Multi-Line Strings

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 2.0
    • None
    • None
    • None
    • Maven version: 2.0.4
      Microsoft Windows XP [Version 5.1.2600]

    Description

      Maven will set a Manifest attribute's value to a multi-line string, which results in an invalid Manifest.
      By default, on its own, Maven adds a Specification-Title attribute to the Manifest, and sets its value to the POM's <description> element. If this is a multi-line value in the POM, Maven will insert it unchanged: and yield an invalid Manifest. Maven then can't even load the jar that it just created itself!
      I have filed another bug relating to the fact that it should not insert such an attribute by default: MJAR-38

      Attachments

        Issue Links

          Activity

            People

              mperham Mike Perham
              steevcoco Steven Coco
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: