You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ratis.apache.org by "Attila Doroszlai (Jira)" <ji...@apache.org> on 2020/11/11 14:32:00 UTC

[jira] [Updated] (RATIS-1146) Does not build with newer JDK

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

Attila Doroszlai updated RATIS-1146:
------------------------------------
    Description: 
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.

{noformat}
[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
{noformat}

  was:
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


> 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.
> {noformat}
> [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
> {noformat}



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