blob: 5b916110f788ae2b376280867dcb14a39ae598e9 [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 Milkey3b1a21e2017-11-30 09:40:26 -080025 <version>2.4-SNAPSHOT</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>
40 <version>1.7.21</version>
41 </dependency>
Gaurav Agrawal4efc8cc2017-02-09 18:41:31 +053042 <dependency>
43 <groupId>org.onosproject</groupId>
44 <artifactId>onos-yang-model</artifactId>
Ray Milkey3b1a21e2017-11-30 09:40:26 -080045 <version>2.4-SNAPSHOT</version>
Gaurav Agrawal4efc8cc2017-02-09 18:41:31 +053046 </dependency>
47 <dependency>
48 <groupId>org.onosproject</groupId>
Bharat saraswal7d9244e2017-03-03 11:38:25 +053049 <artifactId>onos-yang-compiler-tool</artifactId>
Ray Milkey3b1a21e2017-11-30 09:40:26 -080050 <version>2.4-SNAPSHOT</version>
Gaurav Agrawal4efc8cc2017-02-09 18:41:31 +053051 </dependency>
52 <dependency>
Bharat saraswal7d9244e2017-03-03 11:38:25 +053053 <groupId>org.osgi</groupId>
54 <artifactId>org.osgi.core</artifactId>
Bharat saraswalb3e25222017-03-06 17:54:09 +053055 <version>5.0.0</version>
Ray Milkeya3203922017-03-03 04:28:22 +000056 </dependency>
57 <dependency>
Gaurav Agrawal4efc8cc2017-02-09 18:41:31 +053058 <groupId>junit</groupId>
59 <artifactId>junit</artifactId>
60 <version>RELEASE</version>
61 </dependency>
Thomas Vachuskaf40fb572016-11-20 11:43:57 -080062 </dependencies>
63
64 <build>
65 <plugins>
66 <plugin>
Gaurav Agrawaldc38b802017-02-13 14:52:14 +053067 <groupId>org.onosproject</groupId>
68 <artifactId>onos-yang-compiler-maven-plugin</artifactId>
69 <version>${project.version}</version>
70 <configuration>
71 <yangFilesDir>src/test/resources</yangFilesDir>
72 </configuration>
73 <executions>
74 <execution>
75 <id>default</id>
76 <goals>
77 <goal>yang2java</goal>
78 </goals>
79 </execution>
80 </executions>
81 </plugin>
82 <plugin>
Bharat saraswala542a362017-03-02 21:43:59 +053083 <groupId>org.apache.felix</groupId>
84 <artifactId>maven-bundle-plugin</artifactId>
Thomas Vachuskaf40fb572016-11-20 11:43:57 -080085 <configuration>
Bharat saraswala542a362017-03-02 21:43:59 +053086 <instructions>
87 <Export-Package>
Gaurav Agrawal0a9640d2017-03-03 19:17:33 +053088 org.onosproject.yang.runtime.*,
Bharat saraswalb3e25222017-03-06 17:54:09 +053089 org.onosproject.yang.compiler.datamodel.*,
90 org.onosproject.yang.compiler.translator.*,
91 org.onosproject.yang.compiler.utils.*,
92 org.onosproject.yang.compiler.linker.*,
93 org.onosproject.yang.compiler.tool.*,
94 org.onosproject.yang.compiler.parser.*,
95 org.antlr.v4.*,
Bharat saraswala542a362017-03-02 21:43:59 +053096 </Export-Package>
Bharat saraswala542a362017-03-02 21:43:59 +053097 </instructions>
Thomas Vachuskaf40fb572016-11-20 11:43:57 -080098 </configuration>
Thomas Vachuskaf40fb572016-11-20 11:43:57 -080099 </plugin>
Gaurav Agrawal0a9640d2017-03-03 19:17:33 +0530100 <!--
101 Cleans up generated test artifacts which get included as a source
102 directory, but which we don't want as part of the bundle.
103 -->
104 <plugin>
105 <groupId>org.apache.maven.plugins</groupId>
106 <artifactId>maven-antrun-plugin</artifactId>
107 <version>1.8</version>
108 <executions>
109 <execution>
110 <phase>prepare-package</phase>
111 <goals>
112 <goal>run</goal>
113 </goals>
114 <configuration>
115 <target>
Bharat saraswal285358c2017-03-16 15:08:09 +0530116 <delete includeemptydirs="true">
Vidyashree Rama3c586732017-05-12 19:48:07 +0530117 <fileset
118 dir="${project.build.outputDirectory}/org/onosproject/yang/gen"
119 includes="**/*"/>
Gaurav Agrawal0a9640d2017-03-03 19:17:33 +0530120 </delete>
Bharat saraswal285358c2017-03-16 15:08:09 +0530121 <delete includeemptydirs="true">
Vidyashree Rama3c586732017-05-12 19:48:07 +0530122 <fileset
123 dir="${project.build.outputDirectory}/yang"
124 includes="**/*"/>
Bharat saraswal285358c2017-03-16 15:08:09 +0530125 </delete>
Vidyashree Rama3c586732017-05-12 19:48:07 +0530126 <delete includeemptydirs="true"
127 failonerror="false">
128 <fileset
129 dir="${project.build.outputDirectory}/Temp"
130 includes="**/*"/>
Bharat saraswal285358c2017-03-16 15:08:09 +0530131 </delete>
Gaurav Agrawal0a9640d2017-03-03 19:17:33 +0530132 </target>
133 </configuration>
134 </execution>
135 </executions>
136 </plugin>
Thomas Vachuskaf40fb572016-11-20 11:43:57 -0800137 </plugins>
138 </build>
139</project>