diff options
author | Chinthakayala, Sheshashailavas <sc2914@att.com> | 2017-04-07 08:18:56 -0900 |
---|---|---|
committer | Chinthakayala, Sheshashailavas <sc2914@att.com> | 2017-04-07 08:21:54 -0900 |
commit | 4cc1e4b946aedcf6c34550d1903e9bd13e6e160b (patch) | |
tree | 4f3369f83f381734fb9aebc3ae9d8ed026c21c99 /dgbuilder/build_pom_for_yang_compile | |
parent | 76825594b6c95cf09d5142c0f9384a5b2bf9721e (diff) |
[SDNC-5] added yang upload
and added break node
Change-Id: I8d36b5d400a51a6ebc248b100f04284cf27abcad
Signed-off-by: Chinthakayala, Sheshashailavas <sc2914@att.com>
Former-commit-id: ae6804f3c5805f78198b26de88ceb6dfa9bb335b
Diffstat (limited to 'dgbuilder/build_pom_for_yang_compile')
-rwxr-xr-x | dgbuilder/build_pom_for_yang_compile | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/dgbuilder/build_pom_for_yang_compile b/dgbuilder/build_pom_for_yang_compile new file mode 100755 index 00000000..9ea090a6 --- /dev/null +++ b/dgbuilder/build_pom_for_yang_compile @@ -0,0 +1,86 @@ +echo "Version of dgbuilder pom is : $4" +echo "Building pom.xml_base for compiling yang" + +model_pom_content=$(cat <<EOF +<?xml version="1.0" encoding="UTF-8"?> +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + <modelVersion>4.0.0</modelVersion> + <parent> + <groupId>org.openecomp.sdnc.core</groupId> + <artifactId>root</artifactId> + <version>${1}</version> + </parent> + <artifactId>yangApp-model</artifactId> + <packaging>bundle</packaging> + <version>1.0.0-SNAPSHOT</version> + + <build> + <plugins> + <plugin> + <groupId>org.apache.felix</groupId> + <artifactId>maven-bundle-plugin</artifactId> + <extensions>true</extensions> + <configuration> + <instructions> + <Import-Package>*</Import-Package> + </instructions> + </configuration> + </plugin> + <plugin> + <groupId>org.opendaylight.yangtools</groupId> + <artifactId>yang-maven-plugin</artifactId> + <version>\${odl.yangtools.yang.maven.plugin.version}</version> + <dependencies> + <dependency> + <groupId>org.opendaylight.mdsal</groupId> + <artifactId>maven-sal-api-gen-plugin</artifactId> + <version>\${odl.sal.api.gen.plugin.version}</version> + <type>jar</type> + </dependency> + </dependencies> + <executions> + <execution> + <goals> + <goal>generate-sources</goal> + </goals> + <configuration> + <yangFilesRootDir>\${yang.file.directory}</yangFilesRootDir> + <codeGenerators> + <generator> + <codeGeneratorClass>org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass> + <outputBaseDir>\${salGeneratorPath}</outputBaseDir> + </generator> + </codeGenerators> + <inspectDependencies>true</inspectDependencies> + </configuration> + </execution> + </executions> + </plugin> + </plugins> + </build> + <dependencies> + <dependency> + <groupId>org.opendaylight.mdsal</groupId> + <artifactId>yang-binding</artifactId> + <version>\${odl.mdsal.yang.binding.version}</version> + </dependency> + <dependency> + <groupId>org.opendaylight.yangtools</groupId> + <artifactId>yang-common</artifactId> + <version>\${odl.yangtools.version}</version> + </dependency> + <dependency> + <groupId>org.opendaylight.mdsal.model</groupId> + <artifactId>ietf-inet-types</artifactId> + <version>\${odl.ietf-inet-types.version}</version> + </dependency> + <dependency> + <groupId>org.opendaylight.mdsal.model</groupId> + <artifactId>ietf-yang-types</artifactId> + <version>\${odl.ietf-yang-types.version}</version> + </dependency> + </dependencies> +</project> +EOF +) +echo "$model_pom_content" >tools/pom.xml_base |