You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Karl-Heinz Marbaise (JIRA)" <ji...@codehaus.org> on 2014/10/25 02:17:10 UTC

[jira] (MSHARED-372) Missing continuation characters in Export-Package field

     [ https://jira.codehaus.org/browse/MSHARED-372?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Karl-Heinz Marbaise moved MJAR-153 to MSHARED-372:
--------------------------------------------------

    Affects Version/s:     (was: 2.4)
                       maven-archiver-2.5
                  Key: MSHARED-372  (was: MJAR-153)
              Project: Maven Shared Components  (was: Maven JAR Plugin)

> Missing continuation characters in Export-Package field
> -------------------------------------------------------
>
>                 Key: MSHARED-372
>                 URL: https://jira.codehaus.org/browse/MSHARED-372
>             Project: Maven Shared Components
>          Issue Type: Bug
>    Affects Versions: maven-archiver-2.5
>         Environment: Linux, Maven 3.0.4
>            Reporter: Richard Seddon
>         Attachments: pom.xml
>
>
> The following plugin configuration results in an "Export-Package" field which has two problems.  First, every other line has "CR" instead of just "CRLF'.  Second, every other line is missing the continuation character.  This latter problem results in an invalid header exception when the jar is opened by Java.
> {code:XML}
>             <plugin>
>                 <artifactId>maven-jar-plugin</artifactId>
>                 <version>2.4</version>
>                 <configuration>
>                     <archive>
>                         <manifestEntries>
>                             <Bundle-SymbolicName>a.test.of.maven-jar-plugin</Bundle-SymbolicName>
>                             <Bundle-ManifestVersion>2</Bundle-ManifestVersion>
>                             <Fragment-Host>org.jboss.weld.osgi-bundle</Fragment-Host>
>                             <Export-Package>
> org.jboss.weld.literal,
> org.jboss.weld.logging,
> org.jboss.weld.logging.messages,
> org.jboss.metadata.validation,
> org.jboss.weld.bean.interceptor,
> org.jboss.weld.metadata,
> org.jboss.weld.metadata.cache,
> org.jboss.weld.resources,
> org.jboss.weld.test,
> org.jboss.weld.tests,
> org.jboss.weld.tests.extensions,
> org.jboss.weld.tests.extensions.injectionTarget,
> org.jboss.weld.exceptions,
>                             </Export-Package>
>                             <Bundle-Description>a.test.of.maven-jar-plugin</Bundle-Description> 
>                         </manifestEntries>
>                     </archive>
>                 </configuration>
>             </plugin>
> {code}
> Here's the manifest contents:
> {noformat}
> Manifest-Version: 1.0^M
> Export-Package: org.jboss.weld.literal,
> org.jboss.weld.logging,
> org.jb^M
>  oss.weld.logging.messages,
> org.jboss.metadata.validation,
> org.jboss.w^M
>  eld.bean.interceptor,
> org.jboss.weld.metadata,
> org.jboss.weld.metadat^M
>  a.cache,
> org.jboss.weld.resources,
> org.jboss.weld.test,
> org.jboss.wel^M
>  d.tests,
> org.jboss.weld.tests.extensions,
> org.jboss.weld.tests.extens^M
>  ions.injectionTarget,
> org.jboss.weld.exceptions,^M
> Fragment-Host: org.jboss.weld.osgi-bundle^M
> Built-By: rseddon^M
> Build-Jdk: 1.6.0_29^M
> Bundle-ManifestVersion: 2^M
> Created-By: Apache Maven^M
> Bundle-Description: a.test.of.maven-jar-plugin^M
> Bundle-SymbolicName: a.test.of.maven-jar-plugin^M
> Archiver-Version: Plexus Archiver^M
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)