maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rainer Burgstaller (JIRA)" <j...@codehaus.org>
Subject [jira] (MJAR-96) Manifest file contains line breaks if project description tag of pom.xml is not on single line
Date Thu, 12 Sep 2013 10:04:52 GMT

    [ https://jira.codehaus.org/browse/MJAR-96?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=332723#comment-332723
] 

Rainer Burgstaller edited comment on MJAR-96 at 9/12/13 5:04 AM:
-----------------------------------------------------------------

I have the same problem using the war plugin version 2.4 (which probably uses the same code).

{code}
            <plugin>
                <artifactId>maven-war-plugin</artifactId>
                <configuration>
                    <archive>
                        <manifestEntries>
                            <Tapestry-Module-Classes>
                                this.is.a.very.long.package.name.Module1,
                                this.is.a.very.long.package.name.Module2,
                                this.is.a.very.long.package.name.Module3,
                                this.is.a.very.long.package.name.Module4,
                                this.is.a.very.long.package.name.Module5
                            </Tapestry-Module-Classes>
                        </manifestEntries>
                    </archive>
                </configuration>
            </plugin>
{code}

This produces a manifest similar to this

{noformat}
Manifest-Version: 1.0
Built-By: rainer
Build-Jdk: 1.7.0_10
Tapestry-Module-Classes: this.is.a.very.long.package.name.Module1,

 this.is.a.very.long.package.name.Module2
...
Created-By: Apache Maven 3.0.5
Archiver-Version: Plexus Archiver
{noformat}

note the empty line after {{Tapestry-Module-Classes}}
                
      was (Author: rburgst):
    I have the same problem using the war plugin version 2.4 (which probably uses the same
code).

{code}
            <plugin>
                <artifactId>maven-war-plugin</artifactId>
                <configuration>
                    <archive>
                        <manifestEntries>
                            <Tapestry-Module-Classes>
                                this.is.a.very.long.package.name.Module1,
                                this.is.a.very.long.package.name.Module2,
                                this.is.a.very.long.package.name.Module3,
                                this.is.a.very.long.package.name.Module4,
                                this.is.a.very.long.package.name.Module5
                            </Tapestry-Module-Classes>
                        </manifestEntries>
                    </archive>
                </configuration>
            </plugin>
{code}

This produces a manifest similar to this

{code}
Manifest-Version: 1.0
Built-By: rainer
Build-Jdk: 1.7.0_10
Tapestry-Module-Classes: this.is.a.very.long.package.name.Module1,

 this.is.a.very.long.package.name.Module2
...
Created-By: Apache Maven 3.0.5
Archiver-Version: Plexus Archiver
{code}

note the empty line after {{Tapestry-Module-Classes}}
                  
> Manifest file contains line breaks if project description tag of pom.xml is not on single
line
> ----------------------------------------------------------------------------------------------
>
>                 Key: MJAR-96
>                 URL: https://jira.codehaus.org/browse/MJAR-96
>             Project: Maven JAR Plugin
>          Issue Type: Bug
>         Environment: Windows. Seems that the bug does not appear on Linux.
>            Reporter: Thorsten Möller
>            Priority: Minor
>
> Consider the following pom.xml (excerpt)
> <groupId>mygroup</groupId>
> <artifactId>myartifact</artifactId>
> <version>2.0</version>
> <packaging>jar</packaging>
> <name>My Name</name>
> <description>This is the first line of my project description
> and this is another line, which is on this line because it was formated this way (for
whatever reason).</description>
> Such a non-single-line description ends up in the MANIFEST.MF file containing line breaks.
This might cause exceptions (by other tools) when the manifest file is processed. In particular,
the Retrotranslator Maven plugin throws a IOException if it tries to write a translated JAR
based on such a corrupted MANIFEST file.
> Make sure, to remove line breaks that result from the XML (and other whitespace) in order
not to cause such (very hard to find) problems, i.e., make sure that all properties in the
MANIFEST.MF do not spread over multple lines.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message