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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to