|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<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/maven-v4_0_0.xsd"> |
| 3 | + <modelVersion>4.0.0</modelVersion> |
| 4 | + <groupId>mil.nga.giat</groupId> |
| 5 | + <artifactId>geowave-grpc-protobuf-shaded</artifactId> |
| 6 | + <version>0.0.1-SNAPSHOT</version> |
| 7 | + <dependencies> |
| 8 | + <dependency> |
| 9 | + <groupId>io.grpc</groupId> |
| 10 | + <artifactId>grpc-protobuf</artifactId> |
| 11 | + <version>1.2.0</version> |
| 12 | + </dependency> |
| 13 | + <dependency> |
| 14 | + <groupId>io.grpc</groupId> |
| 15 | + <artifactId>grpc-stub</artifactId> |
| 16 | + <version>1.2.0</version> |
| 17 | + </dependency> |
| 18 | + </dependencies> |
| 19 | + <build> |
| 20 | + <plugins> |
| 21 | + <plugin> |
| 22 | + <artifactId>maven-shade-plugin</artifactId> |
| 23 | + <version>2.4</version> |
| 24 | + <executions> |
| 25 | + <execution> |
| 26 | + <phase>package</phase> |
| 27 | + <goals> |
| 28 | + <goal>shade</goal> |
| 29 | + </goals> |
| 30 | + <configuration> |
| 31 | + <filters> |
| 32 | + <filter> |
| 33 | + <artifact>*:*</artifact> |
| 34 | + <includes> |
| 35 | + <include>mil/nga/giat/**</include> |
| 36 | + <include>com/google/protobuf/**</include> |
| 37 | + <include>io/grpc/protobuf/**</include> |
| 38 | + </includes> |
| 39 | + </filter> |
| 40 | + </filters> |
| 41 | + <relocations> |
| 42 | + <relocation> |
| 43 | + <pattern>com.google.protobuf</pattern> |
| 44 | + <shadedPattern>com.google.protoshadebuf3</shadedPattern> |
| 45 | + </relocation> |
| 46 | + </relocations> |
| 47 | + <createSourcesJar>true</createSourcesJar> |
| 48 | + <shadeSourcesContent>true</shadeSourcesContent> |
| 49 | + </configuration> |
| 50 | + </execution> |
| 51 | + </executions> |
| 52 | + </plugin> |
| 53 | + <plugin> |
| 54 | + <groupId>com.github.os72</groupId> |
| 55 | + <artifactId>protoc-jar-maven-plugin</artifactId> |
| 56 | + <version>3.4.0.1</version> |
| 57 | + <executions> |
| 58 | + <execution> |
| 59 | + <phase>generate-sources</phase> |
| 60 | + <goals> |
| 61 | + <goal>run</goal> |
| 62 | + </goals> |
| 63 | + <configuration> |
| 64 | + <protocArtifact>com.google.protobuf:protoc:3.0.0</protocArtifact> |
| 65 | + <inputDirectories> |
| 66 | + <include>src/main/protobuf</include> |
| 67 | + </inputDirectories> |
| 68 | + <outputTargets> |
| 69 | + <outputTarget> |
| 70 | + <type>java</type> |
| 71 | + <outputDirectory>src/main/java</outputDirectory> |
| 72 | + </outputTarget> |
| 73 | + <outputTarget> |
| 74 | + <type>grpc-java</type> |
| 75 | + <outputDirectory>src/main/java</outputDirectory> |
| 76 | + <pluginArtifact>io.grpc:protoc-gen-grpc-java:1.0.1</pluginArtifact> |
| 77 | + </outputTarget> |
| 78 | + </outputTargets> |
| 79 | + </configuration> |
| 80 | + </execution> |
| 81 | + </executions> |
| 82 | + </plugin> |
| 83 | + </plugins> |
| 84 | + </build> |
| 85 | +</project> |
| 86 | + |
0 commit comments