Hello Emmanuel Am 21.06.20 um 10:55 schrieb Emmanuel Bourg: > Le 21/06/2020 à 08:01, Mechtilde Stehmann a écrit : > >> do I understand it in a right way? >> >> I patch the entry for the dependency part from javax.validation to >> jakarta.vvalidation etc >> >> then I use in maven.rules >> s/javax.validation/jakarta.validation/ >> s/validation-api/jakarta.validation-api/ * s/.*/debian/ * * >> >> So the import line import javax.validation.ConstraintViolation; >> etc. should work. > > No it won't, because the classes in the jakarta artifact are in the > jakarta.* package, not javax.*, so you would have to patch the Java files > to change the import statements. > > The easiest solution is to depend on libgeronimo-validation-1.1-spec-java > and use this substitution rule: > > s/javax.validation/org.apache.geronimo.specs/ s/validation-api/geronimo-validation_1.1_spec/ * s/.*/debian/ * * > > That's what the eclipselink package does for example: > > https://sources.debian.org/src/eclipselink/2.6.6-1/debian/maven.rules/?hl=2#L2 I will patch the lines from import javax.valitation.* to import jakarta.validation. so I can exercise how to do it. I guess I will get more packages whre I have to patch upstream code ;-) > > Emmanuel Bourg > Kind regards -- Mechtilde Stehmann ## Debian Developer ## PGP encryption welcome ## F0E3 7F3D C87A 4998 2899 39E7 F287 7BBA 141A AD7F
Attachment:
signature.asc
Description: OpenPGP digital signature