Hi, Jeff!
I've change the main pom.xml, but, it is not working yet.
Check it out!
Regards,
Roberto.

               <reportSet>
                  <id>uml</id>
                  <configuration>
                     <doclet>gr.spinellis.umlgraph.doclet.UmlGraphDoc
</doclet>
                     <docletArtifact>
                        <groupId>umlgraph</groupId>
                        <artifactId>UMLGraph</artifactId>
                        <version>4.7</version>
                     </docletArtifact>
                     <additionalparam>-views</additionalparam>
                     <destDir>target/uml</destDir>
                     <show>private</show>
                  </configuration>
                  <reports>
                     <report>javadoc</report>
                  </reports>
               </reportSet>


Check the error:

[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error during page generation

Embedded error: Error rendering Maven report: Exit code: 1 - javadoc: error
- Cannot find doclet class gr.spinellis.umlgraph.doclet.UmlGraphDoc

[INFO]
------------------------------------------------------------------------
[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error during page
generation
       at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java:559)


On 4/4/07, Jeff Jensen <[EMAIL PROTECTED]> wrote:

Silly me - I had just seen the real cause when I did not want to hit send.

The issue is the doclet name you have specified - it is UmlGraphDoc, not
UmlGraph.  So change to:
<doclet>gr.spinellis.umlgraph.doclet.UmlGraphDoc</doclet>



Quoting Jeff Jensen <[EMAIL PROTECTED]>:

> The issue is that the doclet path param is a local path.  This is a very
> regretful thing...
> In my testing, even if you guarantee you have UMLGraph jar on the
classpath,
> the
> doclet is not found.
>
> The only solution I have found is to specify a fully-qualified path to
the
> UMLGraph jar.
>
> In Maven 1, this is the syntax:
>
>

maven.javadoc.docletpath=${maven.repo.local}/gr.spinellis/jars/UmlGraph-4.6.jar
>
> I am not sure of the syntax for Maven 2 to the repo like that.  Please
share
> when you determine what it is.
>
> I have recently documented this in the Maven 1 Javadoc FAQ, but I have
not
> yet
> published the site.  You can read it in the source if necessary.
>
>
> Quoting Roberto UserList <[EMAIL PROTECTED]>:
>
> > Hi, all ! I've been facing the problem below when I try to generate
class
> > diagram using UmlGraph 4.7.
> >
> > [INFO]
> >
------------------------------------------------------------------------
> > [ERROR] BUILD ERROR
> > [INFO]
> >
------------------------------------------------------------------------
> > [INFO] Error during page generation
> >
> > Embedded error: Error rendering Maven report: Exit code: 1 - javadoc:
error
> > - Cannot find doclet class gr.spinellis.umlgraph.doclet.UmlGraph
> >
> > [INFO]
> >
------------------------------------------------------------------------
> > [DEBUG] Trace
> > org.apache.maven.lifecycle.LifecycleExecutionException: Error during
page
> > generation
> >         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
> > DefaultLifecycleExecutor.java:559)
> >         at
> >
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
> > (DefaultLifecycleExecutor.java:475)
> >         at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
> > DefaultLifecycleExecutor.java:454)
> >         at
> >
>

org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
> > (DefaultLifecycleExecutor.java:306)
> > But i created the dependency for UmlGraph 4.7 in the main pom.xml of
my
> > project. Check it out!
> > <?xml version="1.0" encoding="UTF-8"?>
> > <project xmlns="http://maven.apache.org/POM/4.0.0";
> >          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> >          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> > http://maven.apache.org/maven-v4_0_0.xsd";>
> >         <modelVersion>4.0.0</modelVersion>
> >         <groupId>${group.id}</groupId>
> >         <artifactId>siscargas</artifactId>
> >         <name>Sistema Elo da Variglog (${versao.sis})</name>
> >         <packaging>pom</packaging>
> >         <version>${versao.sis}</version>
> >         <dependencies>
> >              <dependency>
> >                         <groupId>umlgraph</groupId>
> >                         <artifactId>UMLGraph</artifactId>
> >                         <version>4.7</version>
> >              </dependency>
> >         </dependencies>
> > .
> > .
> > .
> >    <reporting>
> >       <plugins>
> >          <plugin>
> >             <groupId>org.apache.maven.plugins</groupId>
> >             <artifactId>maven-javadoc-plugin</artifactId>
> >                 <reportSets>
> >                 <reportSet>
> >                    <id>uml</id>
> >                    <configuration>
> >
> <doclet>gr.spinellis.umlgraph.doclet.UmlGraph</doclet>
> >
> >
>

<!--<docletPath>/bea/rmanager/.m2/repository/umlgraph/UMLGraph/4.7/UmlGraph.jar</docletPath>-->
> >                       <docletArtifact>
> >                          <groupId>umlgraph</groupId>
> >                          <artifactId>UMLGraph</artifactId>
> >                          <version>4.7</version>
> >                       </docletArtifact>
> >                       <additionalparam>-views</additionalparam>
> >                       <destDir>target/uml</destDir>
> >                       <show>private</show>
> >                    </configuration>
> >                    <reports>
> >                       <report>javadoc</report>
> >                    </reports>
> >                 </reportSet>
> >                 <reportSet>
> >                    <id>html</id>
> >                    <configuration>
> >                       <show>private</show>
> >                    </configuration>
> >                    <reports>
> >                       <report>javadoc</report>
> >                    </reports>
> >                 </reportSet>
> >              </reportSets>
> > Thanks in advance for the help.
> > Regards,
> > Roberto.
> >
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to