Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ignore @javax.annotation.Generated #4851

Open
punkratz312 opened this issue Jan 6, 2025 · 1 comment
Open

ignore @javax.annotation.Generated #4851

punkratz312 opened this issue Jan 6, 2025 · 1 comment
Labels
bug Something isn't working question Further information is requested

Comments

@punkratz312
Copy link

punkratz312 commented Jan 6, 2025

checkout:

https://github.com/quarkusio/quarkus.git

run:

mvn -U org.openrewrite.maven:rewrite-maven-plugin:run -Drewrite.recipeArtifactCoordinates=org.openrewrite.recipe:rewrite-static-analysis:RELEASE -Drewrite.activeRecipes=org.openrewrite.staticanalysis.CommonStaticAnalysis -Drewrite.exportDatatables=true

error:

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  05:48 min
[INFO] Finished at: 2025-01-06T17:27:38+01:00
[INFO] ------------------------------------------------------------------------
[INFO] 1567 goals, 1567 executed
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.13.0:compile (default-compile) on project quarkus-grpc-stubs: Compilation failure: Compilation failure: 
[ERROR] /path/to/project/quarkus/extensions/grpc/stubs/target/generated-sources/protobuf/grpc-java/grpc/health/v1/HealthGrpc.java:[7,18] cannot find symbol
[ERROR]   symbol:   class Generated
[ERROR]   location: package javax.annotation
[ERROR] /path/to/project/quarkus/extensions/grpc/stubs/target/generated-sources/protobuf/grpc-java/grpc/reflection/v1alpha/ServerReflectionGrpc.java:[7,18] cannot find symbol
[ERROR]   symbol:   class Generated
[ERROR]   location: package javax.annotation
[ERROR] /path/to/project/quarkus/extensions/grpc/stubs/target/generated-sources/protobuf/grpc-java/io/grpc/reflection/v1/ServerReflectionGrpc.java:[7,18] cannot find symbol
[ERROR]   symbol:   class Generated
[ERROR]   location: package javax.annotation
[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
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <args> -rf :quarkus-grpc-stubs
➜  quarkus git:(main)
@punkratz312 punkratz312 added the bug Something isn't working label Jan 6, 2025
@timtebeek timtebeek changed the title ignore @javax.annotation.Generated ignore @javax.annotation.Generated Jan 7, 2025
@timtebeek
Copy link
Contributor

hi @punkratz312 ; Would you happen to recall which recipe reported making a change to those files? Seems odd to see that error coming from CommonStaticAnalysis.

@timtebeek timtebeek added the question Further information is requested label Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
Status: No status
Development

No branches or pull requests

2 participants