Skip to content

Enable Maven 4#215

Open
Bukama wants to merge 1 commit into
apache:masterfrom
Bukama:enablemaven4
Open

Enable Maven 4#215
Bukama wants to merge 1 commit into
apache:masterfrom
Bukama:enablemaven4

Conversation

@Bukama
Copy link
Copy Markdown
Contributor

@Bukama Bukama commented May 16, 2026

No description provided.

@Bukama Bukama self-assigned this May 16, 2026
@Bukama
Copy link
Copy Markdown
Contributor Author

Bukama commented May 18, 2026

Note: This PR is for checking build status for Maven 4.0.0 according to checklist https://cwiki.apache.org/confluence/display/MAVEN/Maven+4.0.0+GA+checklist

@Bukama
Copy link
Copy Markdown
Contributor Author

Bukama commented May 18, 2026

D:\Github\Maven\maven-jmod-plugin>mvn --version
Apache Maven 4.0.0-rc-5 (fb3ecaef88106acb40467a450248dfdbd75f3b35)
Maven home: C:\apache-maven-4.0.0-rc-5
Java version: 25.0.2, vendor: Azul Systems, Inc., runtime: C:\Program Files\Zulu\zulu-25
Default locale: de_DE, platform encoding: UTF-8
OS name: "windows 11", version: "10.0", arch: "amd64", family: "winnt"


[INFO] Build Summary:
[INFO]   Passed: 8, Failed: 7, Errors: 0, Skipped: 0
[INFO] -------------------------------------------------
[ERROR] The following builds failed:
[ERROR] *  buildinfo-mono\pom.xml
[ERROR] *  buildinfo-multi\pom.xml
[ERROR] *  buildinfo-skip-install-deploy\pom.xml
[ERROR] *  compare-flatten\pom.xml
[ERROR] *  compare-mono\pom.xml
[ERROR] *  compare-resume\pom.xml
[ERROR] *  git-multi\pom.xml

buildinfo-mono
buildinfo-multi

(Logs from buildinfo-mono)

Assertion expects two output entries, the first beeing the buildinfo (ok), the second the jar. But the jar is the third when building with Maven 4. The second is outputs.1.filename=mono-1.0-SNAPSHOT-build.pom according to logs. But in directory there is only consumer-17696942139801610378.pom (next to buildinfo and jar).

Assertion failed: 

assert buildinfo.contains( "outputs.1.filename=mono-1.0-SNAPSHOT.jar" )
       |         |
       |         false
       '# https://reproducible-builds.org/docs/jvm/\r\nbuildinfo.version=1.0-SNAPSHOT\r\n\r\nname=mono\r\ngroup-id=org.apache.maven.plugins.it\r\nartifact-id=mono\r\nversion=1.0-SNAPSHOT\r\n\r\n# source information\r\nsource.scm.uri=scm:git:https://gitbox.apache.org/repos/asf/maven-studies.git\r\nsource.scm.tag=maven-buildinfo-plugin\r\n\r\n# build instructions\r\nbuild-tool=mvn\r\n\r\n# effective build environment information\r\njava.version=25.0.2\r\njava.vendor=Azul Systems, Inc.\r\nos.name=Windows 11\r\nos.version=10.0\r\nos.arch=amd64\r\nline.separator=\\r\\n\r\n\r\n# Maven rebuild instructions and effective environment\r\nmvn.version=4.0.0-rc-5\r\nmvn.minimum.version=3.0.5\r\nmvn.rebuild-args=-Dmaven.session.versionFilter=e(org.slf4j:slf4j-api:(1.7.36,))\r\n\r\n# output\r\n\r\noutputs.0.groupId=org.apache.maven.plugins.it\r\noutputs.0.filename=mono-1.0-SNAPSHOT.pom\r\noutputs.0.length=1921\r\noutputs.0.checksums.sha512=57f42bf97a0d1359d1038e79f0005b238e5154a818e2ca0e83d72210d4bb2f6a34c6c07bd83ebcee54b80bb6d7ea23e31900bbb32eba40437e408ca2028287bc\r\n\r\noutputs.1.groupId=org.apache.maven.plugins.it\r\noutputs.1.filename=mono-1.0-SNAPSHOT-build.pom\r\noutputs.1.length=2799\r\noutputs.1.checksums.sha512=e88e93cd200d2a75653ee28e759b1bd081d19b15f57a0ddffc96d54d6b8917f4d2bd4a8a3881a16822c4203dd59990eba4881629686243a4fe438f67703440d1\r\n\r\noutputs.2.groupId=org.apache.maven.plugins.it\r\noutputs.2.filename=mono-1.0-SNAPSHOT.jar\r\noutputs.2.length=2403\r\noutputs.2.checksums.sha512=43a38add4e1c1f1d568b7307f3fc6354a6b283083827256b8e9f43df1a22aac5e3e7190815619a4af0b0cee95cbf77369147eafcb6d63759e2d85bbb7ae563ab\r\n'

buildinfo-skip-install-deploy
compare-flatten
compare-resume
git-multi

These have the following build error (logs from buildinfo-skip-install-deploy)

[INFO] Reactor Summary for multi 1.0-SNAPSHOT:
[INFO] 
[INFO] multi .............................................. FAILURE [  0.532 s]
[INFO] multi-module module that skips install ............. SKIPPED
[INFO] multi-module module that skips deploy .............. SKIPPED
[INFO] multi-module module that will be skipped by configuring artifact plugin with skipModules SKIPPED
[INFO] multi-module module A .............................. SKIPPED
[INFO] multi-module module B .............................. SKIPPED
[INFO] last module, that skips install .................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  0.701 s
[INFO] Finished at: 2026-05-18T20:52:12+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-artifact-plugin:3.6.2-SNAPSHOT:buildinfo (default) on project multi: Execution default of goal org.apache.maven.plugins:maven-artifact-plugin:3.6.2-SNAPSHOT:buildinfo failed: Cannot invoke "org.apache.maven.model.PluginManagement.getPluginsAsMap()" because the return value of "org.apache.maven.project.MavenProject.getPluginManagement()" is null -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-artifact-plugin:3.6.2-SNAPSHOT:buildinfo (default) on project multi: Execution default of goal org.apache.maven.plugins:maven-artifact-plugin:3.6.2-SNAPSHOT:buildinfo failed: Cannot invoke "org.apache.maven.model.PluginManagement.getPluginsAsMap()" because the return value of "org.apache.maven.project.MavenProject.getPluginManagement()" is null

compare-mono

Build error on compare goal

[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  5.168 s
[INFO] Finished at: 2026-05-18T20:52:49+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-artifact-plugin:3.6.2-SNAPSHOT:compare (default-cli) on project mono: Rebuilt artifacts are different from reference -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-artifact-plugin:3.6.2-SNAPSHOT:compare (default-cli) on project mono: Rebuilt artifacts are different from reference

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant