Coder Social home page Coder Social logo

grpc-demo's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

grpc-demo's Issues

编译报错

[ERROR] Failed to execute goal org.xolstice.maven.plugins:protobuf-maven-plugin:0.5.0:compile-custom (default) on project grpc-demo: Missing:
[ERROR] ----------
[ERROR] 1) io.grpc:protoc-gen-grpc-java:exe:osx:1.0.0
[ERROR]
[ERROR] Try downloading the file manually from the project website.
[ERROR]
[ERROR] Then, install it using the command:
[ERROR] mvn install:install-file -DgroupId=io.grpc -DartifactId=protoc-gen-grpc-java -Dversion=1.0.0 -Dclassifier=osx -Dpackaging=exe -Dfile=/path/to/file
[ERROR]
[ERROR] Alternatively, if you host your own repository you can deploy the file there:
[ERROR] mvn deploy:deploy-file -DgroupId=io.grpc -DartifactId=protoc-gen-grpc-java -Dversion=1.0.0 -Dclassifier=osx -Dpackaging=exe -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
[ERROR]
[ERROR] Path to dependency:
[ERROR] 1) org.cooze.grpc:grpc-demo:jar:1.0-SNAPSHOT
[ERROR] 2) io.grpc:protoc-gen-grpc-java:exe:osx:1.0.0
[ERROR]
[ERROR] ----------
[ERROR] 1 required artifact is missing.

mvn compile 编译proto文件报错

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project grpc-demo: Compilation failure: Compilation failure: 
[ERROR] /Users/jinliujie/amazing-code/grpc-demo/target/generated-sources/protobuf/java/org/cooze/grpc/entity/HelloReply.java:[29,7] cannot find symbol
[ERROR]   symbol:   class UnusedPrivateParameter
[ERROR]   location: class org.cooze.grpc.entity.HelloReply
[ERROR] /Users/jinliujie/amazing-code/grpc-demo/target/generated-sources/protobuf/java/org/cooze/grpc/entity/Account.java:[26,7] cannot find symbol
[ERROR]   symbol:   class UnusedPrivateParameter
[ERROR]   location: class org.cooze.grpc.entity.Account
[ERROR] /Users/jinliujie/amazing-code/grpc-demo/target/generated-sources/protobuf/java/org/cooze/grpc/entity/AccountResponse.java:[26,7] cannot find symbol
[ERROR]   symbol:   class UnusedPrivateParameter
[ERROR]   location: class org.cooze.grpc.entity.AccountResponse
[ERROR] /Users/jinliujie/amazing-code/grpc-demo/target/generated-sources/protobuf/java/org/cooze/grpc/entity/HelloRequest.java:[29,7] cannot find symbol
[ERROR]   symbol:   class UnusedPrivateParameter
[ERROR]   location: class org.cooze.grpc.entity.HelloRequest
[ERROR] /Users/jinliujie/amazing-code/grpc-demo/target/generated-sources/protobuf/java/org/cooze/grpc/entity/HelloReply.java:[26,3] method does not override or implement a method from a supertype
[ERROR] /Users/jinliujie/amazing-code/grpc-demo/target/generated-sources/protobuf/java/org/cooze/grpc/entity/Account.java:[23,3] method does not override or implement a method from a supertype
[ERROR] /Users/jinliujie/amazing-code/grpc-demo/target/generated-sources/protobuf/java/org/cooze/grpc/entity/AccountResponse.java:[23,3] method does not override or implement a method from a supertype
[ERROR] /Users/jinliujie/amazing-code/grpc-demo/target/generated-sources/protobuf/java/org/cooze/grpc/entity/HelloRequest.java:[26,3] method does not override or implement a method from a supertype
[ERROR] /Users/jinliujie/amazing-code/grpc-demo/target/generated-sources/protobuf/java/org/cooze/grpc/entity/EntityProto.java:[56,7] no suitable method found for internalBuildGeneratedFileFrom(java.lang.String[],com.google.protobuf.Descriptors.FileDescriptor[])
[ERROR]     method com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(java.lang.String[],com.google.protobuf.Descriptors.FileDescriptor[],com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner) is not applicable
[ERROR]       (actual and formal argument lists differ in length)
[ERROR]     method com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(java.lang.String[],java.lang.Class<?>,java.lang.String[],java.lang.String[],com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner) is not applicable
[ERROR]       (actual and formal argument lists differ in length)
[ERROR] /Users/jinliujie/amazing-code/grpc-demo/target/generated-sources/protobuf/java/org/cooze/grpc/service/ServiceProto.java:[39,7] no suitable method found for internalBuildGeneratedFileFrom(java.lang.String[],com.google.protobuf.Descriptors.FileDescriptor[])
[ERROR]     method com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(java.lang.String[],com.google.protobuf.Descriptors.FileDescriptor[],com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner) is not applicable
[ERROR]       (actual and formal argument lists differ in length)
[ERROR]     method com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(java.lang.String[],java.lang.Class<?>,java.lang.String[],java.lang.String[],com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner) is not applicable
[ERROR]       (actual and formal argument lists differ in length)
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.