Rich Seddon created MJAR-153:
--------------------------------
Summary: Missing continuation characters in Export-Package field
Key: MJAR-153
URL: https://jira.codehaus.org/browse/MJAR-153
Project: Maven 2.x JAR Plugin
Issue Type: Bug
Affects Versions: 2.4
Environment: Linux, Maven 3.0.4
Reporter: Rich 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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira