Maven 1.x Jar Plugin

linefeeds in pom fields result in corrupt jar manifest

Details

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

Description

(originally filed by Timo Santasalo )

When the plugin creates manifest using data from pom, certain fields (such as shortDescription, I didn't test others but I see no reason why this issue won't affect them as well) doesn't seem to be properly filtered of disallowed characters, such as linefeeds.

For example, the following piece of pom:

<shortDescription>
blah blah
blah blah
</shortDescription>

...becomes in manifest something like this:

Specification-Title: blah blah
blah blah

...resulting in corrupted manifest.

Issue Links

Activity

Hide
Marvin King added a comment -


see comment on MJAR-34

Show
Marvin King added a comment - see comment on MJAR-34
Hide
Jerome Lacoste added a comment -

I may be wrong but having looked at the code, this looks like a plexus issue. PLX-185 ?

Show
Jerome Lacoste added a comment - I may be wrong but having looked at the code, this looks like a plexus issue. PLX-185 ?
Hide
Jerome Lacoste added a comment -

I am not sure anymore. Does the maven 1.x jar plugin depends on the same plexus library as the maven 2.x ?

Show
Jerome Lacoste added a comment - I am not sure anymore. Does the maven 1.x jar plugin depends on the same plexus library as the maven 2.x ?
Hide
Lukas Theussl added a comment -

No, maven1 jar plugin doesn't use plexus.

Show
Lukas Theussl added a comment - No, maven1 jar plugin doesn't use plexus.
Hide
Jerome Lacoste added a comment -

As said in PLX-185 the issue is that the plexus archiver doesn't add the missing space before each continuation line. Nothing to do with line feeds.

Show
Jerome Lacoste added a comment - As said in PLX-185 the issue is that the plexus archiver doesn't add the missing space before each continuation line. Nothing to do with line feeds.

People

Vote (1)
Watch (0)

Dates

  • Created:
    Updated: