diff --git a/docs/guide/build.md b/docs/guide/build.md
index 48382c81..e8a71450 100644
--- a/docs/guide/build.md
+++ b/docs/guide/build.md
@@ -11,7 +11,7 @@ You don't have to install Chromium's `depot_tools`, Siso or GN: the build clones
| Tool | Notes |
| --------------------- | ----------------------------------------------------------------------------------------- |
| JDK 17 or newer | The libraries target Java 11, and the examples need 17. |
-| Maven 3.6.3 or newer | |
+| Maven 3.9.6 or newer | Needed by the native builds' CMake plugin. The build checks it, and the JDK, first. |
| Git | Clones `depot_tools`, the WebRTC sources and the submodules. |
| CMake 3.13 or newer | Must be on the `PATH`. The Maven build does not download it. |
| Python 3 | Runs `depot_tools` and the Linux sysroot script. On macOS it also needs `setuptools`. |
@@ -134,6 +134,13 @@ it as `deployment-bundle-dry-run`. It pushes no commits or tags, dispatches no
publication workflow, and uses placeholder Central credentials with uploads
disabled.
+The jars are reproducible: every entry and the manifest's `Build-Date` carry
+`project.build.outputTimestamp` from the root pom instead of the time of the
+build, so the same commit builds into the same Java jars. Release preparation
+sets it to the time of the release commit and again for the next development
+version; it needs no manual change. The native library jars are not covered,
+since CMake and the compilers do not build byte for byte the same libraries.
+
If preparation pushed the tag but dispatch failed, start Publish release manually
and select that tag. Before retrying a failed publication, check whether Maven
Central already accepted the version; published releases cannot be overwritten.
diff --git a/pom.xml b/pom.xml
index 721fc41a..74ed8540 100644
--- a/pom.xml
+++ b/pom.xml
@@ -44,9 +44,12 @@
- ${maven.build.timestamp}
UTF-8
- yyyy-MM-dd HH:mm
+
+ 2026-10-16T19:14:36Z
@@ -88,6 +91,11 @@
true
+
+ org.apache.maven.plugins
+ maven-clean-plugin
+ 3.5.0
+
org.sonatype.central
central-publishing-maven-plugin
@@ -107,6 +115,35 @@
maven-deploy-plugin
3.2.0
+
+ org.apache.maven.plugins
+ maven-enforcer-plugin
+ 3.6.3
+
+
+ enforce-build-environment
+
+ enforce
+
+
+
+
+
+ [3.9.6,)
+
+
+
+ [17,)
+
+
+ Give every plugin a version in the root pom's pluginManagement.
+
+
+
+
+
+
org.apache.maven.plugins
maven-gpg-plugin
@@ -146,7 +183,7 @@
true
${project.version}
- ${maven.build.timestamp}
+ ${project.build.outputTimestamp}
true
@@ -220,6 +257,10 @@
+
+ org.apache.maven.plugins
+ maven-enforcer-plugin
+
org.apache.maven.plugins
maven-compiler-plugin
diff --git a/webrtc/pom.xml b/webrtc/pom.xml
index 7f68364f..3ded2d8d 100644
--- a/webrtc/pom.xml
+++ b/webrtc/pom.xml
@@ -12,6 +12,24 @@
webrtc-java
+
+
+
+ --add-modules java.desktop
+ --add-reads webrtc.java=java.desktop
+ --add-exports webrtc.java/dev.onvoid.webrtc.internal=ALL-UNNAMED
+ --add-opens webrtc.java/dev.onvoid.webrtc=ALL-UNNAMED
+ --add-opens webrtc.java/dev.onvoid.webrtc.logging=ALL-UNNAMED
+ --add-opens webrtc.java/dev.onvoid.webrtc.media=ALL-UNNAMED
+ --add-opens webrtc.java/dev.onvoid.webrtc.media.audio=ALL-UNNAMED
+ --add-opens webrtc.java/dev.onvoid.webrtc.media.video=ALL-UNNAMED
+
+
+
-
- --add-modules java.desktop
- --add-reads webrtc.java=java.desktop
- --add-exports webrtc.java/dev.onvoid.webrtc.internal=ALL-UNNAMED
- --add-opens webrtc.java/dev.onvoid.webrtc=ALL-UNNAMED
- --add-opens webrtc.java/dev.onvoid.webrtc.logging=ALL-UNNAMED
- --add-opens webrtc.java/dev.onvoid.webrtc.media=ALL-UNNAMED
- --add-opens webrtc.java/dev.onvoid.webrtc.media.audio=ALL-UNNAMED
- --add-opens webrtc.java/dev.onvoid.webrtc.media.video=ALL-UNNAMED
-
+ ${webrtc.test.argLine}
@@ -93,17 +98,7 @@
maven-surefire-plugin
-
- -Xcheck:jni
- --add-modules java.desktop
- --add-reads webrtc.java=java.desktop
- --add-exports webrtc.java/dev.onvoid.webrtc.internal=ALL-UNNAMED
- --add-opens webrtc.java/dev.onvoid.webrtc=ALL-UNNAMED
- --add-opens webrtc.java/dev.onvoid.webrtc.logging=ALL-UNNAMED
- --add-opens webrtc.java/dev.onvoid.webrtc.media=ALL-UNNAMED
- --add-opens webrtc.java/dev.onvoid.webrtc.media.audio=ALL-UNNAMED
- --add-opens webrtc.java/dev.onvoid.webrtc.media.video=ALL-UNNAMED
-
+ -Xcheck:jni ${webrtc.test.argLine}