blob: 08f5ae0ecf2afe1467dc09494434025cc94d9caa [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 Milkeyc3fbe562018-02-09 10:02:10 -080025 <version>2.4</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 Milkeyc3fbe562018-02-09 10:02:10 -080040 <version>2.4</version>
Vidyashree Rama46c833f2017-02-23 18:54:26 +053041 </dependency>
Vidyashree Rama46c833f2017-02-23 18:54:26 +053042 </dependencies>
43
44 <build>
45 <plugins>
46 <plugin>
47 <groupId>org.onosproject</groupId>
48 <artifactId>onos-yang-compiler-maven-plugin</artifactId>
49 <version>${project.version}</version>
50 <configuration>
51 <yangFilesDir>src/test/resources</yangFilesDir>
sonugupta-huawei0d3443e2017-07-10 11:13:45 +053052 <modelId>xml</modelId>
Vidyashree Rama46c833f2017-02-23 18:54:26 +053053 </configuration>
54 <executions>
55 <execution>
56 <id>default</id>
57 <goals>
58 <goal>yang2java</goal>
59 </goals>
60 </execution>
61 </executions>
62 </plugin>
Thomas Vachuska17abb7f2017-03-02 13:59:46 -080063
64 <!--
65 Cleans up generated test artifacts which get included as a source
66 directory, but which we don't want as part of the bundle.
67 -->
Vidyashree Rama46c833f2017-02-23 18:54:26 +053068 <plugin>
Thomas Vachuska17abb7f2017-03-02 13:59:46 -080069 <groupId>org.apache.maven.plugins</groupId>
70 <artifactId>maven-antrun-plugin</artifactId>
71 <version>1.8</version>
72 <executions>
73 <execution>
74 <phase>prepare-package</phase>
75 <goals>
76 <goal>run</goal>
77 </goals>
78 <configuration>
Gaurav Agrawal0a9640d2017-03-03 19:17:33 +053079 <target>
Bharat saraswal285358c2017-03-16 15:08:09 +053080 <delete includeemptydirs="true">
Vidyashree Rama3c586732017-05-12 19:48:07 +053081 <fileset
82 dir="${project.build.outputDirectory}/org/onosproject/yang/gen"
83 includes="**/*"/>
Thomas Vachuska17abb7f2017-03-02 13:59:46 -080084 </delete>
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}/yang"
88 includes="**/*"/>
Bharat saraswal285358c2017-03-16 15:08:09 +053089 </delete>
Vidyashree Rama3c586732017-05-12 19:48:07 +053090 <delete includeemptydirs="true"
91 failonerror="false">
92 <fileset
93 dir="${project.build.outputDirectory}/Temp"
94 includes="**/*"/>
Bharat saraswal285358c2017-03-16 15:08:09 +053095 </delete>
Gaurav Agrawal0a9640d2017-03-03 19:17:33 +053096 </target>
Thomas Vachuska17abb7f2017-03-02 13:59:46 -080097 </configuration>
98 </execution>
99 </executions>
Vidyashree Rama46c833f2017-02-23 18:54:26 +0530100 </plugin>
101 </plugins>
102 </build>
103</project>