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

Document how to include custom plantuml diagrams into generated javadoc #443

Open
alexriva opened this issue Nov 9, 2022 · 4 comments
Open

Comments

@alexriva
Copy link

alexriva commented Nov 9, 2022

Is it possible to add custom plantUml diagrams in the generated javadoc ?

Example

...
public class Test {
/**
* A method with custom plantuml sequence diagram
* @startuml
* actor1 -> actor2 : call method
* @enduml
*/
public void method1(...) {
...
@alexriva
Copy link
Author

alexriva commented Nov 9, 2022

Solved using taglet org.jdrupes.taglets.plantUml.PlantUml

 <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-javadoc-plugin</artifactId>
    <configuration>
      <taglet>org.jdrupes.taglets.plantUml.PlantUml</taglet>
      <tagletArtifact>
        <groupId>org.jdrupes.taglets</groupId>
        <artifactId>plantuml-taglet</artifactId>
        <version>2.0.1</version>
      </tagletArtifact>
      <doclet>nl.talsmasoftware.umldoclet.UMLDoclet</doclet>
      <docletArtifact>
        <groupId>nl.talsmasoftware</groupId>
        <artifactId>umldoclet</artifactId>
        <version>2.0.20</version>
       </docletArtifact>
       <additionalOptions>
       </additionalOptions>
     </configuration>
  </plugin>

@alexriva alexriva closed this as completed Nov 9, 2022
@alexriva
Copy link
Author

alexriva commented Nov 9, 2022

Solved

@sjoerdtalsma
Copy link
Contributor

Reopening this as it might be a good idea to (finally) document this as I have gotten the question before.

@sjoerdtalsma sjoerdtalsma reopened this Nov 9, 2022
@sjoerdtalsma sjoerdtalsma changed the title Include custom plantuml diagrams into generated javadoc Document how to include custom plantuml diagrams into generated javadoc Nov 9, 2022
@sjoerdtalsma
Copy link
Contributor

@alexriva Thanks for asking and providing the solution 😉

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

No branches or pull requests

2 participants