Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.java > #11719

Re: To build a java package with maven

From Mechtilde Stehmann <mechtilde@debian.org>
Newsgroups linux.debian.maint.java
Subject Re: To build a java package with maven
Date 2020-06-21 11:40 +0200
Message-ID <Ak4Ce-2TU-1@gated-at.bofh.it> (permalink)
References (3 earlier) <AjPaa-27D-11@gated-at.bofh.it> <AjPWx-2nn-1@gated-at.bofh.it> <AjQpz-2LT-1@gated-at.bofh.it> <Ak1l0-14x-1@gated-at.bofh.it> <Ak3Zv-2sd-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

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

Back to linux.debian.maint.java | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

To build a java package with maven Mechtilde Stehmann <mechtilde@debian.org> - 2020-06-20 12:50 +0200
  Re: To build a java package with maven Thorsten Glaser <t.glaser@tarent.de> - 2020-06-20 17:00 +0200
    Re: To build a java package with maven tony mancill <tmancill@debian.org> - 2020-06-20 17:20 +0200
      Re: To build a java package with maven Emmanuel Bourg <ebourg@apache.org> - 2020-06-21 01:30 +0200
    Re: To build a java package with maven Mechtilde <ooo@mechtilde.de> - 2020-06-20 18:20 +0200
      Re: To build a java package with maven Thorsten Glaser <t.glaser@tarent.de> - 2020-06-20 19:10 +0200
        Re: To build a java package with maven Mechtilde Stehmann <mechtilde@debian.org> - 2020-06-20 20:00 +0200
          Re: To build a java package with maven Thorsten Glaser <t.glaser@tarent.de> - 2020-06-20 20:30 +0200
            Re: To build a java package with maven Mechtilde Stehmann <mechtilde@debian.org> - 2020-06-21 08:10 +0200
              Re: To build a java package with maven Emmanuel Bourg <ebourg@apache.org> - 2020-06-21 11:00 +0200
                Re: To build a java package with maven Mechtilde Stehmann <mechtilde@debian.org> - 2020-06-21 11:40 +0200
      Re: To build a java package with maven Emmanuel Bourg <ebourg@apache.org> - 2020-06-21 01:20 +0200
        OT javax.mail (was Re: To build a java package with maven) Thorsten Glaser <t.glaser@tarent.de> - 2020-06-21 01:30 +0200
          Re: OT javax.mail (was Re: To build a java package with maven) Emmanuel Bourg <ebourg@apache.org> - 2020-06-21 01:50 +0200
        Re: To build a java package with maven Mechtilde Stehmann <mechtilde@debian.org> - 2020-06-21 08:00 +0200

csiph-web