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

Cannot create maven package (opentsdb-protobuf) for OpenTSDB 3.0 due to javax.annotation #2097

Open
peteisace opened this issue Mar 30, 2021 · 3 comments
Labels

Comments

@peteisace
Copy link

Steps:

git checkout 3.0
maven package -Pdocker

Error:
src/main/java/net/opentsdb/utils/Parsing.java
Unknown symbol: DoubleConsts
Unknown symbol: FDBigInteger

So I see that the package sun.misc has been moved to jdk.internal.math and replace the imports.

  1. Tests fail now, so I run it without the tests. Not ideal
  2. maven package -Pdocker -Dmaven.ignore.test=true

Error:
cannot find symbol: class Generated
location: package javax.annotation

I've tried

3.1) Changing the import to javax.annotation.processing.Generated, but of course this doesn't help; it's a generated file, so it is overwritten once I try to compile again.
3.2) Adding javax.annotation (1.3.2) into the pom.xml at the root. No change.
3.3) Adding javax.annotation (1.3.2) into the pom.xml at ~/implentation/protobuf/pom.xml

And now I'm stuck.

This seems to be an extra-ordinary work to get this to run; am I running this with incorrect settings? JDK is 14, maven 3.6.3. Haven't done anything to the defaults, not running multiple JDK's or anything, not set any environment variables.

Advice would be appreciated.

@manolama
Copy link
Member

manolama commented May 8, 2021

Yup, that's cause we're still stuck on JDK 1.8. It won't compile with 9+ since I added those low level number parsing routines. I'll target 11 shortly for 3.0 and I have to get my production environment setup with 11 in the next couple of weeks.

@manolama
Copy link
Member

Well goody. I totally goofed up the 3.0 layout so that it's now much harder to move to 9+ modules. This will take a fair bit of work. If anyone's gone through the migration for similar projects in the past, ping me with your tips and suggestions. Thanks.

@MarkGetteoh
Copy link

MarkGetteoh commented Sep 16, 2023

Is this issue solved , i got the same, is any idea provided here or on other site like STACK OVERFLOW , cannot find useful point on google

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants