You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2019/10/29 08:55:42 UTC

[GitHub] [pulsar] wolfstudy edited a comment on issue #5109: [function]ProtobufSchema.of run time error

wolfstudy edited a comment on issue #5109: [function]ProtobufSchema.of  run time error
URL: https://github.com/apache/pulsar/issues/5109#issuecomment-547318672
 
 
   @LeisureChou 
   
   In Pulsar Functions runtime, we use `protobuf-shaded`, but when you use `ProtobufSchema`, you use a non-shaded protobuf, which makes the two incompatible.
   
   
   ```
   <dependency>
         <groupId>${project.groupId}</groupId>
         <artifactId>protobuf-shaded</artifactId>
         <version>${pulsar.protobuf.shaded.version}</version>
         <exclusions>
           <exclusion>
             <groupId>com.google.protobuf</groupId>
             <artifactId>protobuf-java</artifactId>
           </exclusion>
         </exclusions>
       </dependency>
   ```
   
    You can use the `maven-shade-plugin` to rename the protobuf to solve.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services