Generate UML diagrams from source (issue #47) #48
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Context
This patch is in response to issue #47 I've created.
This code uses the UmlGraphDoc maven plugin to automatically insert UML diagrams from the Java sources (which were generated from the avro files). The
Builder
classes are intentionnally ignored to avoid duplication.Dependencies
GraphViz (dot) is required in the classpath of the target system in order to reap the benefits from this patch.
However, this patch should be unobtrusive since it is implemented as a maven profile.
Synopsis
Sample Output
Check here for the class diagram, and here for the javadoc.
Feedback expected
Please verify that this does not break things in the other projects like Adam, but I think it should be ok.
Verifications done to test this patch
If you have Docker installed, you can try:
1) Run a new container based on a Java image (Oracle JDK)
2) Then, paste these lines (inside the container)
3) Scenario 1: A user which does NOT have GraphViz installed, can generate HTML from the javadoc (without diagrams)
4) Scenario 2: A user which does NOT have GraphViz installed, can try the uml-diagrams profile but it won't work
5) Scenario 3: a user which has GraphViz installed, can generate UML diagrams within the html javadoc