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