[Pkg-freeipa-devel] [Git][freeipa-team/jss][master] 2 commits: Build jss-tomcat.jar
Timo Aaltonen (@tjaalton)
gitlab at salsa.debian.org
Mon Feb 16 18:36:47 GMT 2026
Timo Aaltonen pushed to branch master at FreeIPA packaging / jss
Commits:
8376869f by Timo Aaltonen at 2026-02-16T20:35:48+02:00
Build jss-tomcat.jar
- - - - -
6d7f0c6c by Timo Aaltonen at 2026-02-16T20:36:31+02:00
releasing package jss version 5.9.0~beta3-2
- - - - -
9 changed files:
- debian/changelog
- debian/control
- + debian/libjss-java.poms
- debian/maven.ignoreRules
- debian/maven.properties
- + debian/maven.rules
- + debian/patches/fix-build.diff
- debian/patches/series
- debian/rules
Changes:
=====================================
debian/changelog
=====================================
@@ -1,3 +1,9 @@
+jss (5.9.0~beta3-2) unstable; urgency=medium
+
+ * Build jss-tomcat.jar
+
+ -- Timo Aaltonen <tjaalton at debian.org> Mon, 16 Feb 2026 20:35:59 +0200
+
jss (5.9.0~beta3-1) unstable; urgency=medium
[ Debian Janitor ]
=====================================
debian/control
=====================================
@@ -28,6 +28,7 @@ Package: libjss-java
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends},
libcommons-lang3-java,
+ libtomcat10-java,
Breaks:
libidm-console-framework-java (<< 2.0.0),
libldap-java (<< 5.0.0),
=====================================
debian/libjss-java.poms
=====================================
@@ -0,0 +1,35 @@
+# List of POM files for the package
+# Format of this file is:
+# <path to pom file> [option]*
+# where option can be:
+# --ignore: ignore this POM and its artifact if any
+# --ignore-pom: don't install the POM. To use on POM files that are created
+# temporarily for certain artifacts such as Javadoc jars. [mh_install, mh_installpoms]
+# --no-parent: remove the <parent> tag from the POM
+# --package=<package>: an alternative package to use when installing this POM
+# and its artifact
+# --has-package-version: to indicate that the original version of the POM is the same as the upstream part
+# of the version for the package.
+# --keep-elements=<elem1,elem2>: a list of XML elements to keep in the POM
+# during a clean operation with mh_cleanpom or mh_installpom
+# --artifact=<path>: path to the build artifact associated with this POM,
+# it will be installed when using the command mh_install. [mh_install]
+# --java-lib: install the jar into /usr/share/java to comply with Debian
+# packaging guidelines
+# --usj-name=<name>: name to use when installing the library in /usr/share/java
+# --usj-version=<version>: version to use when installing the library in /usr/share/java
+# --no-usj-versionless: don't install the versionless link in /usr/share/java
+# --dest-jar=<path>: the destination for the real jar.
+# It will be installed with mh_install. [mh_install]
+# --classifier=<classifier>: Optional, the classifier for the jar. Empty by default.
+# --site-xml=<location>: Optional, the location for site.xml if it needs to be installed.
+# Empty by default. [mh_install]
+#
+pom.xml
+base/pom.xml --has-package-version
+examples/pom.xml --ignore
+native/pom.xml --ignore
+symkey/pom.xml --ignore
+tomcat/pom.xml --has-package-version
+tomcat-9.0/pom.xml --ignore
+tomcat-10.1/pom.xml --has-package-version
=====================================
debian/maven.ignoreRules
=====================================
@@ -1,3 +1,4 @@
+org.codehaus.mojo flatten-maven-plugin jar * * *
org.codehaus.mojo native-maven-plugin pom * * *
org.apache.maven.plugins maven-surefire-plugin * * * *
com.github.github site-maven-plugin * * * *
=====================================
debian/maven.properties
=====================================
@@ -1 +1,3 @@
-maven.test.skip=true
+#maven.test.skip=true
+project.build.sourceEncoding=UTF-8
+maven.compiler.useIncrementalCompilation=false
=====================================
debian/maven.rules
=====================================
@@ -0,0 +1,3 @@
+org.apache.tomcat tomcat-catalina jar s/.*/10.x/ * *
+org.apache.tomcat tomcat-coyote jar s/.*/10.x/ * *
+org.apache.tomcat tomcat-juli jar s/.*/10.x/ * *
=====================================
debian/patches/fix-build.diff
=====================================
@@ -0,0 +1,45 @@
+--- a/pom.xml
++++ b/pom.xml
+@@ -20,42 +20,13 @@
+
+ <modules>
+ <module>base</module>
+- <module>native</module>
+- <module>symkey</module>
+- <module>examples</module>
+ <module>tomcat</module>
+- <module>tomcat-9.0</module>
+ <module>tomcat-10.1</module>
+ </modules>
+
+ <build>
+ <plugins>
+ <plugin>
+- <groupId>org.codehaus.mojo</groupId>
+- <artifactId>flatten-maven-plugin</artifactId>
+- <version>1.1.0</version>
+- <configuration>
+- <updatePomFile>true</updatePomFile>
+- <flattenMode>resolveCiFriendliesOnly</flattenMode>
+- </configuration>
+- <executions>
+- <execution>
+- <id>flatten</id>
+- <phase>process-resources</phase>
+- <goals>
+- <goal>flatten</goal>
+- </goals>
+- </execution>
+- <execution>
+- <id>flatten.clean</id>
+- <phase>clean</phase>
+- <goals>
+- <goal>clean</goal>
+- </goals>
+- </execution>
+- </executions>
+- </plugin>
+- <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <version>3.1.2</version>
=====================================
debian/patches/series
=====================================
@@ -1 +1 @@
-#placeholder
+fix-build.diff
=====================================
debian/rules
=====================================
@@ -8,16 +8,44 @@ MOD_MINOR_VERSION := $(word 2, $(subst ., ,$(UPSTREAM_VERSION)))
MOD_PATCH_VERSION := $(word 3, $(subst ., ,$(UPSTREAM_VERSION)))
override_dh_auto_clean:
+# dh_auto_clean -O--buildsystem=maven
+ dh_auto_clean
override_dh_clean:
- rm -rf build/* build/.targets
- rm -f org/mozilla/jss/util/jssver.h
+ dh_clean -O--buildsystem=maven
dh_clean
+ rm -rf build2/* build2/.targets
+ rm -f org/mozilla/jss/util/jssver.h
+
+override_dh_auto_configure:
+ dh_auto_configure -O--buildsystem=maven
+ dh_auto_configure -O-Bbuild2
+
+override_dh_auto_build:
+ dh_auto_build -O--buildsystem=maven
+
+ mkdir -p build2/classes/jss
+ ln -sf ../../../base/target/classes/org build2/classes/jss
+ mkdir -p build2/classes/tests
+ ln -sf ../../../base/target/test-classes/org build2/classes/tests
+
+ ln -sf ../base/target/jss.jar build2
+ ln -sf ../base/target/jss-tests.jar build2
+
+ mkdir -p build2/include/jss
+ ln -sf ../../../base/target/include/_jni build2/include/jss/_jni
+
+ dh_auto_build -O-Bbuild2
override_dh_auto_install:
- dh_auto_install --destdir=debian/tmp
+ dh_auto_install -O--buildsystem=maven
+ dh_auto_install -O-Bbuild2 --destdir=debian/tmp
+
+ # tests
rm -rf debian/tmp/jss
+
rm -rf debian/tmp/usr/share/javadoc
+
mkdir -p debian/tmp/usr/share
mv debian/tmp/usr/lib/java debian/tmp/usr/share
rm -f debian/tmp/usr/lib/jss/*.jar
View it on GitLab: https://salsa.debian.org/freeipa-team/jss/-/compare/87356df575467b5162dcce8cefc51cc9035cb32c...6d7f0c6c37ca4dfe5a315b0919537eb01779c0ac
--
View it on GitLab: https://salsa.debian.org/freeipa-team/jss/-/compare/87356df575467b5162dcce8cefc51cc9035cb32c...6d7f0c6c37ca4dfe5a315b0919537eb01779c0ac
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-freeipa-devel/attachments/20260216/801f32e8/attachment-0001.htm>
More information about the Pkg-freeipa-devel
mailing list