blob: d4a280ed4100147030c1667b927eafc03b3b1b46 [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 Userd22dccc2017-12-12 21:18:01 +000025 <version>1.13.0-b7</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
126
127 </plugins>
128
129 <pluginManagement>
130 <plugins>
131 <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
132 <plugin>
133 <groupId>org.eclipse.m2e</groupId>
134 <artifactId>lifecycle-mapping</artifactId>
135 <version>1.0.0</version>
136 <configuration>
137 <lifecycleMappingMetadata>
138 <pluginExecutions>
139 <pluginExecution>
140 <pluginExecutionFilter>
141 <groupId>
142 org.apache.maven.plugins
143 </groupId>
144 <artifactId>
145 maven-clean-plugin
146 </artifactId>
147 <versionRange>
148 [3.0.0,)
149 </versionRange>
150 <goals>
151 <goal>clean</goal>
152 </goals>
153 </pluginExecutionFilter>
154 <action>
155 <ignore></ignore>
156 </action>
157 </pluginExecution>
158 </pluginExecutions>
159 </lifecycleMappingMetadata>
160 </configuration>
161 </plugin>
162 </plugins>
163 </pluginManagement>
164 </build>
165
166</project>