blob: 78b64a7618bc8c876dd978b9cfee0c76cb5491ee [file] [log] [blame]
Sean Condon39c2a2d2017-03-21 14:23:19 +00001<?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 User2956e1e2018-02-23 17:42:15 +000025 <version>1.10.13-SNAPSHOT</version>
Sean Condon39c2a2d2017-03-21 14:23:19 +000026 <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 <onos.yang.version>2.1</onos.yang.version>
36 </properties>
37
38 <dependencies>
39
40 <dependency>
41 <groupId>org.onosproject</groupId>
42 <artifactId>onos-yang-model</artifactId>
43 <version>${onos.yang.version}</version>
44 </dependency>
45
46 <dependency>
47 <groupId>org.onosproject</groupId>
48 <artifactId>onos-apps-yang</artifactId>
49 <version>${project.version}</version>
50 </dependency>
51
52 </dependencies>
53
54 <build>
55 <plugins>
56
57 <plugin>
58 <groupId>org.apache.felix</groupId>
59 <artifactId>maven-bundle-plugin</artifactId>
60 <extensions>true</extensions>
61 <configuration>
62 <instructions combine.children="append">
63 <Include-Resource>yang/resources/YangMetaData.ser=target/classes/yang/resources/YangMetaData.ser</Include-Resource>
64 </instructions>
65 </configuration>
66 </plugin>
67
68 <plugin>
69 <groupId>org.onosproject</groupId>
70 <artifactId>onos-yang-compiler-maven-plugin</artifactId>
71 <version>${onos.yang.version}</version>
72 <executions>
73 <execution>
74 <configuration>
75 <classFileDir>target/generated-sources</classFileDir>
76 </configuration>
77 <goals>
78 <goal>yang2java</goal>
79 </goals>
80 </execution>
81 </executions>
82 </plugin>
83
84 <plugin>
85 <groupId>org.onosproject</groupId>
86 <artifactId>onos-maven-plugin</artifactId>
87 </plugin>
88
89 <plugin>
90 <groupId>org.codehaus.mojo</groupId>
91 <artifactId>build-helper-maven-plugin</artifactId>
92 <version>3.0.0</version>
93 <executions>
94 <execution>
95 <id>add-source</id>
96 <phase>generate-sources</phase>
97 <goals>
98 <goal>add-source</goal>
99 </goals>
100 <configuration>
101 <sources>
102 <source>${project.build.directory}/generated-sources</source>
103 </sources>
104 </configuration>
105 </execution>
106 </executions>
107 </plugin>
108
109 <plugin>
110 <groupId>org.apache.maven.plugins</groupId>
111 <artifactId>maven-clean-plugin</artifactId>
112 <version>3.0.0</version>
113 <executions>
114 <execution>
115 <id>onos-yang-plugin-workaround</id>
116 <!-- yang plugin cannot handle non-clean compilation -->
117 <phase>initialize</phase>
118 <goals>
119 <goal>clean</goal>
120 </goals>
121 <configuration>
122 <excludeDefaultDirectories>true</excludeDefaultDirectories>
123 <filesets>
124 <fileset>
125 <directory>target/generated-sources</directory>
126 </fileset>
127 </filesets>
128 </configuration>
129 </execution>
130 </executions>
131 </plugin>
132
133
134 </plugins>
135
136 <pluginManagement>
137 <plugins>
138 <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
139 <plugin>
140 <groupId>org.eclipse.m2e</groupId>
141 <artifactId>lifecycle-mapping</artifactId>
142 <version>1.0.0</version>
143 <configuration>
144 <lifecycleMappingMetadata>
145 <pluginExecutions>
146 <pluginExecution>
147 <pluginExecutionFilter>
148 <groupId>
149 org.apache.maven.plugins
150 </groupId>
151 <artifactId>
152 maven-clean-plugin
153 </artifactId>
154 <versionRange>
155 [3.0.0,)
156 </versionRange>
157 <goals>
158 <goal>clean</goal>
159 </goals>
160 </pluginExecutionFilter>
161 <action>
162 <ignore></ignore>
163 </action>
164 </pluginExecution>
165 </pluginExecutions>
166 </lifecycleMappingMetadata>
167 </configuration>
168 </plugin>
169 </plugins>
170 </pluginManagement>
171 </build>
172
173</project>