maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pablo Graña (JIRA) <j...@codehaus.org>
Subject [jira] Created: (MJAVADOC-233) mvn javadoc:javadoc fails if project pom name contains multiple lines
Date Tue, 02 Jun 2009 17:49:42 GMT
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:

	<modelVersion>4.0.0</modelVersion>
	<groupId>a.b</groupId>
	<artifactId>aa</artifactId>
	<packaging>ejb</packaging>
	<name> a
					b
	</name>

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

       

Mime
View raw message