From: Alexis de Talhouët Date: Thu, 27 Oct 2016 03:36:56 +0000 (-0400) Subject: Remove config module archetype X-Git-Tag: release/carbon~408 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=commitdiff_plain;h=b33d25b338fb5cd7da90102fd87b43476e914a54 Remove config module archetype Change-Id: Ie9c7eb41441594ba15928ab918406ea3ca9ef07a Signed-off-by: Alexis de Talhouët --- diff --git a/opendaylight/config/config-module-archetype/README.txt b/opendaylight/config/config-module-archetype/README.txt deleted file mode 100644 index 8b1f29bf26..0000000000 --- a/opendaylight/config/config-module-archetype/README.txt +++ /dev/null @@ -1,12 +0,0 @@ -Use -GROUP_ID=com.mycompany.app -ARTIFACT_ID=my-app -mvn archetype:generate -DgroupId=$GROUP_ID -DartifactId=$ARTIFACT_ID \ - -DarchetypeArtifactId=config-module-archetype -DarchetypeGroupId=org.opendaylight.controller \ - -DarchetypeVersion=0.2.5-SNAPSHOT - -Module name and prefix define yang module name and its java name prefix. -For example when creating thread factory wrapper, yang name might be -thread-factory -and java prefix -ThreadFactory \ No newline at end of file diff --git a/opendaylight/config/config-module-archetype/pom.xml b/opendaylight/config/config-module-archetype/pom.xml deleted file mode 100644 index bcdda076b4..0000000000 --- a/opendaylight/config/config-module-archetype/pom.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - 4.0.0 - - org.opendaylight.controller - config-subsystem - 0.6.0-SNAPSHOT - - - config-module-archetype - config-module-archetype - Archetype for new module managed by configuration subsystem - - diff --git a/opendaylight/config/config-module-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml b/opendaylight/config/config-module-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml deleted file mode 100644 index f7b87290df..0000000000 --- a/opendaylight/config/config-module-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml +++ /dev/null @@ -1,46 +0,0 @@ - - config-module-archetype - - true - - - - - - - - impl - - - 2013-04-05 - - - 0.2.5-SNAPSHOT - - - 0.6.2-SNAPSHOT - - - 2014-01-31 - - - java.lang.AutoCloseable - - - 2.4.0 - - - urn:opendaylight:params:xml:ns:yang:controller - - - org.opendaylight.controller.config.yang - - - - - - - src/main/yang - - - diff --git a/opendaylight/config/config-module-archetype/src/main/resources/archetype-resources/pom.xml b/opendaylight/config/config-module-archetype/src/main/resources/archetype-resources/pom.xml deleted file mode 100644 index 25933f6336..0000000000 --- a/opendaylight/config/config-module-archetype/src/main/resources/archetype-resources/pom.xml +++ /dev/null @@ -1,105 +0,0 @@ - - 4.0.0 - - ${groupId} - ${artifactId} - ${version} - bundle - - - ${config-api-version} - ${yang-maven-plugin-version} - ${mdsal-model-version} - ${maven-bundle-plugin-version} - 1.7 - 1.7 - 2.5.1 - - - - - org.opendaylight.controller - config-api - ${config.version} - - - - - - - org.opendaylight.yangtools - yang-maven-plugin - ${yangtools.version} - - - config - - generate-sources - - - - - - org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator - - ${jmxGeneratorPath} - - - ${yang-namespace-mapping-from}==${yang-namespace-mapping-to} - - - - - - org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl - - - ${salGeneratorPath} - - - - true - - - - - - org.opendaylight.controller - yang-jmx-generator-plugin - ${config.version} - - - org.opendaylight.mdsal - maven-sal-api-gen-plugin - ${mdsal.model.version} - - - - - - org.apache.felix - maven-bundle-plugin - true - - - ${project.groupId}.${project.artifactId} - - - - - - org.apache.maven.plugins - maven-compiler-plugin - ${maven.compile.plugin.version} - - ${java.version.source} - ${java.version.target} - ${java.version.source} - ${java.version.target} - - - - - - diff --git a/opendaylight/config/config-module-archetype/src/main/resources/archetype-resources/src/main/yang/__module-name__-impl.yang b/opendaylight/config/config-module-archetype/src/main/resources/archetype-resources/src/main/yang/__module-name__-impl.yang deleted file mode 100644 index 639610f3d5..0000000000 --- a/opendaylight/config/config-module-archetype/src/main/resources/archetype-resources/src/main/yang/__module-name__-impl.yang +++ /dev/null @@ -1,53 +0,0 @@ -module ${module-name}-${module-implementation-name} { - - yang-version 1; - namespace "urn:opendaylight:params:xml:ns:yang:controller:config:${module-name}:${module-implementation-name}"; - prefix "${module-name}-${module-implementation-name}"; - - import config { prefix config; revision-date ${config-api-yang-revision}; } - import ${module-name} { prefix ${module-name}; revision-date ${revision}; } - - description - "This module contains the base YANG definitions for - ${module-name} ${module-implementation-name} implementation."; - - revision "${revision}" { - description - "Initial revision."; - } - - // This is the definition of a service implementation - identity ${module-name}-${module-implementation-name} { - base config:module-type; - config:provided-service ${module-name}:${module-name}; - config:java-name-prefix ${module-name-java-prefix}; - } - - augment "/config:modules/config:module/config:configuration" { - case ${module-name}-${module-implementation-name} { - when "/config:modules/config:module/config:type = '${module-name}-${module-implementation-name}'"; - - leaf simple-attribute { - type uint32; - } - - container dto-attribute { - leaf inner-attribute { - type string; - } - } - - // Dependency attribute demonstration, the config:required-identity points to a service type - // In this case it is the same service type as this implementation provides: ${module-name} - container dependency-attribute { - uses config:service-ref { - refine type { - mandatory false; - config:required-identity ${module-name}:${module-name}; - } - } - } - - } - } -} \ No newline at end of file diff --git a/opendaylight/config/config-module-archetype/src/main/resources/archetype-resources/src/main/yang/__module-name__.yang b/opendaylight/config/config-module-archetype/src/main/resources/archetype-resources/src/main/yang/__module-name__.yang deleted file mode 100644 index f77df5a22d..0000000000 --- a/opendaylight/config/config-module-archetype/src/main/resources/archetype-resources/src/main/yang/__module-name__.yang +++ /dev/null @@ -1,26 +0,0 @@ -module ${module-name} { - - yang-version 1; - namespace "urn:opendaylight:params:xml:ns:yang:controller:config:${module-name}"; - prefix "${module-name}"; - - import config { prefix config; revision-date ${config-api-yang-revision}; } - - description - "This module contains the base YANG definitions for - ${module-name} services."; - - revision "${revision}" { - description - "Initial revision."; - } - - // This is the definition of a service - identity ${module-name} { - - base "config:service-type"; - - // TODO modify the java class - config:java-class " ${service-java-class}"; - } -} \ No newline at end of file diff --git a/opendaylight/config/pom.xml b/opendaylight/config/pom.xml index 48451d9d90..66c89d243c 100644 --- a/opendaylight/config/pom.xml +++ b/opendaylight/config/pom.xml @@ -38,7 +38,6 @@ yang-test-plugin shutdown-api shutdown-impl - config-module-archetype config-netty-config config-artifacts config-parent