blob: d88e862677aeb24970ad2d7f1d561245551d7396 [file] [log] [blame]
sonu guptaeff184b2016-11-24 12:43:49 +05301<?xml version="1.0" encoding="UTF-8"?>
2<!--
Brian O'Connora09fe5b2017-08-03 21:12:30 -07003 ~ Copyright 2016-present Open Networking Foundation
sonu guptaeff184b2016-11-24 12:43:49 +05304 ~
5 ~ Licensed under the Apache License, Version 2.0 (the "License");
6 ~ you may not use this file except in compliance with the License.
7 ~ You may obtain a copy of the License at
8 ~
9 ~ http://www.apache.org/licenses/LICENSE-2.0
10 ~
11 ~ Unless required by applicable law or agreed to in writing, software
12 ~ distributed under the License is distributed on an "AS IS" BASIS,
13 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 ~ See the License for the specific language governing permissions and
15 ~ limitations under the License.
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 <artifactId>onos-yms</artifactId>
24 <groupId>org.onosproject</groupId>
ONOS Jenkins User4e5f2d62018-08-13 23:16:37 +000025 <version>1.14.0-SNAPSHOT</version>
sonu guptaeff184b2016-11-24 12:43:49 +053026 </parent>
27
Yuta HIGUCHI78472272018-05-03 17:08:16 -070028 <artifactId>onos-apps-yms-ut</artifactId>
sonu guptaeff184b2016-11-24 12:43:49 +053029 <packaging>bundle</packaging>
30
31 <url>http://onosproject.org</url>
32
33 <description>YANG management system unit test cases</description>
34
35 <dependencies>
36 <dependency>
37 <groupId>org.onosproject</groupId>
Yuta HIGUCHI78472272018-05-03 17:08:16 -070038 <artifactId>onos-apps-yms-api</artifactId>
sonu guptaeff184b2016-11-24 12:43:49 +053039 <version>${project.version}</version>
40 </dependency>
41 <dependency>
42 <groupId>org.onosproject</groupId>
Yuta HIGUCHI78472272018-05-03 17:08:16 -070043 <artifactId>onos-apps-yms</artifactId>
sonu guptaeff184b2016-11-24 12:43:49 +053044 <version>${project.version}</version>
45 </dependency>
46 <dependency>
47 <groupId>org.onosproject</groupId>
48 <artifactId>onlab-junit</artifactId>
49 <scope>test</scope>
50 </dependency>
51 <dependency>
52 <groupId>org.easymock</groupId>
53 <artifactId>easymock</artifactId>
54 <scope>test</scope>
55 </dependency>
56 <dependency>
57 <groupId>org.onosproject</groupId>
58 <artifactId>onlab-osgi</artifactId>
59 <scope>test</scope>
60 </dependency>
61 <!-- https://mvnrepository.com/artifact/org.springframework.osgi/spring-osgi-mock -->
62 <dependency>
63 <groupId>org.springframework.osgi</groupId>
64 <artifactId>spring-osgi-mock</artifactId>
65 <version>1.2.1</version>
66 </dependency>
67
68 </dependencies>
69
70 <build>
71 <plugins>
72 <plugin>
73 <groupId>org.apache.felix</groupId>
74 <artifactId>maven-bundle-plugin</artifactId>
75 <version>3.2.0</version>
76 <extensions>true</extensions>
77 </plugin>
78 <plugin>
79 <groupId>org.onosproject</groupId>
80 <artifactId>onos-yang-maven-plugin</artifactId>
Bharat saraswal1b0a39a2016-12-16 16:29:02 +053081 <version>1.11</version>
sonu guptaeff184b2016-11-24 12:43:49 +053082 <configuration>
83 <yangFilesDir>src/test/resources/</yangFilesDir>
84 </configuration>
85 <executions>
86 <execution>
87 <goals>
88 <goal>yang2java</goal>
89 </goals>
90 </execution>
91 </executions>
92 </plugin>
Yuta HIGUCHIe6d3adf2017-05-22 16:31:58 -070093
94 <plugin>
95 <groupId>org.apache.maven.plugins</groupId>
96 <artifactId>maven-clean-plugin</artifactId>
97 <version>3.0.0</version>
98 <executions>
99 <execution>
100 <id>onos-yang-plugin-workaround</id>
101 <!-- yang plugin cannot handle non-clean compilation -->
102 <phase>initialize</phase>
103 <goals>
104 <goal>clean</goal>
105 </goals>
106 <configuration>
107 <excludeDefaultDirectories>true</excludeDefaultDirectories>
108 <filesets>
109 <fileset>
110 <directory>target/generated-sources</directory>
111 </fileset>
112 </filesets>
113 </configuration>
114 </execution>
115 </executions>
116 </plugin>
117
Yuta HIGUCHI488a94c2018-01-26 17:24:09 -0800118 <plugin>
119 <groupId>org.apache.maven.plugins</groupId>
120 <artifactId>maven-compiler-plugin</artifactId>
121 <configuration>
122 <compilerArgs>
123 <arg>-XepDisableAllChecks</arg>
124 <arg>-Xep:BetaApi:OFF</arg>
125 </compilerArgs>
126 </configuration>
127 <executions>
128 <execution>
129 <phase>compile</phase>
130 <goals>
131 <goal>compile</goal>
132 </goals>
133 <configuration>
134 <compilerArgs>
135 <arg>-XepDisableAllChecks</arg>
136 <arg>-Xep:BetaApi:OFF</arg>
137 </compilerArgs>
138 </configuration>
139 </execution>
140 </executions>
141 </plugin>
142
sonu guptaeff184b2016-11-24 12:43:49 +0530143 </plugins>
144 </build>
145</project>