veraPDF / veraPDF-library

Industry supported, open source PDF/A validation library
http://verapdf.org/software
GNU General Public License v3.0
268 stars 48 forks source link

Documentation of "javax vs jakarta" is not complete #1463

Closed cristalp closed 4 weeks ago

cristalp commented 1 month ago

I'm using veraPDF within a Quarkus project. During build time, everything went smoothly, but then as soon as I built the image and ran it, I got java.lang.NoClassDefFoundError: javax/activation/DataSource.

MaximPlusov thankfully pointed me to "javax vs jakarta" and I tried this, but got the same result.

By chance, however, I noticed that using org.verapdf:validation-model-jakarta was not enough, since I was still using org.verapdf:core. I have to use org.verapdf:core-jakarta. With that dependency, everything runs smoothly.

Could you please add this information to your documentation? I'm sure it would help the new developer who encounters the problem.

Thanks a lot for this great library!

MaximPlusov commented 1 month ago

@cristalp thanks for reporting this issue! We will try to improve our documentation.

There is no need to explicitly specify a core(-jakarta) dependency. Each version of the validation-model(-jakarta) depends on a specific core(-jakarta) version and that version should be pulled up automatically.

cristalp commented 1 month ago

Thanks for the information! Well, in my case, we check in the build that all dependencies that are required are also stated in the Maven POM. This helps keep the dependencies tidy. We use the Maven Dependency plugin for that.

nikitakovaliov92 commented 4 weeks ago

@cristalp The documentation has been updated: https://docs.verapdf.org/develop/#javax-vs-jakarta