diff --git a/maven-metadata-inferer/src/main/java/org/ndx/aadarchi/inferer/maven/MavenEnhancer.java b/maven-metadata-inferer/src/main/java/org/ndx/aadarchi/inferer/maven/MavenEnhancer.java index 28877b2b..719bbaea 100644 --- a/maven-metadata-inferer/src/main/java/org/ndx/aadarchi/inferer/maven/MavenEnhancer.java +++ b/maven-metadata-inferer/src/main/java/org/ndx/aadarchi/inferer/maven/MavenEnhancer.java @@ -41,6 +41,10 @@ public interface MavenEnhancer { * List of ignored submodules. Allows to hide architecture documentation from production-like code */ String IGNORED_SUBMODULES = PREFIX+"ignored.submodules"; + /** + * Set this property to true to have a list of "interesting" dependencies shown + */ + String SHOW_INTERESTING_DEPENDENCIES = PREFIX+"show.interesting.dependencies"; /** * When set, dependencies tagged with one of the tags in this list will be filtered out from signifiant dependencies */ diff --git a/maven-metadata-inferer/src/main/java/org/ndx/aadarchi/inferer/maven/MavenTechnologiesDocumentationEnhancer.java b/maven-metadata-inferer/src/main/java/org/ndx/aadarchi/inferer/maven/MavenTechnologiesDocumentationEnhancer.java index c872b762..5e317e79 100644 --- a/maven-metadata-inferer/src/main/java/org/ndx/aadarchi/inferer/maven/MavenTechnologiesDocumentationEnhancer.java +++ b/maven-metadata-inferer/src/main/java/org/ndx/aadarchi/inferer/maven/MavenTechnologiesDocumentationEnhancer.java @@ -37,6 +37,9 @@ public int priority() { @Override protected void processElement(StaticStructureElement element, OutputBuilder builder) { if(element.getProperties().containsKey(MavenEnhancer.AGILE_ARCHITECTURE_MAVEN_TECHNOLOGIES)) { + if(Boolean.parseBoolean(element.getProperties().getOrDefault( + MavenEnhancer.SHOW_INTERESTING_DEPENDENCIES, + "false"))) { String technologies = element.getProperties().get(MavenEnhancer.AGILE_ARCHITECTURE_MAVEN_TECHNOLOGIES); // Rehydrate that to have artifacts try { @@ -48,6 +51,7 @@ protected void processElement(StaticStructureElement element, OutputBuilder buil // TODO Auto-generated catch block e.printStackTrace(); } + } } }