blob: cf1f60c0025cb0abb77304325c6949691e6f7c03 [file] [log] [blame]
Yuta HIGUCHI6160eb42017-10-06 14:56:18 -07001<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 ~ Copyright 2017-present Open Networking Foundation
4 ~
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 <groupId>org.onosproject</groupId>
24 <artifactId>onos-models</artifactId>
ONOS Jenkins User4e5f2d62018-08-13 23:16:37 +000025 <version>1.14.0-SNAPSHOT</version>
Yuta HIGUCHI6160eb42017-10-06 14:56:18 -070026 <relativePath>../pom.xml</relativePath>
27 </parent>
28
29 <artifactId>onos-models-common</artifactId>
30 <packaging>bundle</packaging>
31
32 <properties>
33 <onos.app.name>org.onosproject.models.common</onos.app.name>
34 </properties>
35
36 <dependencies>
37
38 <dependency>
39 <groupId>org.onosproject</groupId>
40 <artifactId>onos-yang-model</artifactId>
41 </dependency>
42
43 <dependency>
44 <groupId>org.onosproject</groupId>
45 <artifactId>onos-apps-yang</artifactId>
46 <version>${project.version}</version>
47 </dependency>
48
49 </dependencies>
50
51 <build>
52 <plugins>
53
54 <plugin>
55 <groupId>org.apache.felix</groupId>
56 <artifactId>maven-bundle-plugin</artifactId>
57 <extensions>true</extensions>
58 <configuration>
59 <instructions combine.children="append">
60 <Include-Resource>yang/resources/YangMetaData.ser=target/classes/yang/resources/YangMetaData.ser</Include-Resource>
61 </instructions>
62 </configuration>
63 </plugin>
64
65 <plugin>
66 <groupId>org.onosproject</groupId>
67 <artifactId>onos-yang-compiler-maven-plugin</artifactId>
68 </plugin>
69
70 <plugin>
71 <groupId>org.onosproject</groupId>
72 <artifactId>onos-maven-plugin</artifactId>
73 </plugin>
74
75 <plugin>
76 <groupId>org.codehaus.mojo</groupId>
77 <artifactId>build-helper-maven-plugin</artifactId>
78 <version>3.0.0</version>
79 <executions>
80 <execution>
81 <id>add-source</id>
82 <phase>generate-sources</phase>
83 <goals>
84 <goal>add-source</goal>
85 </goals>
86 <configuration>
87 <sources>
88 <source>${project.build.directory}/generated-sources</source>
89 </sources>
90 </configuration>
91 </execution>
92 </executions>
93 </plugin>
94
95 <plugin>
96 <groupId>org.apache.maven.plugins</groupId>
97 <artifactId>maven-clean-plugin</artifactId>
98 <version>3.0.0</version>
99 <executions>
100 <execution>
101 <id>onos-yang-plugin-workaround</id>
102 <!-- yang plugin cannot handle non-clean compilation -->
103 <phase>initialize</phase>
104 <goals>
105 <goal>clean</goal>
106 </goals>
107 <configuration>
108 <excludeDefaultDirectories>true</excludeDefaultDirectories>
109 <filesets>
110 <fileset>
111 <directory>target/generated-sources</directory>
112 </fileset>
113 </filesets>
114 </configuration>
115 </execution>
116 </executions>
117 </plugin>
118
Yuta HIGUCHI488a94c2018-01-26 17:24:09 -0800119 <!-- FIXME: YANG tool generates problematic code -->
120 <plugin>
121 <groupId>org.apache.maven.plugins</groupId>
122 <artifactId>maven-compiler-plugin</artifactId>
123 <configuration>
124 <compilerArgs>
125 <arg>-XepDisableAllChecks</arg>
126 <arg>-Xep:BetaApi:OFF</arg>
127 </compilerArgs>
128 </configuration>
129 </plugin>
Yuta HIGUCHI6160eb42017-10-06 14:56:18 -0700130
131 </plugins>
132
133 <pluginManagement>
134 <plugins>
135 <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
136 <plugin>
137 <groupId>org.eclipse.m2e</groupId>
138 <artifactId>lifecycle-mapping</artifactId>
139 <version>1.0.0</version>
140 <configuration>
141 <lifecycleMappingMetadata>
142 <pluginExecutions>
143 <pluginExecution>
144 <pluginExecutionFilter>
145 <groupId>
146 org.apache.maven.plugins
147 </groupId>
148 <artifactId>
149 maven-clean-plugin
150 </artifactId>
151 <versionRange>
152 [3.0.0,)
153 </versionRange>
154 <goals>
155 <goal>clean</goal>
156 </goals>
157 </pluginExecutionFilter>
158 <action>
159 <ignore></ignore>
160 </action>
161 </pluginExecution>
162 </pluginExecutions>
163 </lifecycleMappingMetadata>
164 </configuration>
165 </plugin>
166 </plugins>
167 </pluginManagement>
168 </build>
169
170</project>