Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to use umldoclet - Unanticipated error generating UML #633

Closed
wumpz opened this issue Oct 18, 2024 · 2 comments · Fixed by #634
Closed

unable to use umldoclet - Unanticipated error generating UML #633

wumpz opened this issue Oct 18, 2024 · 2 comments · Fixed by #634

Comments

@wumpz
Copy link

wumpz commented Oct 18, 2024

With some older version this worked, at least I could generate some of those diagrams. However, within my actual project I get

[loading /modules/java.desktop/javax/swing/SwingConstants.class]
[loading /modules/java.desktop/javax/swing/ScrollPaneConstants.class]
[loading /modules/java.desktop/javax/swing/text/JTextComponent.class]
error: Unanticipated error generating UML: java.lang.IllegalArgumentException
[done in 1199 ms]
1 error
Command line was: cmd.exe /X /D /C ""C:\Program Files\Eclipse Adoptium\jdk-17.0.8.7-hotspot\bin\javadoc.exe" -J-Xmx2048m -J-Duser.language= -J-Duser.country= @options @packages"

Refer to the generated Javadoc files in 'xxx\apidocs' dir.

Since this seems to be the most generic Exception while generating UML diagrams, I have no clue, whats wrong.

How can I configure javadoc to show me this UML doclet exception + stacktrace.

If I start the generated javadoc.bat manually I get the same exception.


JDK 17 (Temurin), umldoclet 2.2

<plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-javadoc-plugin</artifactId>
        <configuration>
          <!-- *START* UML generation -->
          <doclet>nl.talsmasoftware.umldoclet.UMLDoclet</doclet>
          <docletArtifact>
            <groupId>nl.talsmasoftware</groupId>
            <artifactId>umldoclet</artifactId>
            <version>2.2.0</version>
          </docletArtifact>
          <additionalOptions>
            <!-- <additionalOption>- -create-puml-files</additionalOption> -->
            <additionalOption>--uml-custom-directive='!pragma layout smetana'</additionalOption>
          </additionalOptions>
          <!-- *END* UML generation -->
          <!-- <useStandardDocletOptions>true</useStandardDocletOptions> -->
          <failOnError>false</failOnError>
          <maxmemory>2g</maxmemory>
          <verbose>true</verbose>
          <doclint>none</doclint>
          <failOnError>false</failOnError>
        </configuration>
        <reportSets>
          <reportSet>
            <id>default</id>
            <reports>
              <report>javadoc</report>
            </reports>
          </reportSet>
        </reportSets>
      </plugin>
@wumpz
Copy link
Author

wumpz commented Oct 18, 2024

Playing with my configuration the problems strangely seems to be:

<verbose>true</verbose>

If I remove this line in my maven configuration, it seems to work now.

@sjoerdtalsma
Copy link
Contributor

sjoerdtalsma commented Oct 18, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants