blob: 13f911c8712e6cc19ffcf84613b940650f4f1491 [file] [log] [blame]
Thomas Vachuskaf40fb572016-11-20 11:43:57 -08001<!--
Brian O'Connor72b2df22017-08-03 18:48:28 -07002 ~ Copyright 2017-present Open Networking Foundation
Thomas Vachuskaf40fb572016-11-20 11:43:57 -08003 ~
4 ~ Licensed under the Apache License, Version 2.0 (the "License");
5 ~ you may not use this file except in compliance with the License.
6 ~ You may obtain a copy of the License at
7 ~
8 ~ http://www.apache.org/licenses/LICENSE-2.0
9 ~
10 ~ Unless required by applicable law or agreed to in writing, software
11 ~ distributed under the License is distributed on an "AS IS" BASIS,
12 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 ~ See the License for the specific language governing permissions and
14 ~ limitations under the License.
15 -->
Gaurav Agrawal4efc8cc2017-02-09 18:41:31 +053016
Thomas Vachuskaf40fb572016-11-20 11:43:57 -080017<project xmlns="http://maven.apache.org/POM/4.0.0"
18 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
19 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
20 <modelVersion>4.0.0</modelVersion>
21
22 <parent>
23 <groupId>org.onosproject</groupId>
Gaurav Agrawala599a8f2017-01-10 20:45:27 +053024 <artifactId>onos-yang-tools</artifactId>
Ray Milkeyc3fbe562018-02-09 10:02:10 -080025 <version>2.4</version>
Thomas Vachuskaf40fb572016-11-20 11:43:57 -080026 </parent>
27
28 <artifactId>onos-yang-runtime</artifactId>
Bharat saraswala542a362017-03-02 21:43:59 +053029 <packaging>bundle</packaging>
Thomas Vachuskaf40fb572016-11-20 11:43:57 -080030
31 <dependencies>
32 <dependency>
Thomas Vachuskaf40fb572016-11-20 11:43:57 -080033 <groupId>commons-io</groupId>
34 <artifactId>commons-io</artifactId>
35 <version>2.4</version>
36 </dependency>
37 <dependency>
38 <groupId>org.slf4j</groupId>
39 <artifactId>slf4j-api</artifactId>
Thomas Vachuskaf40fb572016-11-20 11:43:57 -080040 </dependency>
Gaurav Agrawal4efc8cc2017-02-09 18:41:31 +053041 <dependency>
42 <groupId>org.onosproject</groupId>
43 <artifactId>onos-yang-model</artifactId>
Ray Milkeyc3fbe562018-02-09 10:02:10 -080044 <version>2.4</version>
Gaurav Agrawal4efc8cc2017-02-09 18:41:31 +053045 </dependency>
46 <dependency>
47 <groupId>org.onosproject</groupId>
Bharat saraswal7d9244e2017-03-03 11:38:25 +053048 <artifactId>onos-yang-compiler-tool</artifactId>
Ray Milkeyc3fbe562018-02-09 10:02:10 -080049 <version>2.4</version>
Gaurav Agrawal4efc8cc2017-02-09 18:41:31 +053050 </dependency>
51 <dependency>
Bharat saraswal7d9244e2017-03-03 11:38:25 +053052 <groupId>org.osgi</groupId>
53 <artifactId>org.osgi.core</artifactId>
Gaurav Agrawal4efc8cc2017-02-09 18:41:31 +053054 </dependency>
Thomas Vachuskaf40fb572016-11-20 11:43:57 -080055 </dependencies>
56
57 <build>
58 <plugins>
59 <plugin>
Gaurav Agrawaldc38b802017-02-13 14:52:14 +053060 <groupId>org.onosproject</groupId>
61 <artifactId>onos-yang-compiler-maven-plugin</artifactId>
62 <version>${project.version}</version>
63 <configuration>
64 <yangFilesDir>src/test/resources</yangFilesDir>
65 </configuration>
66 <executions>
67 <execution>
68 <id>default</id>
69 <goals>
70 <goal>yang2java</goal>
71 </goals>
72 </execution>
73 </executions>
74 </plugin>
75 <plugin>
Bharat saraswala542a362017-03-02 21:43:59 +053076 <groupId>org.apache.felix</groupId>
77 <artifactId>maven-bundle-plugin</artifactId>
Thomas Vachuskaf40fb572016-11-20 11:43:57 -080078 <configuration>
Bharat saraswala542a362017-03-02 21:43:59 +053079 <instructions>
80 <Export-Package>
Gaurav Agrawal0a9640d2017-03-03 19:17:33 +053081 org.onosproject.yang.runtime.*,
Bharat saraswalb3e25222017-03-06 17:54:09 +053082 org.onosproject.yang.compiler.datamodel.*,
83 org.onosproject.yang.compiler.translator.*,
84 org.onosproject.yang.compiler.utils.*,
85 org.onosproject.yang.compiler.linker.*,
86 org.onosproject.yang.compiler.tool.*,
87 org.onosproject.yang.compiler.parser.*,
88 org.antlr.v4.*,
Bharat saraswala542a362017-03-02 21:43:59 +053089 </Export-Package>
Bharat saraswala542a362017-03-02 21:43:59 +053090 </instructions>
Thomas Vachuskaf40fb572016-11-20 11:43:57 -080091 </configuration>
Thomas Vachuskaf40fb572016-11-20 11:43:57 -080092 </plugin>
Gaurav Agrawal0a9640d2017-03-03 19:17:33 +053093 <!--
94 Cleans up generated test artifacts which get included as a source
95 directory, but which we don't want as part of the bundle.
96 -->
97 <plugin>
98 <groupId>org.apache.maven.plugins</groupId>
99 <artifactId>maven-antrun-plugin</artifactId>
100 <version>1.8</version>
101 <executions>
102 <execution>
103 <phase>prepare-package</phase>
104 <goals>
105 <goal>run</goal>
106 </goals>
107 <configuration>
108 <target>
Yuta HIGUCHI5c8fa432018-01-26 18:56:40 -0800109 <delete includeemptydirs="true" failonerror="false">
Vidyashree Rama3c586732017-05-12 19:48:07 +0530110 <fileset
111 dir="${project.build.outputDirectory}/org/onosproject/yang/gen"
112 includes="**/*"/>
Gaurav Agrawal0a9640d2017-03-03 19:17:33 +0530113 </delete>
Yuta HIGUCHI5c8fa432018-01-26 18:56:40 -0800114 <delete includeemptydirs="true" failonerror="false">
Vidyashree Rama3c586732017-05-12 19:48:07 +0530115 <fileset
116 dir="${project.build.outputDirectory}/yang"
117 includes="**/*"/>
Bharat saraswal285358c2017-03-16 15:08:09 +0530118 </delete>
Yuta HIGUCHI5c8fa432018-01-26 18:56:40 -0800119 <delete includeemptydirs="true" failonerror="false">
Vidyashree Rama3c586732017-05-12 19:48:07 +0530120 <fileset
121 dir="${project.build.outputDirectory}/Temp"
122 includes="**/*"/>
Bharat saraswal285358c2017-03-16 15:08:09 +0530123 </delete>
Gaurav Agrawal0a9640d2017-03-03 19:17:33 +0530124 </target>
125 </configuration>
126 </execution>
127 </executions>
128 </plugin>
Thomas Vachuskaf40fb572016-11-20 11:43:57 -0800129 </plugins>
130 </build>
sonugupta-huawei4f24d8b2018-01-02 18:24:16 +0530131</project>