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
Stop relying on javax.json 1.1.4 #57
Comments
Are you sure this is caused by the plugin?
|
As a side note the plugin relied on jackson-databind but that was replaced a long time ago....see https://github.com/git-commit-id/git-commit-id-maven-plugin/releases/tag/v4.0.3 . So even an old version was at last that I can remember not relying on any |
I corrected the title, |
Ok, I'm still confused by your error message that mentions The Anyhow I agree that as https://mvnrepository.com/artifact/javax.json/javax.json-api mentions that it was relocated to |
- The dependency javax.json:javax.json-api was relocated to jakarta.json:jakarta.json-api (implicit bump from version 1.1.4 to 2.1.2) - The dependency org.glassfish:javax.json was relocated to org.glassfish:jakarta.json (implicit bump from version 1.1.4 to 2.0.1)
the issue was confusing to begin with because I saw this line in our build system log which ended up failing because jakarta.json earliest version is 1.1.5 ( I think as a result of some maven relocation configuration https://maven.apache.org/guides/mini/guide-relocation.html somewhere in our repository) anyway ,thanks that you are moving the dependency to newer version. Hope that solves the error message in the build |
Aparently we now need to stop relying on ``` <groupId>org.glassfish</groupId> <artifactId>jakarta.json</artifactId> <version>2.0.1</version> ``` and instead use ``` <groupId>org.eclipse.parsson</groupId> <artifactId>parsson</artifactId> <version>1.1.4</version> ``` See https://github.com/elastic/elasticsearch-java/pull / 63 and https://jakarta.ee/blogs/javax-jakartaee-namespace-ecosystem-progress/
#57: Use relocated json dependencies
Describe the bug (required)
I got a a build error saying
I cloned your repo to check the dependencies (i.e. running mvn dependency ) and I noticed there is a reference to
+- javax.json:javax.json-api:jar:1.1.4:compile
not sure why build tried to look for jakarta.json 1.1.4 but in any case, javax... is now replaced with jakarta...
Could you please update your package dependency to jakarta.json-api instead .
seems the earliest version of jakarta.json-api is 1.1.5
https://mvnrepository.com/artifact/jakarta.json/jakarta.json-api
Tell us about your plugin configuration (required)
Tell us about the Plugin version used (required)
5
Tell us about the Maven version used (required)
Steps to Reproduce (required)
I run the plugin with
mvn clean deploy
VSmvn deploy:deploy
...Are there any stacktraces or any error messages? (required)
WARNING You may NOT want to paste all the output that is produced with
verbose
publicly,since it MAY contain information you deem sensitive.
Review this CAREFULLY before posting your issue!
mvn clean deploy // ????
Is there a (public) project where this issue can be reproduced? (optional)
No response
Your Environment (optional)
No response
Context (optional)
No response
The text was updated successfully, but these errors were encountered: