Dear Eric,

I tried to use goal protobuf:compile-javanano to generate the code(message and rpc service stub) for android, but i encountered a error "Java NANO_RUNTIME does not support services". Does the protobuf-maven-plugin has not support rpc service code generation? also it seem it doesn't support objective-c code generation, right? Many thanks!

*pom.xml*
            <plugin>
<groupId>org.xolstice.maven.plugins</groupId>
<artifactId>protobuf-maven-plugin</artifactId>
                <version>0.5.0</version>
                <configuration>
<checkStaleness>true</checkStaleness>
<writeDescriptorSet>true</writeDescriptorSet>
<descriptorSetFileName>protos.desc</descriptorSetFileName>
<protocArtifact>com.google.protobuf:protoc:3.0.0-beta-3:exe:${os.detected.classifier}</protocArtifact>
                    <pluginId>grpc-java</pluginId>
<pluginArtifact>io.grpc:protoc-gen-grpc-java:0.14.0:exe:${os.detected.classifier}</pluginArtifact>
                </configuration>
                <executions>
                    <execution>
                        <goals>
<goal>compile-javanano</goal>
                            <goal>compile-custom</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

*Helloworld.proto:*
syntax = "proto3";

option java_package = "practices.microservice.demo.protos";

package practices.microservice.demo.protos;

// The greeter service definition.
service Greeter {
  // Sends a greeting
  rpc SayHello (HelloRequest) returns (HelloReply) {}
}

// The request message containing the user's name.
message HelloRequest {
  string name = 1;
}

// The response message containing the greetings
message HelloReply {
  string message = 1;
}

--
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/577140DD.8040600%40189.cn.
For more options, visit https://groups.google.com/d/optout.

Reply via email to