blob: 4ca47b1bc5a6a204a90f926f8350613bf45e83ef [file] [log] [blame]
Yuta HIGUCHI1b151c62017-08-16 23:27:52 -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 Milkeydc48fb22017-09-26 14:42:24 -070025 <version>1.12.0-SNAPSHOT</version>
Yuta HIGUCHI1b151c62017-08-16 23:27:52 -070026 <relativePath>../pom.xml</relativePath>
27 </parent>
28
29 <artifactId>onos-models-l3vpn</artifactId>
30 <packaging>bundle</packaging>
31
32 <properties>
33 <onos.app.name>org.onosproject.models.l3vpn</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
119
120 </plugins>
121
122 <pluginManagement>
123 <plugins>
124 <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
125 <plugin>
126 <groupId>org.eclipse.m2e</groupId>
127 <artifactId>lifecycle-mapping</artifactId>
128 <version>1.0.0</version>
129 <configuration>
130 <lifecycleMappingMetadata>
131 <pluginExecutions>
132 <pluginExecution>
133 <pluginExecutionFilter>
134 <groupId>
135 org.apache.maven.plugins
136 </groupId>
137 <artifactId>
138 maven-clean-plugin
139 </artifactId>
140 <versionRange>
141 [3.0.0,)
142 </versionRange>
143 <goals>
144 <goal>clean</goal>
145 </goals>
146 </pluginExecutionFilter>
147 <action>
148 <ignore></ignore>
149 </action>
150 </pluginExecution>
151 </pluginExecutions>
152 </lifecycleMappingMetadata>
153 </configuration>
154 </plugin>
155 </plugins>
156 </pluginManagement>
157 </build>
158
159</project>