blob: 2e768d91341b360484a4a24d23e13f17567c116b [file] [log] [blame]
Thomas Vachuska8ca75a22017-08-24 16:12:59 -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>
Ray Milkeya7b346a2017-12-01 13:58:21 -080025 <version>1.12.0-SNAPSHOT</version>
Thomas Vachuska8ca75a22017-08-24 16:12:59 -070026 <relativePath>../pom.xml</relativePath>
27 </parent>
28
29 <artifactId>onos-models-openconfig</artifactId>
30 <packaging>bundle</packaging>
31 <description>OpenConfig YANG models</description>
32
33 <properties>
34 <onos.app.name>org.onosproject.models.openconfig</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>
46 <artifactId>onos-apps-yang</artifactId>
47 <version>${project.version}</version>
48 </dependency>
49
50 </dependencies>
51
52 <build>
53 <plugins>
54
55 <plugin>
56 <groupId>org.apache.felix</groupId>
57 <artifactId>maven-bundle-plugin</artifactId>
58 <extensions>true</extensions>
59 <configuration>
60 <instructions combine.children="append">
61 <Include-Resource>yang/resources/YangMetaData.ser=target/classes/yang/resources/YangMetaData.ser</Include-Resource>
62 </instructions>
63 </configuration>
64 </plugin>
65
66 <plugin>
67 <groupId>org.onosproject</groupId>
68 <artifactId>onos-yang-compiler-maven-plugin</artifactId>
69 </plugin>
70
71 <plugin>
72 <groupId>org.onosproject</groupId>
73 <artifactId>onos-maven-plugin</artifactId>
74 </plugin>
75
76 <plugin>
77 <groupId>org.codehaus.mojo</groupId>
78 <artifactId>build-helper-maven-plugin</artifactId>
79 <version>3.0.0</version>
80 <executions>
81 <execution>
82 <id>add-source</id>
83 <phase>generate-sources</phase>
84 <goals>
85 <goal>add-source</goal>
86 </goals>
87 <configuration>
88 <sources>
89 <source>${project.build.directory}/generated-sources</source>
90 </sources>
91 </configuration>
92 </execution>
93 </executions>
94 </plugin>
95
96 <plugin>
97 <groupId>org.apache.maven.plugins</groupId>
98 <artifactId>maven-clean-plugin</artifactId>
99 <version>3.0.0</version>
100 <executions>
101 <execution>
102 <id>onos-yang-plugin-workaround</id>
103 <!-- yang plugin cannot handle non-clean compilation -->
104 <phase>initialize</phase>
105 <goals>
106 <goal>clean</goal>
107 </goals>
108 <configuration>
109 <excludeDefaultDirectories>true</excludeDefaultDirectories>
110 <filesets>
111 <fileset>
112 <directory>target/generated-sources</directory>
113 </fileset>
114 </filesets>
115 </configuration>
116 </execution>
117 </executions>
118 </plugin>
119
120
121 </plugins>
122
123 <pluginManagement>
124 <plugins>
125 <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
126 <plugin>
127 <groupId>org.eclipse.m2e</groupId>
128 <artifactId>lifecycle-mapping</artifactId>
129 <version>1.0.0</version>
130 <configuration>
131 <lifecycleMappingMetadata>
132 <pluginExecutions>
133 <pluginExecution>
134 <pluginExecutionFilter>
135 <groupId>
136 org.apache.maven.plugins
137 </groupId>
138 <artifactId>
139 maven-clean-plugin
140 </artifactId>
141 <versionRange>
142 [3.0.0,)
143 </versionRange>
144 <goals>
145 <goal>clean</goal>
146 </goals>
147 </pluginExecutionFilter>
148 <action>
149 <ignore></ignore>
150 </action>
151 </pluginExecution>
152 </pluginExecutions>
153 </lifecycleMappingMetadata>
154 </configuration>
155 </plugin>
156 </plugins>
157 </pluginManagement>
158 </build>
159
160</project>