[Git][java-team/junit5][master] Compile and run the template generator with maven-antrun-plugin
Emmanuel Bourg (@ebourg)
gitlab at salsa.debian.org
Fri Nov 13 08:38:09 GMT 2026
Emmanuel Bourg pushed to branch master at Debian Java Maintainers / junit5
Commits:
b471ff0a by Emmanuel Bourg at 2026-11-13T09:24:38+01:00
Compile and run the template generator with maven-antrun-plugin
- - - - -
5 changed files:
- debian/changelog
- debian/control
- debian/maven.rules
- debian/patches/16-maven-build.patch
- debian/rules
Changes:
=====================================
debian/changelog
=====================================
@@ -1,3 +1,9 @@
+junit5 (5.14.4-3) unstable; urgency=medium
+
+ * Compile and run the template generator with maven-antrun-plugin
+
+ -- Emmanuel Bourg <ebourg at apache.org> Fri, 13 Nov 2026 09:22:30 +0100
+
junit5 (5.14.4-2) unstable; urgency=medium
* Removed the runtime dependency on libjava-template-engine-java
=====================================
debian/control
=====================================
@@ -9,9 +9,9 @@ Build-Depends:
junit4,
libapiguardian-java,
libbuild-helper-maven-plugin-java,
- libexec-maven-plugin-java,
libhamcrest-java,
libjava-template-engine-java,
+ libmaven-antrun-plugin-java,
libmaven-shade-plugin-java,
libopentest4j-java,
libopentest4j-reporting-java (>= 0.2.5~),
=====================================
debian/maven.rules
=====================================
@@ -1,2 +1,3 @@
junit junit * s/.*/4.x/ * *
+org.yaml snakeyaml * s/.*/2.x/ * *
* * * ${platform.version} * *
=====================================
debian/patches/16-maven-build.patch
=====================================
@@ -119,7 +119,7 @@ Forwarded: not-needed
+</project>
--- /dev/null
+++ b/junit-jupiter-api/pom.xml
-@@ -0,0 +1,136 @@
+@@ -0,0 +1,137 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
@@ -163,56 +163,57 @@ Forwarded: not-needed
+ <build>
+ <plugins>
+ <plugin>
-+ <groupId>org.codehaus.mojo</groupId>
-+ <artifactId>exec-maven-plugin</artifactId>
-+ <version>3.1.1</version>
-+ <executions>
-+ <execution>
-+ <id>generate-jre-test</id>
-+ <phase>generate-sources</phase>
-+ <goals>
-+ <goal>exec</goal>
-+ </goals>
-+ <configuration>
-+ <executable>/usr/bin/java</executable>
-+ <arguments>
-+ <argument>-cp</argument>
-+ <argument>../debian/template-generator/target/junit5-gen-debian.jar</argument>
-+ <argument>org.debian.ApplyTemplate</argument>
-+ <argument>src/templates/resources/testFixtures</argument>
-+ <argument>target/generated-sources/gge/</argument>
-+ <argument>../gradle/config/spotless/eclipse-public-license-2.0.java</argument>
-+ <argument>../gradle/base/code-generator-model/src/main/resources/jre.yaml</argument>
-+ </arguments>
-+ </configuration>
-+ </execution>
-+ </executions>
-+ </plugin>
-+ <plugin>
-+ <groupId>org.codehaus.mojo</groupId>
-+ <artifactId>exec-maven-plugin</artifactId>
-+ <version>3.1.1</version>
-+ <executions>
-+ <execution>
-+ <id>generate-jre</id>
-+ <phase>generate-sources</phase>
-+ <goals>
-+ <goal>exec</goal>
-+ </goals>
-+ <configuration>
-+ <executable>/usr/bin/java</executable>
-+ <arguments>
-+ <argument>-cp</argument>
-+ <argument>../debian/template-generator/target/junit5-gen-debian.jar</argument>
-+ <argument>org.debian.ApplyTemplate</argument>
-+ <argument>src/templates/resources/main</argument>
-+ <argument>target/generated-sources/gge/</argument>
-+ <argument>../gradle/config/spotless/eclipse-public-license-2.0.java</argument>
-+ <argument>../gradle/base/code-generator-model/src/main/resources/jre.yaml</argument>
-+ </arguments>
-+ </configuration>
-+ </execution>
-+ </executions>
++ <groupId>org.apache.maven.plugins</groupId>
++ <artifactId>maven-antrun-plugin</artifactId>
++ <executions>
++ <execution>
++ <id>generate-jre</id>
++ <phase>generate-sources</phase>
++ <goals>
++ <goal>run</goal>
++ </goals>
++ <configuration>
++ <target>
++ <property name="generator.dir" value="${project.build.directory}/template-generator"/>
++ <mkdir dir="${generator.dir}"/>
++ <javac srcdir="../debian/template-generator/src/main/java" destdir="${generator.dir}"
++ classpathref="maven.plugin.classpath" includeantruntime="false" release="21"/>
++ <java classname="org.debian.ApplyTemplate" fork="true" failonerror="true">
++ <classpath>
++ <pathelement location="${generator.dir}"/>
++ <path refid="maven.plugin.classpath"/>
++ </classpath>
++ <arg file="src/templates/resources/main"/>
++ <arg file="target/generated-sources/gge"/>
++ <arg file="../gradle/config/spotless/eclipse-public-license-2.0.java"/>
++ <arg file="../gradle/base/code-generator-model/src/main/resources/jre.yaml"/>
++ </java>
++ <java classname="org.debian.ApplyTemplate" fork="true" failonerror="true">
++ <classpath>
++ <pathelement location="${generator.dir}"/>
++ <path refid="maven.plugin.classpath"/>
++ </classpath>
++ <arg file="src/templates/resources/testFixtures"/>
++ <arg file="target/generated-sources/gge"/>
++ <arg file="../gradle/config/spotless/eclipse-public-license-2.0.java"/>
++ <arg file="../gradle/base/code-generator-model/src/main/resources/jre.yaml"/>
++ </java>
++ </target>
++ </configuration>
++ </execution>
++ </executions>
++ <dependencies>
++ <dependency>
++ <groupId>gg.jte</groupId>
++ <artifactId>jte</artifactId>
++ <version>debian</version>
++ </dependency>
++ <dependency>
++ <groupId>org.yaml</groupId>
++ <artifactId>snakeyaml</artifactId>
++ <version>2.x</version>
++ </dependency>
++ </dependencies>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
=====================================
debian/rules
=====================================
@@ -1,17 +1,4 @@
#!/usr/bin/make -f
-# The template generator is built outside maven-debian-helper, so it needs the
-# Debian settings and the local repository populated by dh_auto_configure.
-MVN = mvn --batch-mode --offline -s /etc/maven/settings-debian.xml \
- -Dmaven.repo.local=$(CURDIR)/debian/maven-repo
-
%:
dh $@ --buildsystem=maven --with javahelper
-
-override_dh_auto_clean:
- rm -rf debian/template-generator/target
- dh_auto_clean
-
-override_dh_auto_build:
- (cd debian/template-generator && $(MVN) package)
- dh_auto_build
View it on GitLab: https://salsa.debian.org/java-team/junit5/-/commit/b471ff0a9a8b85cfa7cdca389dd1ad34752dbba4
--
View it on GitLab: https://salsa.debian.org/java-team/junit5/-/commit/b471ff0a9a8b85cfa7cdca389dd1ad34752dbba4
You're receiving this email because of your account on salsa.debian.org. Manage all notifications: https://salsa.debian.org/-/profile/notifications | Help: https://salsa.debian.org/help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-java-commits/attachments/20261113/4610b6aa/attachment.htm>
More information about the pkg-java-commits
mailing list