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

manifestEntry seems not to work correctly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • None
    • maven-archiver-2.5
    • maven-archiver
    • None
    • maven-jar-plugin 2.3.1

    Description

      hope this is the correct place ot file an issue about maven-jar-plugin

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-jar-plugin</artifactId>
        <version>2.3.1</version>
        <configuration>
          <archive>
            <manifest>
              <addClasspath>true</addClasspath>
              <mainClass>eu.ngong.xslt.App</mainClass>
              	<classpathPrefix>/usr/share/java/</classpathPrefix>
            </manifest>
            <manifestEntries>
              	<Name>xxx</Name>
              <Content-Type>yyy</Content-Type>
            </manifestEntries>
          </archive>
        </configuration>
      </plugin>
      

      does not work: silently neither a classpass is generated nor the requested entries Name and Content-Type.

      If I exchange the manifestEntries by

      <manifestEntries>
        <key>value</key>
      </manifestEntries>
      

      it works: the classpath is generated in MANIFEST.MF as well as the "key: value" line.

      If I exchange the manifestEntries by

      <manifestEntries>
        <Key>value</Key>
      </manifestEntries>
      

      it does not work: the classpath is generated but not the "Key: value" line.

      Attachments

        Activity

          People

            krosenvold Kristian Rosenvold
            ngong Rolf Schumacher
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: