saturnism / grpc-by-example-java

A collection of useful/essential gRPC Java Examples

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How do I execute the examples?

kun-zhou opened this issue · comments

Attempting to execute both the client and server of the error handling example. I packaged the parent app, and successfully executed it with mvn exec:java -Dexec.mainClass="com.example.grpc.server.ErrorGrpcServer" . However, I cannot package the client app by running mvn package in the directory error-handling-example/error-handling-client due to the error

[ERROR] Failed to execute goal on project error-handling-client: Could not resolve dependencies for project com.example.errors:error-handling-client:jar:1.0-SNAPSHOT: Failed to collect dependencies at com.example.errors:error-server:jar:1.0-SNAPSHOT:

I also tried to execute mvn package at parent project root, i.e. error-handling-example/, but it didn't help.