blob: 7568d31edd66a78ac5ce42009e3465f02acb8a6a [file] [log] [blame]
Jonathan Hart097c8f52016-06-09 18:08:11 -07001<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 ~ Copyright 2016-present Open Networking Laboratory
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
18<project xmlns="http://maven.apache.org/POM/4.0.0"
19 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
20 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
21 <parent>
22 <artifactId>onos-incubator</artifactId>
23 <groupId>org.onosproject</groupId>
Brian O'Connorbfc02ec2016-09-16 00:42:37 -070024 <version>1.8.0-SNAPSHOT</version>
Jonathan Hart097c8f52016-06-09 18:08:11 -070025 </parent>
26 <modelVersion>4.0.0</modelVersion>
27
28 <artifactId>onos-incubator-protobuf-nb</artifactId>
29 <packaging>bundle</packaging>
30
31 <properties>
32 <protobuf.version>3.0.0</protobuf.version>
Yuta HIGUCHI179af1e2016-08-23 15:36:44 -070033 <grpc.version>1.0.0</grpc.version>
Jonathan Hart097c8f52016-06-09 18:08:11 -070034 </properties>
35
36 <dependencies>
37 <dependency>
38 <groupId>io.grpc</groupId>
39 <artifactId>grpc-core</artifactId>
40 <version>${grpc.version}</version>
41 </dependency>
42 <dependency>
43 <groupId>io.grpc</groupId>
44 <artifactId>grpc-protobuf</artifactId>
45 <version>${grpc.version}</version>
46 </dependency>
47 <dependency>
48 <groupId>io.grpc</groupId>
49 <artifactId>grpc-stub</artifactId>
50 <version>${grpc.version}</version>
51 </dependency>
52 </dependencies>
53
54 <build>
55 <extensions>
56 <extension>
57 <groupId>kr.motd.maven</groupId>
58 <artifactId>os-maven-plugin</artifactId>
59 <version>1.4.1.Final</version>
60 </extension>
61 </extensions>
62
63 <pluginManagement>
64 <plugins>
65 <plugin>
66 <groupId>org.apache.karaf.tooling</groupId>
67 <artifactId>karaf-maven-plugin</artifactId>
68 <version>3.0.5</version>
69 <extensions>true</extensions>
70 </plugin>
71 </plugins>
72 </pluginManagement>
73
74 <plugins>
75 <!-- TODO This is included to suppress the generation of javadocs for
76 this package. There is a problem when we try to package the
77 auto-generated code's javadoc into a jar. -->
78 <plugin>
79 <groupId>org.apache.maven.plugins</groupId>
80 <artifactId>maven-javadoc-plugin</artifactId>
81 <configuration>
82 <sourcepath>${basedir}/src/main/java/</sourcepath>
83 <excludePackageNames>org.onosproject.grpc.net.mcast</excludePackageNames>
84 </configuration>
85 </plugin>
86
87 <plugin>
88 <groupId>org.xolstice.maven.plugins</groupId>
89 <artifactId>protobuf-maven-plugin</artifactId>
90 <version>0.5.0</version>
91 <configuration>
92 <!-- The version of protoc must match protobuf-java. If you don't
93 depend on protobuf-java directly, you will be transitively depending on the
94 protobuf-java version that grpc depends on. -->
95 <protocArtifact>com.google.protobuf:protoc:${protobuf.version}:exe:${os.detected.classifier}</protocArtifact>
96 <pluginId>grpc-java</pluginId>
97 <pluginArtifact>io.grpc:protoc-gen-grpc-java:${grpc.version}:exe:${os.detected.classifier}</pluginArtifact>
98 </configuration>
99 <executions>
100 <execution>
101 <goals>
102 <goal>compile</goal>
103 <goal>compile-custom</goal>
104 </goals>
105 </execution>
106 </executions>
107 </plugin>
108
109 <plugin>
110 <groupId>org.codehaus.mojo</groupId>
111 <artifactId>build-helper-maven-plugin</artifactId>
112 <version>1.11</version>
113 <executions>
114 <execution>
115 <id>add-source</id>
116 <phase>generate-sources</phase>
117 <goals>
118 <goal>add-source</goal>
119 </goals>
120 <configuration>
121 <sources>
122 <source>${project.build.directory}/generated-sources/protobuf/java</source>
123 <source>${project.build.directory}/generated-sources/protobuf/grpc-java</source>
124 </sources>
125 </configuration>
126 </execution>
127 </executions>
128 </plugin>
129 </plugins>
130 </build>
131
132</project>