Path: csiph.com!news.uzoreto.com!aioe.org!bofh.it!news.nic.it!robomod From: Thorsten Glaser Newsgroups: linux.debian.maint.java Subject: Re: To build a java package with maven Date: Sat, 20 Jun 2020 19:10:02 +0200 Message-ID: References: X-Mailbox-Line: From debian-java-request@lists.debian.org Sat Jun 20 17:09:27 2020 Old-Return-Path: X-Amavis-Spam-Status: No, score=-6.5 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, FOURLA=0.1, KHOP_HELO_FCRDNS=0.4, LDO_WHITELIST=-5] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate:hard: -3.5 X-X-Sender: tglase@tglase-nb.lan.tarent.de User-Agent: Alpine 2.23 (DEB 453 2020-06-18) Content-Language: de-DE-1901 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Mailing-List: archive/latest/22287 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/alpine.DEB.2.23.453.2006201901090.22730@tglase-nb.lan.tarent.de Approved: robomod@news.nic.it Lines: 70 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Cc: debian-java@lists.debian.org X-Original-Date: Sat, 20 Jun 2020 19:09:04 +0200 (CEST) X-Original-Message-ID: X-Original-References: Xref: csiph.com linux.debian.maint.java:11706 On Sat, 20 Jun 2020, Mechtilde wrote: > But I packaged libbeanvalidation-api-java myself. It is now in the > NewQueue. I described it at the beginning of my question. >=20 >=20 > > I hoped to found a solution in building > https://github.com/eclipse-ee4j/beanvalidation-api as > libbeanvalidation-api-java. >=20 > which contains the class Validation. > Ah okay, I didn=E2=80=99t fully understand that part. (Besides that, something with jakarta.validation-api would have been a more easily understood name=E2=80=A6 but given where javax.activation is packaged in Debian that cause is lost anyway=E2=80=A6) Looking at https://ftp-master.debian.org/new/beanvalidation-api_3.0.0-M1-1~exp1.html you also packaged a beta version (-M* are milestones, nowhere near production-ready releases or stable APIs). From looking at https://mvnrepository.com/artifact/jakarta.validation/jakarta.validation-ap= i you should almost certainly have packaged version 2.0.2 instead. But ignoring that and looking at the package list=E2=80=A6 -rw-r--r-- root/root 1321 2020-06-19 17:51 ./usr/share/maven-repo/jaka= rta/validation/jakarta.validation-api/debian/jakarta.validation-api-debian.= pom =E2=80=A6 is enough to get the following POM dependency work=E2=80=A6 =09jakarta.validation =09jakarta.validation-api =09debian =E2=80=A6 if the package is in Build-Depends(=E2=80=91Indep) / installed. AIUI, the replacement of the real version with =E2=80=9Cdebian=E2=80=9D is done by the packaging tools. >>>In the pom.xml I found the entry. >>> >>> >>> javax.validation >>> validation-api >>> compile >>> Yes, change the groupId and artifactId; this is the new name. If after that you still miss javax.validation:validation-api then a dependency also wants it and you=E2=80=99ll have to use exclusions, but given we only use packaged dependencies this won=E2=80=99t happen. bye, //mirabilos --=20 tarent solutions GmbH Rochusstra=C3=9Fe 2-4, D-53123 Bonn =E2=80=A2 http://www.tarent.de/ Tel: +49 228 54881-393 =E2=80=A2 Fax: +49 228 54881-235 HRB 5168 (AG Bonn) =E2=80=A2 USt-ID (VAT): DE122264941 Gesch=C3=A4ftsf=C3=BChrer: Dr. Stefan Barth, Kai Ebenrett, Boris Esser, Ale= xander Steeg