Hello Emmanuel,

thanks for that information.

It helps me to understand more how java packaging works

Kind regards

Mechtilde

Am 10.03.25 um 18:32 schrieb Emmanuel Bourg:
On 08/03/2025 19:07, Mechtilde Stehmann wrote:
Hallo,

I want to update the package libjax-maven-plugin.

I want to fix this FTBFS-Issue

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1091120

I have no idea how I can solve the problem.



The Maven logs contains this error:

 > [ERROR] COMPILATION ERROR :
 > [INFO] -------------------------------------------------------------
> [ERROR] /<<PKGBUILDDIR>>/jax-maven-plugin/src/main/java/com/github/ davidmoten/jaxws/Util.java:[3,39] package org.apache.commons.lang3 does not exist > [ERROR] /<<PKGBUILDDIR>>/jax-maven-plugin/src/main/java/com/github/ davidmoten/jaxws/Util.java:[3,1] static import only from classes and interfaces > [ERROR] /<<PKGBUILDDIR>>/jax-maven-plugin/src/main/java/com/github/ davidmoten/jaxws/Util.java:[4,39] package org.apache.commons.lang3 does not exist > [ERROR] /<<PKGBUILDDIR>>/jax-maven-plugin/src/main/java/com/github/ davidmoten/jaxws/Util.java:[4,1] static import only from classes and interfaces > [ERROR] /<<PKGBUILDDIR>>/jax-maven-plugin/src/main/java/com/github/ davidmoten/jaxws/Util.java:[15,32] package org.apache.commons.lang3 does not exist


It looks like there is a missing dependency on commons-lang3. This error can happen if the upstream projects uses the classes of a library but doesn't declare an explicit dependency on the library, relying instead on another dependency to add it to the classpath transitively.

The solution is to patch the pom.xml to declare the missing dependency.

Emmanuel Bourg


--
Mechtilde Stehmann
## Apache OpenOffice
## Freie Office Suite für Linux, MacOSX, Windows und OS/2
## Debian Developer
## PGP encryption welcome
## F0E3 7F3D C87A 4998 2899  39E7 F287 7BBA 141A AD7F

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to