blob: 7852d7a811fc97bea8dc7e5ec30c8685f68acdd7 [file] [log] [blame]
Vidyashree Rama46c833f2017-02-23 18:54:26 +05301<!--
Brian O'Connor72b2df22017-08-03 18:48:28 -07002 ~ Copyright 2017-present Open Networking Foundation
Vidyashree Rama46c833f2017-02-23 18:54:26 +05303 ~
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 -->
16
17<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>
24 <artifactId>onos-yang-serializers</artifactId>
Ray Milkey8b6ae692017-08-24 13:28:56 -070025 <version>2.2-SNAPSHOT</version>
Vidyashree Rama46c833f2017-02-23 18:54:26 +053026 </parent>
27
28 <artifactId>onos-yang-serializers-xml</artifactId>
Bharat saraswala542a362017-03-02 21:43:59 +053029 <packaging>bundle</packaging>
Vidyashree Rama46c833f2017-02-23 18:54:26 +053030
31 <dependencies>
32 <dependency>
33 <groupId>org.slf4j</groupId>
34 <artifactId>slf4j-api</artifactId>
35 <version>1.7.21</version>
36 </dependency>
37 <dependency>
38 <groupId>org.onosproject</groupId>
Vidyashree Rama46c833f2017-02-23 18:54:26 +053039 <artifactId>onos-yang-serializers-utils</artifactId>
Ray Milkey8b6ae692017-08-24 13:28:56 -070040 <version>2.2-SNAPSHOT</version>
Vidyashree Rama46c833f2017-02-23 18:54:26 +053041 </dependency>
42 <dependency>
43 <groupId>junit</groupId>
44 <artifactId>junit</artifactId>
45 <version>RELEASE</version>
46 </dependency>
47 </dependencies>
48
49 <build>
50 <plugins>
51 <plugin>
52 <groupId>org.onosproject</groupId>
53 <artifactId>onos-yang-compiler-maven-plugin</artifactId>
54 <version>${project.version}</version>
55 <configuration>
56 <yangFilesDir>src/test/resources</yangFilesDir>
sonugupta-huawei0d3443e2017-07-10 11:13:45 +053057 <modelId>xml</modelId>
Vidyashree Rama46c833f2017-02-23 18:54:26 +053058 </configuration>
59 <executions>
60 <execution>
61 <id>default</id>
62 <goals>
63 <goal>yang2java</goal>
64 </goals>
65 </execution>
66 </executions>
67 </plugin>
Thomas Vachuska17abb7f2017-03-02 13:59:46 -080068
69 <!--
70 Cleans up generated test artifacts which get included as a source
71 directory, but which we don't want as part of the bundle.
72 -->
Vidyashree Rama46c833f2017-02-23 18:54:26 +053073 <plugin>
Thomas Vachuska17abb7f2017-03-02 13:59:46 -080074 <groupId>org.apache.maven.plugins</groupId>
75 <artifactId>maven-antrun-plugin</artifactId>
76 <version>1.8</version>
77 <executions>
78 <execution>
79 <phase>prepare-package</phase>
80 <goals>
81 <goal>run</goal>
82 </goals>
83 <configuration>
Gaurav Agrawal0a9640d2017-03-03 19:17:33 +053084 <target>
Bharat saraswal285358c2017-03-16 15:08:09 +053085 <delete includeemptydirs="true">
Vidyashree Rama3c586732017-05-12 19:48:07 +053086 <fileset
87 dir="${project.build.outputDirectory}/org/onosproject/yang/gen"
88 includes="**/*"/>
Thomas Vachuska17abb7f2017-03-02 13:59:46 -080089 </delete>
Bharat saraswal285358c2017-03-16 15:08:09 +053090 <delete includeemptydirs="true">
Vidyashree Rama3c586732017-05-12 19:48:07 +053091 <fileset
92 dir="${project.build.outputDirectory}/yang"
93 includes="**/*"/>
Bharat saraswal285358c2017-03-16 15:08:09 +053094 </delete>
Vidyashree Rama3c586732017-05-12 19:48:07 +053095 <delete includeemptydirs="true"
96 failonerror="false">
97 <fileset
98 dir="${project.build.outputDirectory}/Temp"
99 includes="**/*"/>
Bharat saraswal285358c2017-03-16 15:08:09 +0530100 </delete>
Gaurav Agrawal0a9640d2017-03-03 19:17:33 +0530101 </target>
Thomas Vachuska17abb7f2017-03-02 13:59:46 -0800102 </configuration>
103 </execution>
104 </executions>
Vidyashree Rama46c833f2017-02-23 18:54:26 +0530105 </plugin>
106 </plugins>
107 </build>
108</project>