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

Update JacksonXml project for Java 11 #535

Merged
merged 5 commits into from
Jan 31, 2024

Conversation

markro49
Copy link
Collaborator

remove unneeded buggy build files
add missing dependency on jaxb-api-2.3.0.jar

@rjust
Copy link
Owner

rjust commented Oct 11, 2023

Why is the missing dependency causing problems under Java 11, but did not under Java 8?

@markro49
Copy link
Collaborator Author

The java runtime library was was divided and reorganized for Java 9+. Thus the addition of the jaxc-api jar file.

@rjust
Copy link
Owner

rjust commented Oct 19, 2023

Since the Ant build files are generated from Maven, is it possible to add that dependency also to the original pom.xml after checkout (post-checkout hook)? While D4J is using the generated Ant build files, I am worried that this change to a generated file may be unexpected and will go unnoticed if anyone tries to mine additional bugs for this project.

Specifically, I am proposing to add an additional dependency to the pom.xml after checkout; running mvn ant:ant on this modified pom.xml should generate the same, fixed maven-build.xml files.

Copy link
Owner

@rjust rjust left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add the missing dependency to the existing pom.xml (after checkout) such that mvn ant:ant outputs the exact same maven-build.xml files.

@markro49
Copy link
Collaborator Author

I can add the dependency to the pom but there is a problem. 'mvn ant:ant' fails as the pom refers to jackson-databind/2.7.0-rc4-SNAPSHOT which is in framework/projects/JacksonXml/lib but is not in maven central. I changed the pom to 2.7.0-rc3 just to test 'mvn ant:ant' and that seemed to work. Not sure what to do.

@rjust
Copy link
Owner

rjust commented Nov 30, 2023

Can you add the local lib folder that contains the databind snapshot version to the pom.xml? If not, changing the dependency to 2.7.0-rc3 in the pom.xml seems fine.

@rjust rjust assigned markro49 and unassigned rjust Nov 30, 2023
@markro49
Copy link
Collaborator Author

markro49 commented Dec 7, 2023

This last set of changes don't change anything to do with running the tests. They are only if somebody runs 'mvn ant:ant' by hand the will get the same maven-build files as currently checked in.

@markro49 markro49 assigned rjust and unassigned rjust and markro49 Dec 7, 2023
@mernst
Copy link
Collaborator

mernst commented Jan 28, 2024

@rjust Could you please review this?

@rjust rjust merged commit cb32496 into rjust:java-11-compatibility Jan 31, 2024
1 check passed
@markro49 markro49 deleted the fix-JacksonXml branch March 25, 2024 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants