Yuta HIGUCHI | a0557a2 | 2017-01-11 16:22:53 -0800 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!-- |
Brian O'Connor | a09fe5b | 2017-08-03 21:12:30 -0700 | [diff] [blame] | 3 | ~ Copyright 2016-present Open Networking Foundation |
Yuta HIGUCHI | a0557a2 | 2017-01-11 16:22:53 -0800 | [diff] [blame] | 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-dependencies</artifactId> |
| 21 | <groupId>org.onosproject</groupId> |
ONOS Jenkins User | 45d340c | 2018-01-09 01:56:13 +0000 | [diff] [blame] | 22 | <version>1.13.0-SNAPSHOT</version> |
Yuta HIGUCHI | a0557a2 | 2017-01-11 16:22:53 -0800 | [diff] [blame] | 23 | <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 HIGUCHI | 9049252 | 2017-04-21 09:42:48 -0700 | [diff] [blame] | 33 | <protobuf.version>3.2.0</protobuf.version> |
Yuta HIGUCHI | a0557a2 | 2017-01-11 16:22:53 -0800 | [diff] [blame] | 34 | </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 Hall | b84df5d | 2017-01-31 11:19:48 -0800 | [diff] [blame] | 60 | <version>3.0.8</version> |
Yuta HIGUCHI | a0557a2 | 2017-01-11 16:22:53 -0800 | [diff] [blame] | 61 | <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> |