[
http://jira.codehaus.org/browse/MJAVADOC-233?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Vincent Siveton closed MJAVADOC-233.
------------------------------------
Resolution: Duplicate
It seems that you used 2.3 instead of 2.5.
Using 2.4 or more (MJAVADOC-149) should fix your issue.
> 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.3
> 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