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.