From 31f619b9e733bd3c88d77af1c0fc38258b8623de Mon Sep 17 00:00:00 2001 From: Jan Srnicek Date: Fri, 30 Jun 2017 12:05:16 +0200 Subject: HONEYCOMB-358 - Generate guice to yang modules index Generates two descriptor files yang-modules-binding/yang-modules - List of Yang modules by project(classpath + deps) yang-mapping/FULL_PROJECT_NAME-yang-modules-index - Index from Guice modules to Yang modules that are used by respective Guice module These files are included in jar files and distribution resources Change-Id: I44569b3bc8819a5facd7ba8424836f715012c04d Signed-off-by: Jan Srnicek --- common/impl-parent/pom.xml | 78 ++++++++++++++++++++++++++++++ common/minimal-distribution-parent/pom.xml | 32 ++++++------ 2 files changed, 93 insertions(+), 17 deletions(-) diff --git a/common/impl-parent/pom.xml b/common/impl-parent/pom.xml index f8141eef8..2d9984247 100644 --- a/common/impl-parent/pom.xml +++ b/common/impl-parent/pom.xml @@ -29,4 +29,82 @@ + + + + + + + + org.apache.maven.plugins + maven-dependency-plugin + 2.10 + + + copy-dependencies + process-sources + + copy-dependencies + + + ${project.build.directory}/lib + true + true + yang-jmx-generator,test-api + + + + + + + org.codehaus.gmaven + groovy-maven-plugin + + + generate-yang-index + generate-resources + + execute + + + + io.fd.honeycomb.common.scripts.ModuleYangIndexGenerator.generateIndexForPresentModules(project, log) + + + + + + + io.fd.honeycomb.common + common-scripts + ${project.version} + + + + + + + + + org.codehaus.gmaven + groovy-maven-plugin + + + + + + src/main/resources + + **/* + + + + ${project.build.outputDirectory} + + **/yang-modules-binding/yang-modules + + + + \ No newline at end of file diff --git a/common/minimal-distribution-parent/pom.xml b/common/minimal-distribution-parent/pom.xml index 1f2a5add7..00aac6785 100644 --- a/common/minimal-distribution-parent/pom.xml +++ b/common/minimal-distribution-parent/pom.xml @@ -6,9 +6,9 @@ io.fd.hc2vpp.common - hc2vpp-parent + impl-parent 1.17.07-SNAPSHOT - ../hc2vpp-parent + ../impl-parent io.fd.hc2vpp.common @@ -55,31 +55,17 @@ true - config/ cert/ modules/ + config/ cert/ modules/ yang-mapping/ - org.apache.maven.plugins maven-dependency-plugin 2.10 - - copy-dependencies - package - - copy-dependencies - - - ${project.build.directory}/lib - true - true - yang-jmx-generator - - unpack-configuration prepare-package @@ -126,6 +112,18 @@ + + generate-module-to-yang-index + prepare-package + + execute + + + + io.fd.honeycomb.common.scripts.ModuleYangIndexGenerator.pairDistributionModulesWithYangModules(project, log) + + + -- cgit 1.2.3-korg