[ 
https://issues.apache.org/jira/browse/MJAVADOC-149?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17957523#comment-17957523
 ] 

Olivier Lamy commented on MJAVADOC-149:
---------------------------------------

This project has moved from Jira to GitHub Issues. This issue was migrated to 
[apache/maven-javadoc-plugin#563|https://github.com/apache/maven-javadoc-plugin/issues/563].
 

> Newline in ${project.organization.name} makes javadoc fail
> ----------------------------------------------------------
>
>                 Key: MJAVADOC-149
>                 URL: https://issues.apache.org/jira/browse/MJAVADOC-149
>             Project: Maven Javadoc Plugin (Moved to GitHub Issues)
>          Issue Type: Bug
>    Affects Versions: 2.3
>         Environment: Maven 2.0.7, JDK 1.5.0_12, Win
>            Reporter: Benjamin Bentmann
>            Assignee: Siveton Vincent
>            Priority: Major
>             Fix For: 2.4
>
>         Attachments: remove-newlines.patch
>
>
> Consider the following POM snippet:
> {code}<organization>
>     <name>
>         My company,
>         my department
>     </name>
> </organization>{code}
> The Javadoc plugin outputs the following to the options file, using its 
> default configuration:
> {code}-bottom
> 'Copyright © 2007 My company,
>       my department. All Rights Reserved.'{code}
> This actually makes javadoc fail with the following errors:{code}javadoc: 
> error - Illegal package name: "department."
> javadoc: error - Illegal package name: "Reserved."
> javadoc: error - Illegal package name: ""
> javadoc: warning - No source files for package my
> javadoc: warning - No source files for package All
> javadoc: warning - No source files for package Rights{code}
> Since line terminators are used as separators within the arg files, the 
> Javadoc plugin should replace line terminators (in all fashions) with spaces 
> before writing out any POM value so that the formatting of the XML contents 
> does not matter.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to