You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Damien Lecan <ml...@dlecan.com> on 2009/03/11 12:02:50 UTC

maven-javadoc-plugin 2.5 and "Illegal package name"

Hello,

I used to used  maven-javadoc-plugin 2.4 for custom doclet processing.
If I try to upgrade to version 2.5, I get :

 javadoc: error - Illegal package name: "Copyright © 2009. All Rights Reserved."
Command line was:"C:\Program
Files\Java\jdk1.6.0_11\jre\..\bin\javadoc.exe" @options

Extract from pom :

<plugin>
	<groupId>org.apache.maven.plugins</groupId>
	<artifactId>maven-javadoc-plugin</artifactId>
	<!-- version configured by parent -->
	<executions>
		<execution>
			<phase>process-resources</phase>
			<goals>
				<goal>javadoc</goal>
			</goals>
		</execution>
	</executions>
	<configuration>
		<subpackages>my.package</subpackages>
		<exclude>another.package</exclude>
		<doclet>company.tools.DocletSearchEjbService</doclet>
		<docletArtifacts>
			<docletArtifact>
				<groupId>company</groupId>
				<artifactId>config-servicelocator-doclet</artifactId>
				<version>1.0-SNAPSHOT</version>
			</docletArtifact>
		</docletArtifacts>
		<additionalparam>-tag
			${project.build.outputDirectory}/file.properties</additionalparam>
	</configuration>
</plugin>

I tried to configure "bottom" tag, but it always fail.

Thanks

Damien

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: maven-javadoc-plugin 2.5 and "Illegal package name"

Posted by Santos Patel <sa...@tcs.com>.
Hi damien,

I tried generating my maven project with and without the -author option. 
But every time the generated javadoc contains the author information with 
it. It seems like the -author doesn't make any difference.
My javadoc uses plugin 2.4 as i'm running maven 2.0.6. But I tested with 
maven 2.0.10 and the same results. I hope someone can shed some light on 
this issue...

Thanks

Santosh Patel
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you



Re: maven-javadoc-plugin 2.5 and "Illegal package name"

Posted by Damien Lecan <ml...@dlecan.com>.
> Does your path contain spaces.

Which path ?
Path to javadoc tool : yes (c:\program files)
Path to dependencies (doclet) : yes (c:\document and settings)

I tried with debug option.

Plugin fails because of theses lines in options :

...
-author
-bottom
'Copyright &#169; 2009 <a href="http://www.gip-cps.fr">GIP-CPS</a>.
All Rights Reserved.'
...

If I remove -author (<author>false</author>), it works perfectly.

Is it a new bug ?

Damien

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: maven-javadoc-plugin 2.5 and "Illegal package name"

Posted by Santos Patel <sa...@tcs.com>.
Hi damien,

Does your path contain spaces. If any directory name contains spaces then 
javadoc plugin seems to fail. The issue is reported as solved with 2.5 but 
that doesn't seem to be the case.
For your reference.... http://jira.codehaus.org/browse/MJAVADOC-144

Santosh Patel
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you