Le 09/03/2025 à 07:52, Mechtilde Stehmann a écrit :
Hello Christian
Am 09.03.25 um 01:31 schrieb Christian BAYLE:
Hello,
I would try to build with a lower java version
how can I do it?
in debian/rules:
export JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64
export JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64
in debian/control:
, openjdk-17-jdk-headless
, openjdk-8-jdk-headless
but it's seems to be forbidden by the java policy
https://www.debian.org/doc/packaging-manuals/java-policy/ch02.html#build-pkg
and it didn't work as i tried, though it worked many time for me in the
past ...
There is also a new upstream version, maybe worth to see if it's fixed
there.
I tried a mh_make on your package that mention a missing lib
In pom.xml: The parent POM cannot be found in the Maven repository for
Debian. Ignore it? com.github.davidmoten:sonatype-parent:pom:0.1
com.github.davidmoten:sonatype-parent:pom:0.1
This part of the message :
> [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
seems to say you need libcommons-lang3-java dependancy, but don't seem
to fix the issue here
[INFO]
------------------------------------------------------------------------
[INFO] Reactor Summary for jax-maven-plugin-parent 0.1.8:
[INFO]
[INFO] jax-maven-plugin-parent ............................ SUCCESS [
0.001 s]
[INFO] jax-maven-plugin-core .............................. SUCCESS [
1.021 s]
[INFO] jax-maven-plugin ................................... FAILURE [
0.177 s]
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1.270 s
[INFO] Finished at: 2025-03-09T11:47:27Z
[INFO]
------------------------------------------------------------------------
a
"mvm package" which download dependencies is working
[INFO]
------------------------------------------------------------------------
[INFO] Reactor Summary for jax-maven-plugin-parent 0.1.8:
[INFO]
[INFO] jax-maven-plugin-parent ............................ SUCCESS [
0.002 s]
[INFO] jax-maven-plugin-core .............................. SUCCESS [
2.296 s]
[INFO] jax-maven-plugin ................................... SUCCESS [
1.146 s]
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 3.849 s
[INFO] Finished at: 2025-03-09T12:49:44+01:00
[INFO]
------------------------------------------------------------------------
Hope this helps
Christian