syntax = "proto3";
option java_package = "destiny.identity.services.grpc";
service EchoService {
rpc echo (EchoRequest) returns (EchoReply) {}
}
message EchoRequest {
string name=1;
}
message EchoReply {
string message = 1;
}
<plugin>
<groupId>org.xolstice.maven.plugins</groupId>
<artifactId>protobuf-maven-plugin</artifactId>
<version>0.5.0</version>
<configuration>
<!--
The version of protoc must match protobuf-java. If you don't depend on
protobuf-java directly, you will be transitively depending on the
protobuf-java version that grpc depends on.
-->
<protocArtifact>com.google.protobuf:protoc:3.0.0:exe:${os.detected.classifier}</protocArtifact>
<pluginId>grpc-java</pluginId>
<pluginArtifact>io.grpc:protoc-gen-grpc-java:1.0.0:exe:${os.detected.classifier}</pluginArtifact>
</configuration>
<executions>
<execution>
<goals>
<goal>compile</goal>
<goal>compile-custom</goal>
</goals>
</execution>
</executions>
</plugin>
--
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to protobuf+unsubscribe@googlegroups.com.
To post to this group, send email to prot...@googlegroups.com.
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Detecting the operating system and CPU architecture
[INFO] ------------------------------------------------------------------------
[INFO] os.detected.name: osx
[INFO] os.detected.arch: x86_64
[INFO] os.detected.classifier: osx-x86_64
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building destiny-identity 0.0.1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:2.10:tree (default-cli) @ destiny-identity ---
[WARNING] Using Maven 2 dependency tree to get verbose output, which may be inconsistent with actual Maven 3 resolution
[INFO] artifact io.netty:netty-codec-http2: checking for updates from nexus
[INFO] artifact io.netty:netty-codec-http2: checking for updates from spring-snapshots
[INFO] artifact io.netty:netty-codec-http2: checking for updates from spring-milestones
[INFO] artifact io.netty:netty-codec-http2: checking for updates from central
[INFO] artifact io.grpc:grpc-core: checking for updates from nexus
[INFO] artifact io.grpc:grpc-core: checking for updates from spring-snapshots
[INFO] artifact io.grpc:grpc-core: checking for updates from spring-milestones
[INFO] artifact io.grpc:grpc-core: checking for updates from central
[INFO] destiny:destiny-identity:jar:0.0.1
[INFO] +- io.grpc:grpc-netty:jar:1.0.0:compile
[INFO] | +- io.netty:netty-codec-http2:jar:4.1.3.Final:compile
[INFO] | | +- io.netty:netty-codec-http:jar:4.1.3.Final:compile
[INFO] | | | \- io.netty:netty-codec:jar:4.1.3.Final:compile
[INFO] | | | \- (io.netty:netty-transport:jar:4.1.3.Final:compile - omitted for duplicate)
[INFO] | | \- io.netty:netty-handler:jar:4.1.3.Final:compile
[INFO] | | +- io.netty:netty-buffer:jar:4.1.3.Final:compile
[INFO] | | | \- io.netty:netty-common:jar:4.1.3.Final:compile
[INFO] | | +- io.netty:netty-transport:jar:4.1.3.Final:compile
[INFO] | | | +- (io.netty:netty-buffer:jar:4.1.3.Final:compile - omitted for duplicate)
[INFO] | | | \- io.netty:netty-resolver:jar:4.1.3.Final:compile
[INFO] | | | \- (io.netty:netty-common:jar:4.1.3.Final:compile - omitted for duplicate)
[INFO] | | \- (io.netty:netty-codec:jar:4.1.3.Final:compile - omitted for duplicate)
[INFO] | \- io.grpc:grpc-core:jar:1.0.0:compile
[INFO] | +- (com.google.guava:guava:jar:19.0:compile - omitted for duplicate)
[INFO] | \- com.google.code.findbugs:jsr305:jar:3.0.0:compile
[INFO] +- io.grpc:grpc-protobuf:jar:1.0.0:compile
[INFO] | +- com.google.guava:guava:jar:19.0:compile
[INFO] | +- io.grpc:grpc-protobuf-lite:jar:1.0.0:compile
[INFO] | | +- (com.google.guava:guava:jar:19.0:compile - omitted for duplicate)
[INFO] | | \- (io.grpc:grpc-core:jar:1.0.0:compile - omitted for duplicate)
[INFO] | +- com.google.protobuf:protobuf-java:jar:3.0.0:compile
[INFO] | +- com.google.protobuf:protobuf-java-util:jar:3.0.0:compile
[INFO] | | +- (com.google.protobuf:protobuf-java:jar:3.0.0:compile - omitted for duplicate)
[INFO] | | +- (com.google.guava:guava:jar:18.0:compile - omitted for conflict with 19.0)
[INFO] | | \- com.google.code.gson:gson:jar:2.7:compile (version managed from 2.3)
[INFO] | \- (io.grpc:grpc-core:jar:1.0.0:compile - omitted for duplicate)
[INFO] +- io.grpc:grpc-stub:jar:1.0.0:compile
[INFO] | \- (io.grpc:grpc-core:jar:1.0.0:compile - omitted for duplicate)
// skippedcom.google.protobuf:protobuf-java:jar:3.0.0:compile , and there are no other protobuf strings in the following skipped dependencies.To unsubscribe from this group and stop receiving emails from it, send an email to protobuf+u...@googlegroups.com.
OK . I found where goes wrong.
TIL libphonenumber also dependent on protobuf !
And the project is dependent on an older libphonenumber , not via maven , it is via groovy's @Grab !.
That's why mvn's dependency:tree cannot inspect the problem !
And maybe intelliJ regard groovy's @Grab has higher priority.