You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Paul Copeland <te...@jotobjects.com> on 2007/06/19 23:10:27 UTC

[m2] running javadoc plugin in package phase

I'm generating javadoc within a webapp context.  I put the 
maven-javadoc-plugin:javadoc goal into the package phase rather than in 
the usual the generation <reporting> lifecycle. It is doing the right 
thing but I get this message -

[WARNING] Removing: javadoc from forked lifecycle, to prevent recursive 
invocation

Then I get a bunch of velocity messages (irrelevant for javadoc AFAIK)

Why do I get the message and can I get rid of velocity since this is a 
plain vanilla javadoc tool run?

TIA  - Paul Copeland, Jot Object Technologies http://www.jotobjects.com/


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


Re: [m2] running javadoc plugin in package phase

Posted by Paul Copeland <te...@jotobjects.com>.
It looks like the javadoc plugin always fires up Velocity for some some 
reason.  The only work around I can see to the two questions below is to 
use the usual antrun to run the ant javadoc task.

On 6/20/2007 10:05 AM, Paul Copeland wrote:
> Any thoughts on what the "Removing: javadoc from forked lifecycle, to 
> prevent recursive invocation" means and why velolcity is run by the 
> javadoc plugin?
>
> It seems like wanting to put javadoc in a webapp directory would be a 
> fairly common need - Should I use the antrun plugin instead?
>
> On 6/19/2007 2:10 PM, Paul Copeland wrote:
>> I'm generating javadoc within a webapp context.  I put the 
>> maven-javadoc-plugin:javadoc goal into the package phase rather than 
>> in the usual the generation <reporting> lifecycle. It is doing the 
>> right thing but I get this message -
>>
>> [WARNING] Removing: javadoc from forked lifecycle, to prevent 
>> recursive invocation
>>
>> Then I get a bunch of velocity messages (irrelevant for javadoc AFAIK)
>>
>> Why do I get the message and can I get rid of velocity since this is 
>> a plain vanilla javadoc tool run?
>>
>> TIA  - Paul Copeland, Jot Object Technologies http://www.jotobjects.com/
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
>

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


Re: [m2] running javadoc plugin in package phase

Posted by Paul Copeland <te...@jotobjects.com>.
Any thoughts on what the "Removing: javadoc from forked lifecycle, to 
prevent recursive invocation" means and why velolcity is run by the 
javadoc plugin?

It seems like wanting to put javadoc in a webapp directory would be a 
fairly common need - Should I use the antrun plugin instead?

On 6/19/2007 2:10 PM, Paul Copeland wrote:
> I'm generating javadoc within a webapp context.  I put the 
> maven-javadoc-plugin:javadoc goal into the package phase rather than 
> in the usual the generation <reporting> lifecycle. It is doing the 
> right thing but I get this message -
>
> [WARNING] Removing: javadoc from forked lifecycle, to prevent 
> recursive invocation
>
> Then I get a bunch of velocity messages (irrelevant for javadoc AFAIK)
>
> Why do I get the message and can I get rid of velocity since this is a 
> plain vanilla javadoc tool run?
>
> TIA  - Paul Copeland, Jot Object Technologies http://www.jotobjects.com/
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
>

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


Re: [m2] running javadoc plugin in package phase

Posted by Paul Copeland <te...@jotobjects.com>.
I decided to do it with antrun instead since I want a clean javadoc run 
without Velocity chatter and maven warning messages. 

Your POM entry below works for me with mvn 2.0.6.  The aggregate config 
indicates you have a multi-module POM. I haven't tried the javadoc 
plugin in the package phase in that situation.


On 6/25/2007 10:21 AM, Lara Brian wrote:
> Hi Paul,
> I am also trying to run the javadoc in the package phase and it is not
> generating the javadoc. Looks like you did it sucessfully. Can you tell me
> what iam doing wrong? My POM is like this:
>
>
> <build>
> 	<plugins>
> 		<plugin>
> 			<groupId>org.apache.maven.plugins</groupId>
> 			<artifactId>maven-javadoc-plugin</artifactId>
> 			<configuration>
> 				<aggregate>true</aggregate>
> 			</configuration>
> 			<executions>
> 				<execution>
> 					<id>create-javadocs</id>
> 					<phase>package</phase>
> 					<goals>
> 						<goal>javadoc</goal>
> 					</goals>
> 				</execution>
> 			</executions>
> 		</plugin>
> 		<plugin>
> 			<artifactId>maven-assembly-plugin</artifactId>
> 			<configuration>
> 				<outputDirectory>.</outputDirectory>
> 				<appendAssemblyId>true</appendAssemblyId>
> 				<descriptors>
> 					<descriptor>cmp-client-javadoc.xml</descriptor>											
> </descriptors>
> 			</configuration>
> 			<executions>
> 				<execution>
> 					<id>make-assembly</id>
> 					<phase>package</phase>
> 					<goals>
> 						<goal>attached</goal>
> 					</goals>
> 				</execution>
> 			</executions>
> 		</plugin>
> 	</plugins>
> </build>
>
> I need to run javadoc and then assemble the javadoc created uisng assembly
> descriptor (cmp-client-javadoc.xml).
>
> Thanks a lot,
> Shankar.
>
>
>
>
> Paul Copeland wrote:
>   
>> I'm generating javadoc within a webapp context.  I put the 
>> maven-javadoc-plugin:javadoc goal into the package phase rather than in 
>> the usual the generation <reporting> lifecycle. It is doing the right 
>> thing but I get this message -
>>
>> [WARNING] Removing: javadoc from forked lifecycle, to prevent recursive 
>> invocation
>>
>> Then I get a bunch of velocity messages (irrelevant for javadoc AFAIK)
>>
>> Why do I get the message and can I get rid of velocity since this is a 
>> plain vanilla javadoc tool run?
>>
>> TIA  - Paul Copeland, Jot Object Technologies http://www.jotobjects.com/
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>>
>>     
>
>   

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


Re: [m2] running javadoc plugin in package phase

Posted by Lara Brian <la...@yahoo.com>.
Hi Paul,
I am also trying to run the javadoc in the package phase and it is not
generating the javadoc. Looks like you did it sucessfully. Can you tell me
what iam doing wrong? My POM is like this:


<build>
	<plugins>
		<plugin>
			<groupId>org.apache.maven.plugins</groupId>
			<artifactId>maven-javadoc-plugin</artifactId>
			<configuration>
				<aggregate>true</aggregate>
			</configuration>
			<executions>
				<execution>
					<id>create-javadocs</id>
					<phase>package</phase>
					<goals>
						<goal>javadoc</goal>
					</goals>
				</execution>
			</executions>
		</plugin>
		<plugin>
			<artifactId>maven-assembly-plugin</artifactId>
			<configuration>
				<outputDirectory>.</outputDirectory>
				<appendAssemblyId>true</appendAssemblyId>
				<descriptors>
					<descriptor>cmp-client-javadoc.xml</descriptor>											
</descriptors>
			</configuration>
			<executions>
				<execution>
					<id>make-assembly</id>
					<phase>package</phase>
					<goals>
						<goal>attached</goal>
					</goals>
				</execution>
			</executions>
		</plugin>
	</plugins>
</build>

I need to run javadoc and then assemble the javadoc created uisng assembly
descriptor (cmp-client-javadoc.xml).

Thanks a lot,
Shankar.




Paul Copeland wrote:
> 
> I'm generating javadoc within a webapp context.  I put the 
> maven-javadoc-plugin:javadoc goal into the package phase rather than in 
> the usual the generation <reporting> lifecycle. It is doing the right 
> thing but I get this message -
> 
> [WARNING] Removing: javadoc from forked lifecycle, to prevent recursive 
> invocation
> 
> Then I get a bunch of velocity messages (irrelevant for javadoc AFAIK)
> 
> Why do I get the message and can I get rid of velocity since this is a 
> plain vanilla javadoc tool run?
> 
> TIA  - Paul Copeland, Jot Object Technologies http://www.jotobjects.com/
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/-m2--running-javadoc-plugin-in-package-phase-tf3948915s177.html#a11291634
Sent from the Maven - Users mailing list archive at Nabble.com.


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