blob: 4fae0dffd9a793e57962d29205a649e38924d455 [file] [log] [blame]
Yuta HIGUCHIa0557a22017-01-11 16:22:53 -08001<?xml version="1.0" encoding="UTF-8"?>
2<!--
Brian O'Connora09fe5b2017-08-03 21:12:30 -07003 ~ Copyright 2016-present Open Networking Foundation
Yuta HIGUCHIa0557a22017-01-11 16:22:53 -08004 ~
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" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
18 <modelVersion>4.0.0</modelVersion>
19 <parent>
20 <artifactId>onos-dependencies</artifactId>
21 <groupId>org.onosproject</groupId>
Ray Milkey9a2b1fa2017-12-22 13:26:15 -080022 <version>1.11.2-SNAPSHOT</version>
Yuta HIGUCHIa0557a22017-01-11 16:22:53 -080023 <relativePath>../../lib/pom.xml</relativePath>
24 </parent>
25
26 <artifactId>onos-incubator-protobuf-dependencies</artifactId>
27 <packaging>pom</packaging>
28
29 <description>ProtoBuf dependecies</description>
30 <url>http://onosproject.org</url>
31
32 <properties>
Yuta HIGUCHI90492522017-04-21 09:42:48 -070033 <protobuf.version>3.2.0</protobuf.version>
Yuta HIGUCHIa0557a22017-01-11 16:22:53 -080034 </properties>
35
36 <dependencies>
37
38 <dependency>
39 <groupId>com.google.protobuf</groupId>
40 <artifactId>protobuf-java</artifactId>
41 <version>${protobuf.version}</version>
42 </dependency>
43
44 </dependencies>
45
46 <build>
47 <extensions>
48 <extension>
49 <groupId>kr.motd.maven</groupId>
50 <artifactId>os-maven-plugin</artifactId>
51 <version>1.4.1.Final</version>
52 </extension>
53 </extensions>
54
55 <pluginManagement>
56 <plugins>
57 <plugin>
58 <groupId>org.apache.karaf.tooling</groupId>
59 <artifactId>karaf-maven-plugin</artifactId>
Jon Hallb84df5d2017-01-31 11:19:48 -080060 <version>3.0.8</version>
Yuta HIGUCHIa0557a22017-01-11 16:22:53 -080061 <extensions>true</extensions>
62 </plugin>
63
64 <plugin>
65 <groupId>org.xolstice.maven.plugins</groupId>
66 <artifactId>protobuf-maven-plugin</artifactId>
67 <version>0.5.0</version>
68 <configuration>
69 <protocArtifact>com.google.protobuf:protoc:${protobuf.version}:exe:${os.detected.classifier}</protocArtifact>
70 </configuration>
71 <executions>
72 <execution>
73 <goals>
74 <goal>compile</goal>
75 </goals>
76 </execution>
77 </executions>
78 </plugin>
79
80 <plugin>
81 <groupId>org.apache.felix</groupId>
82 <artifactId>maven-scr-plugin</artifactId>
83 <executions>
84 <execution>
85 <id>generate-scr-srcdescriptor</id>
86 <goals>
87 <goal>scr</goal>
88 </goals>
89 </execution>
90 </executions>
91 <configuration>
92 <!-- avoid searching into wrong source path -->
93 <scanClasses>true</scanClasses>
94 <supportedProjectTypes>
95 <supportedProjectType>bundle</supportedProjectType>
96 <supportedProjectType>war</supportedProjectType>
97 </supportedProjectTypes>
98 </configuration>
99 </plugin>
100
101 <plugin>
102 <groupId>org.codehaus.mojo</groupId>
103 <artifactId>build-helper-maven-plugin</artifactId>
104 <version>1.12</version>
105 <executions>
106 <execution>
107 <id>add-source</id>
108 <phase>generate-sources</phase>
109 <goals>
110 <goal>add-source</goal>
111 </goals>
112 <configuration>
113 <sources>
114 <source>${project.build.directory}/generated-sources/protobuf/java</source>
115 </sources>
116 </configuration>
117 </execution>
118 </executions>
119 </plugin>
120 </plugins>
121
122 </pluginManagement>
123
124 </build>
125
126</project>