[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: To build a java package with maven



On Sat, 20 Jun 2020, Mechtilde Stehmann wrote:

> In the d/rules I did the entry
> 
> export CLASSPATH := /usr/share/java/jakarta.validation-api.jar

There is no file named jakarta.validation-api.jar in Debian,
according to a file search on packages.debian.org.

Furthermore, for Maven dependency resolution, you must not
set $CLASSPATH; only the information in the pom.xml file counts.

> In the pom.xml I found the entry.
> 
>         <dependency>
>             <groupId>javax.validation</groupId>
>              <artifactId>validation-api</artifactId>
>              <scope>compile</scope>
>         </dependency>

You have to insert the correct coordinates here. Sadly, according
to https://wiki.debian.org/Java/MavenPkgs/Unstable neither
javax.validation nor jakarta.validation are packaged in Debian yet,
so they have to be packaged.

> When I look into the package libbeanvalidation-api-java I found this entry:

There is no package libbeanvalidation-api-java in Debian.

bye,
//mirabilos
-- 
tarent solutions GmbH
Rochusstraße 2-4, D-53123 Bonn • http://www.tarent.de/
Tel: +49 228 54881-393 • Fax: +49 228 54881-235
HRB 5168 (AG Bonn) • USt-ID (VAT): DE122264941
Geschäftsführer: Dr. Stefan Barth, Kai Ebenrett, Boris Esser, Alexander Steeg


Reply to: