Maven 2.x JAR Plugin

Multiline description provides invalid header in the generated jar files

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 2.1
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    0

Description

When a description text is written on more than 1 line, the produced Manifest files are invalid.

Indeed one of the header of this manifiest contains the description text as is. When the jar is loaded, we receive an error saying "invalid headers".

Issue Links

Activity

Hide
Jerome Lacoste added a comment -

Can someone double check if this issue is closed for you? The root plexus issue was fixed some weeks ago.

Show
Jerome Lacoste added a comment - Can someone double check if this issue is closed for you? The root plexus issue was fixed some weeks ago.
Hide
Filippos Slavik added a comment -

I can confirm that this very issue is still unresolved. I'm using a clean 2.0.4 maven installation.

Show
Filippos Slavik added a comment - I can confirm that this very issue is still unresolved. I'm using a clean 2.0.4 maven installation.
Hide
Jerome Lacoste added a comment -

But does maven 2.0.4 use the plexus library that contains the fix? I don't think so. On my machine mvn package uses

[DEBUG] org.codehaus.plexus:plexus-archiver:jar:1.0-alpha-3:runtime (selected for runtime)

while the fix (PLX-185) made it in alpha-6

http://svn.plexus.codehaus.org/browse/plexus/trunk/plexus-components/plexus-archiver/src/main/java/org/codehaus/plexus/archiver/jar/Manifest.java

Can you try forcing the dependency to this version of the plexus-archiver and repeat your tests?

Show
Jerome Lacoste added a comment - But does maven 2.0.4 use the plexus library that contains the fix? I don't think so. On my machine mvn package uses [DEBUG] org.codehaus.plexus:plexus-archiver:jar:1.0-alpha-3:runtime (selected for runtime) while the fix (PLX-185) made it in alpha-6 http://svn.plexus.codehaus.org/browse/plexus/trunk/plexus-components/plexus-archiver/src/main/java/org/codehaus/plexus/archiver/jar/Manifest.java Can you try forcing the dependency to this version of the plexus-archiver and repeat your tests?
Hide
Jerome Lacoste added a comment -

http://jira.codehaus.org/browse/MJAR-39#action_67458 seems to confirm my point. Should probably be closed...

Show
Jerome Lacoste added a comment - http://jira.codehaus.org/browse/MJAR-39#action_67458 seems to confirm my point. Should probably be closed...
Hide
Mike Perham added a comment -

This appears to no longer be a problem. maven-archiver does not add specification and implementation entries by default any longer and MJAR-38 allows you to override their values anyhow.

Show
Mike Perham added a comment - This appears to no longer be a problem. maven-archiver does not add specification and implementation entries by default any longer and MJAR-38 allows you to override their values anyhow.

People

Vote (4)
Watch (5)

Dates

  • Created:
    Updated:
    Resolved: