mvn javadoc:javadoc fails if project pom name contains multiple lines
---------------------------------------------------------------------
Key: MJAVADOC-233
URL: http://jira.codehaus.org/browse/MJAVADOC-233
Project: Maven 2.x Javadoc Plugin
Issue Type: Bug
Affects Versions: 2.5
Environment: ubuntu 8.10, jdk 6.
Reporter: Pablo Graņa
If the project name in the pom contains a new line (at least a CR LF pair), mvn javadoc:javadoc fails with this error:
[INFO] An error has occurred in JavaDocs report generation:Exit code: 1 - javadoc: error - Illegal package name: "2.1.1-SNAPSHOT"
javadoc: error - Illegal package name: ""
javadoc: error - Illegal package name: "2.1.1-SNAPSHOT"
javadoc: error - Illegal package name: ""
javadoc: warning - No source files for package b
javadoc: warning - No source files for package API
javadoc: warning - No source files for package b
javadoc: warning - No source files for package API
Command line was:/usr/lib/jvm/java-6-sun-1.6.0.10/jre/../bin/javadoc @options @packages
This is the relevant pom fragment:
4.0.0
a.b
aa
ejb
a
b
This is the relevant fragment of the target/site/apidocs/options file:
-doctitle
'a
b 2.1.1-SNAPSHOT API'
-use
-version
-windowtitle
'a
b 2.1.1-SNAPSHOT API'gpablo
If I remove de line from the project name, it works fine.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira