Hi Jane,

Jane Young wrote:

> Hi,
> 
> There is a new maven-jar-plugin 2.4 and maven-archiver 2.5 released on
> Feb 1st.
> 
> I have a MANIFEST file that contains a very long classpath.  When
> executing Maven 3 with maven-jar-plugin 2.4 and maven-archiver 2.5, it
> will fail with the following message:
> 
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-jar-plugin:2.4:jar (default-jar) on
> project simple-test: Error assembling JAR: Unable to read manifest file
> (line too long) -> [Help 1]
> [ERROR]
> 
> This is working with previous versions of maven-jar-plugin but it's
> failing with maven-jar-plugin 2.4.
> 
> Attached is a simple test.  Can someone verify if this is bug?

This is *no* bug, *your* MANIFEST is invalid (see manifest specification in 
JDK). The difference is that Maven uses now the JDK to read the manifest, 
while it did it in earlier versions on its own. So, don't expect that your 
jar file is working anywhere.

- Jörg



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to