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


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

Re: To build a java package with maven

From Emmanuel Bourg <ebourg@apache.org>
Newsgroups linux.debian.maint.java
Subject Re: To build a java package with maven
Date 2020-06-21 11:00 +0200
Message-ID <Ak3Zv-2sd-3@gated-at.bofh.it> (permalink)
References (2 earlier) <AjOnM-1BG-3@gated-at.bofh.it> <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>
Organization linux.* mail to news gateway

Show all headers | View raw


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

Emmanuel Bourg

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