phax / ph-schematron

Java Schematron library that supports XSLT and native application
Apache License 2.0
115 stars 36 forks source link

Lower Version of ph-schematron is not compatible with Higher version of ph-commons #154

Closed Agastya007 closed 11 months ago

Agastya007 commented 1 year ago

Hi @phax , Issue 1: We are Using ph-schematron version 5.6.5 and we need ph-commons version 10.2.1 but there is change in groupId in the both dependencies, When we tried excluding ph-commons from ph-schematron and using external dependency of ph-commons of version 10.2.1 schematron functionality is not working due to change in the group-id any proper solution for this We are using the dependencies in our Pom.xml like this,

com.helger ph-schematron 5.6.5 com.helger ph-commons com.helger.commons ph-commons 10.2.1

NOTE: To resolve this, we upgraded ph-schematron-xslt to version:6.5.3, but in our code validation of schematron file is failing with this version.

phax commented 1 year ago

ph-schematron 5.6.5 is really old and depends on an old version of ph-commons (9.x). In version 10 of ph-commons the group ID changed from com.helger to com.helger.commons and some other breaking changes were performed - see e.g. https://github.com/phax/ph-commons/releases/tag/ph-commons-parent-pom-10.0.0

So it is unlikely that ph-schematron 5.x will run with ph-commons 10.x

So updating to ph-schematron[-parent-pom] 6.3.4 with ph-commons[-parent-pom] 10.2.5 (latest release fixing a CVE) should work

phax commented 1 year ago

@Agastya007 did you manage to resolve your issue?