blob: ed399a981080f8c1cf0283c978da7f531312b0d9 [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>
ONOS Jenkins User877cab22018-05-16 01:23:50 +000025 <version>2.5-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>
Vidyashree Rama46c833f2017-02-23 18:54:26 +053035 </dependency>
36 <dependency>
37 <groupId>org.onosproject</groupId>
Vidyashree Rama46c833f2017-02-23 18:54:26 +053038 <artifactId>onos-yang-serializers-utils</artifactId>
Yuta HIGUCHI1bc3c232018-05-11 11:36:00 -070039 <version>${project.version}</version>
Vidyashree Rama46c833f2017-02-23 18:54:26 +053040 </dependency>
Vidyashree Rama46c833f2017-02-23 18:54:26 +053041 </dependencies>
42
43 <build>
44 <plugins>
45 <plugin>
46 <groupId>org.onosproject</groupId>
47 <artifactId>onos-yang-compiler-maven-plugin</artifactId>
48 <version>${project.version}</version>
49 <configuration>
50 <yangFilesDir>src/test/resources</yangFilesDir>
sonugupta-huawei0d3443e2017-07-10 11:13:45 +053051 <modelId>xml</modelId>
Vidyashree Rama46c833f2017-02-23 18:54:26 +053052 </configuration>
53 <executions>
54 <execution>
55 <id>default</id>
56 <goals>
57 <goal>yang2java</goal>
58 </goals>
59 </execution>
60 </executions>
61 </plugin>
Thomas Vachuska17abb7f2017-03-02 13:59:46 -080062
63 <!--
64 Cleans up generated test artifacts which get included as a source
65 directory, but which we don't want as part of the bundle.
66 -->
Vidyashree Rama46c833f2017-02-23 18:54:26 +053067 <plugin>
Thomas Vachuska17abb7f2017-03-02 13:59:46 -080068 <groupId>org.apache.maven.plugins</groupId>
69 <artifactId>maven-antrun-plugin</artifactId>
70 <version>1.8</version>
71 <executions>
72 <execution>
73 <phase>prepare-package</phase>
74 <goals>
75 <goal>run</goal>
76 </goals>
77 <configuration>
Gaurav Agrawal0a9640d2017-03-03 19:17:33 +053078 <target>
Bharat saraswal285358c2017-03-16 15:08:09 +053079 <delete includeemptydirs="true">
Vidyashree Rama3c586732017-05-12 19:48:07 +053080 <fileset
81 dir="${project.build.outputDirectory}/org/onosproject/yang/gen"
82 includes="**/*"/>
Thomas Vachuska17abb7f2017-03-02 13:59:46 -080083 </delete>
Bharat saraswal285358c2017-03-16 15:08:09 +053084 <delete includeemptydirs="true">
Vidyashree Rama3c586732017-05-12 19:48:07 +053085 <fileset
86 dir="${project.build.outputDirectory}/yang"
87 includes="**/*"/>
Bharat saraswal285358c2017-03-16 15:08:09 +053088 </delete>
Vidyashree Rama3c586732017-05-12 19:48:07 +053089 <delete includeemptydirs="true"
90 failonerror="false">
91 <fileset
92 dir="${project.build.outputDirectory}/Temp"
93 includes="**/*"/>
Bharat saraswal285358c2017-03-16 15:08:09 +053094 </delete>
Gaurav Agrawal0a9640d2017-03-03 19:17:33 +053095 </target>
Thomas Vachuska17abb7f2017-03-02 13:59:46 -080096 </configuration>
97 </execution>
98 </executions>
Vidyashree Rama46c833f2017-02-23 18:54:26 +053099 </plugin>
100 </plugins>
101 </build>
102</project>