blob: 6cecc56fe9043781e820968bb591ab5d5efd2ce1 [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>
25 <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>
39 <artifactId>onos-yang-runtime</artifactId>
40 <version>1.12-SNAPSHOT</version>
41 </dependency>
42 <dependency>
43 <groupId>org.apache.servicemix.bundles</groupId>
44 <artifactId>org.apache.servicemix.bundles.dom4j</artifactId>
45 <version>1.6.1_5</version>
46 </dependency>
47 <dependency>
48 <groupId>org.onosproject</groupId>
49 <artifactId>onos-yang-serializers-utils</artifactId>
50 <version>1.12-SNAPSHOT</version>
51 </dependency>
52 <dependency>
53 <groupId>junit</groupId>
54 <artifactId>junit</artifactId>
55 <version>RELEASE</version>
56 </dependency>
57 </dependencies>
58
59 <build>
60 <plugins>
61 <plugin>
62 <groupId>org.onosproject</groupId>
63 <artifactId>onos-yang-compiler-maven-plugin</artifactId>
64 <version>${project.version}</version>
65 <configuration>
66 <yangFilesDir>src/test/resources</yangFilesDir>
67 </configuration>
68 <executions>
69 <execution>
70 <id>default</id>
71 <goals>
72 <goal>yang2java</goal>
73 </goals>
74 </execution>
75 </executions>
76 </plugin>
Thomas Vachuska17abb7f2017-03-02 13:59:46 -080077
78 <!--
79 Cleans up generated test artifacts which get included as a source
80 directory, but which we don't want as part of the bundle.
81 -->
Vidyashree Rama46c833f2017-02-23 18:54:26 +053082 <plugin>
Thomas Vachuska17abb7f2017-03-02 13:59:46 -080083 <groupId>org.apache.maven.plugins</groupId>
84 <artifactId>maven-antrun-plugin</artifactId>
85 <version>1.8</version>
86 <executions>
87 <execution>
88 <phase>prepare-package</phase>
89 <goals>
90 <goal>run</goal>
91 </goals>
92 <configuration>
93 <tasks>
94 <delete>
95 <fileset dir="${project.build.outputDirectory}/org/onosproject/yang/gen" includes="**/*"/>
96 </delete>
97 </tasks>
98 </configuration>
99 </execution>
100 </executions>
Vidyashree Rama46c833f2017-02-23 18:54:26 +0530101 </plugin>
102 </plugins>
103 </build>
104</project>