[ 
https://issues.apache.org/jira/browse/RATIS-1146?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Attila Doroszlai reassigned RATIS-1146:
---------------------------------------

    Assignee: Attila Doroszlai

> Does not build with newer JDK
> -----------------------------
>
>                 Key: RATIS-1146
>                 URL: https://issues.apache.org/jira/browse/RATIS-1146
>             Project: Ratis
>          Issue Type: Bug
>          Components: proto
>    Affects Versions: 1.0.0
>            Reporter: Lasaro Camargos
>            Assignee: Attila Doroszlai
>            Priority: Critical
>
> I am trying to build the ratis code using the instructions from the pages, 
> that is, clone the repo and `mvn clean package`. I am seeing an error 
> regarding the Generated annotation in the gRPC generated code, seen below. 
> Fails on both jdk 12 and 13; works on 8; didn't test on other versions.
> ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile 
> (default-compile) on project ratis-proto: Compilation failure: Compilation 
> failure:
> [ERROR] 
> /Users/lcamargos/ufu/incubator-ratis/ratis-proto/target/generated-sources/org/apache/ratis/proto/grpc/RaftServerProtocolServiceGrpc.java:[20,17]
>  error: package javax.annotation does not exist
> [ERROR] 
> /Users/lcamargos/ufu/incubator-ratis/ratis-proto/target/generated-sources/org/apache/ratis/proto/FileTransferExampleServiceGrpc.java:[20,17]
>  error: package javax.annotation does not exist
> [ERROR] 
> /Users/lcamargos/ufu/incubator-ratis/ratis-proto/target/generated-sources/org/apache/ratis/proto/hadoop/RaftServerProtocolServiceGrpc.java:[20,17]
>  error: package javax.annotation does not exist
> [ERROR] 
> /Users/lcamargos/ufu/incubator-ratis/ratis-proto/target/generated-sources/org/apache/ratis/proto/grpc/AdminProtocolServiceGrpc.java:[20,17]
>  error: package javax.annotation does not exist
> [ERROR] 
> /Users/lcamargos/ufu/incubator-ratis/ratis-proto/target/generated-sources/org/apache/ratis/proto/grpc/RaftClientProtocolServiceGrpc.java:[20,17]
>  error: package javax.annotation does not exist
> [ERROR] 
> /Users/lcamargos/ufu/incubator-ratis/ratis-proto/target/generated-sources/org/apache/ratis/proto/hadoop/CombinedClientProtocolServiceGrpc.java:[20,17]
>  error: package javax.annotation does not exist



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to