blob: 2e1939501b91bb5a34fde4582a26d61fbdfcecde [file] [log] [blame]
Vidyashree Rama46c833f2017-02-23 18:54:26 +05301<!--
2 ~ Copyright 2017-present Open Networking Laboratory
3 ~
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 Milkey88fb9952017-05-09 15:50:56 -070025 <version>1.12-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 Milkey88fb9952017-05-09 15:50:56 -070040 <version>1.12-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>
57 </configuration>
58 <executions>
59 <execution>
60 <id>default</id>
61 <goals>
62 <goal>yang2java</goal>
63 </goals>
64 </execution>
65 </executions>
66 </plugin>
Thomas Vachuska17abb7f2017-03-02 13:59:46 -080067
68 <!--
69 Cleans up generated test artifacts which get included as a source
70 directory, but which we don't want as part of the bundle.
71 -->
Vidyashree Rama46c833f2017-02-23 18:54:26 +053072 <plugin>
Thomas Vachuska17abb7f2017-03-02 13:59:46 -080073 <groupId>org.apache.maven.plugins</groupId>
74 <artifactId>maven-antrun-plugin</artifactId>
75 <version>1.8</version>
76 <executions>
77 <execution>
78 <phase>prepare-package</phase>
79 <goals>
80 <goal>run</goal>
81 </goals>
82 <configuration>
Gaurav Agrawal0a9640d2017-03-03 19:17:33 +053083 <target>
Bharat saraswal285358c2017-03-16 15:08:09 +053084 <delete includeemptydirs="true">
Gaurav Agrawal0a9640d2017-03-03 19:17:33 +053085 <fileset dir="${project.build.outputDirectory}/org/onosproject/yang/gen" includes="**/*"/>
Thomas Vachuska17abb7f2017-03-02 13:59:46 -080086 </delete>
Bharat saraswal285358c2017-03-16 15:08:09 +053087 <delete includeemptydirs="true">
88 <fileset dir="${project.build.outputDirectory}/yang" includes="**/*"/>
89 </delete>
90 <delete includeemptydirs="true" failonerror="false">
91 <fileset dir="${project.build.outputDirectory}/Temp" includes="**/*"/>
92 </delete>
Gaurav Agrawal0a9640d2017-03-03 19:17:33 +053093 </target>
Thomas Vachuska17abb7f2017-03-02 13:59:46 -080094 </configuration>
95 </execution>
96 </executions>
Vidyashree Rama46c833f2017-02-23 18:54:26 +053097 </plugin>
98 </plugins>
99 </build>
100</project>