blob: 82ba8432b040286524b6e9c0136da7fec2937e3f [file] [log] [blame]
HIGUCHI Yuta3fce2422016-05-11 18:41:41 -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<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-incubator</artifactId>
21 <groupId>org.onosproject</groupId>
Ray Milkey8b8b30c2016-11-22 17:08:32 -080022 <version>1.8.0-rc1</version>
HIGUCHI Yuta3fce2422016-05-11 18:41:41 -070023 </parent>
24
25 <artifactId>onos-incubator-protobuf</artifactId>
26 <packaging>bundle</packaging>
27
28 <description>ONOS ProtoBuf models</description>
29 <url>http://onosproject.org</url>
30
31 <properties>
32 <onos.app.name>org.onosproject.incubator.protobuf</onos.app.name>
Yuta HIGUCHI9efba1e2016-07-09 11:07:13 -070033 <onos.app.title>ONOS Protocol Buffers models</onos.app.title>
Yuta HIGUCHI9efba1e2016-07-09 11:07:13 -070034 <protobuf.version>3.0.0</protobuf.version>
HIGUCHI Yuta3fce2422016-05-11 18:41:41 -070035 </properties>
36
37 <dependencies>
38
39 <dependency>
40 <groupId>com.google.protobuf</groupId>
41 <artifactId>protobuf-java</artifactId>
42 <version>${protobuf.version}</version>
43 </dependency>
44
45 <dependency>
46 <groupId>org.apache.felix</groupId>
47 <artifactId>org.apache.felix.scr.annotations</artifactId>
48 <scope>provided</scope>
49 </dependency>
50
51 </dependencies>
52
53 <build>
54 <extensions>
55 <extension>
56 <groupId>kr.motd.maven</groupId>
57 <artifactId>os-maven-plugin</artifactId>
58 <version>1.4.1.Final</version>
59 </extension>
60 </extensions>
61
62 <pluginManagement>
63 <plugins>
64 <plugin>
65 <groupId>org.apache.karaf.tooling</groupId>
66 <artifactId>karaf-maven-plugin</artifactId>
67 <version>3.0.5</version>
68 <extensions>true</extensions>
69 </plugin>
70 </plugins>
71 </pluginManagement>
72
73 <plugins>
74 <!-- TODO This is included to suppress the generation of javadocs for
75 this package. There is a problem when we try to package the
76 auto-generated code's javadoc into a jar. -->
77 <plugin>
78 <groupId>org.apache.maven.plugins</groupId>
79 <artifactId>maven-javadoc-plugin</artifactId>
80 <configuration>
81 <sourcepath>${basedir}/src/main/java/</sourcepath>
82 <excludePackageNames>org.onosproject.incubator.rpc.grpc</excludePackageNames>
83 </configuration>
84 </plugin>
85
86 <plugin>
87 <groupId>org.apache.felix</groupId>
88 <artifactId>maven-bundle-plugin</artifactId>
89 <extensions>true</extensions>
HIGUCHI Yuta48dac722016-05-22 09:59:10 -070090 <configuration>
91 <instructions>
HIGUCHI Yuta06c1a3f2016-05-23 12:54:55 -070092 <Export-Package>org.onosproject.grpc.net,org.onosproject.incubator.protobuf.net</Export-Package>
HIGUCHI Yuta48dac722016-05-22 09:59:10 -070093 </instructions>
94 </configuration>
HIGUCHI Yuta3fce2422016-05-11 18:41:41 -070095 </plugin>
96
97 <plugin>
98 <groupId>org.apache.maven.plugins</groupId>
99 <artifactId>maven-compiler-plugin</artifactId>
100 </plugin>
101
102 <plugin>
103 <groupId>org.apache.felix</groupId>
104 <artifactId>maven-scr-plugin</artifactId>
105 <executions>
106 <execution>
107 <id>generate-scr-srcdescriptor</id>
108 <goals>
109 <goal>scr</goal>
110 </goals>
111 </execution>
112 </executions>
113 <configuration>
114 <!-- avoid searching into wrong source path -->
115 <scanClasses>true</scanClasses>
116 <supportedProjectTypes>
117 <supportedProjectType>bundle</supportedProjectType>
118 </supportedProjectTypes>
119 </configuration>
120 </plugin>
121
122 <plugin>
123 <groupId>org.xolstice.maven.plugins</groupId>
124 <artifactId>protobuf-maven-plugin</artifactId>
125 <version>0.5.0</version>
126 <configuration>
HIGUCHI Yuta3fce2422016-05-11 18:41:41 -0700127 <protocArtifact>com.google.protobuf:protoc:${protobuf.version}:exe:${os.detected.classifier}</protocArtifact>
HIGUCHI Yuta3fce2422016-05-11 18:41:41 -0700128 </configuration>
129 <executions>
130 <execution>
131 <goals>
132 <goal>compile</goal>
133 </goals>
134 </execution>
135 </executions>
136 </plugin>
137
138 <plugin>
139 <groupId>org.codehaus.mojo</groupId>
140 <artifactId>build-helper-maven-plugin</artifactId>
Yuta HIGUCHI9efba1e2016-07-09 11:07:13 -0700141 <version>1.11</version>
HIGUCHI Yuta3fce2422016-05-11 18:41:41 -0700142 <executions>
143 <execution>
144 <id>add-source</id>
145 <phase>generate-sources</phase>
146 <goals>
147 <goal>add-source</goal>
148 </goals>
149 <configuration>
150 <sources>
151 <source>${project.build.directory}/generated-sources/protobuf/java</source>
152 <source>${project.build.directory}/generated-sources/protobuf/grpc-java</source>
153 </sources>
154 </configuration>
155 </execution>
156 </executions>
157 </plugin>
158 </plugins>
159 </build>
160
161</project>