Skip to content

Enable regular workflow and Maven 4 build#671

Open
Bukama wants to merge 3 commits into
apache:masterfrom
Bukama:enableMavn4
Open

Enable regular workflow and Maven 4 build#671
Bukama wants to merge 3 commits into
apache:masterfrom
Bukama:enableMavn4

Conversation

@Bukama
Copy link
Copy Markdown
Contributor

@Bukama Bukama commented May 12, 2026

No description provided.

uses: apache/maven-gh-actions-shared/.github/workflows/maven-verify.yml@v4
with:
maven4-enabled: 'true'
jdk-distribution-matrix: '[ "temurin", "semeru"]'
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we need to exclude jdk8

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hope this is correct. The example from the Shared-GH-Actions-Doc gave me syntax error

Comment thread .github/workflows/maven-verify.yml Outdated
name: Verify
uses: apache/maven-gh-actions-shared/.github/workflows/maven-verify.yml@v4
with:
maven4-enabled: 'true'
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to fix:

Suggested change
maven4-enabled: 'true'
maven4-enabled: true

@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"


[ERROR] The following builds failed:
[ERROR] *  cli-options\endian-big\pom.xml

Error is an invalid jlink (--endian in combination with big) argument.

[DEBUG] Adding artifact: localhost:first-jar-module-info:99.0
[INFO]  -> module: first.jar.module.info ( D:\Github\Maven\maven-jlink-plugin\target\local-repo\localhost\first-jar-module-info\99.0\first-jar-module-info-99.0.jar )
[DEBUG] jlink [--endian, big, --module-path, D:\\Github\\Maven\\maven-jlink-plugin\\target\\local-repo\\localhost\\first-jar-module-info\\99.0\\first-jar-module-info-99.0.jar, --add-modules, first.jar.module.info, --output, D:\Github\Maven\maven-jlink-plugin\target\it\cli-options\endian-big\target\maven-jlink\default]
[ERROR] 
[ERROR] Fehler: Die angegebene Option --endian BIG_ENDIAN entspricht nicht dem Endian-Typ der Zielplattform windows-x64
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  1.252 s
[INFO] Finished at: 2026-05-18T20:16:05+02:00
[INFO] ------------------------------------------------------------------------

(according to AI) It needs to be little on Windows or skipped at all (like in IT cli-options\endian), so jlink chooses what fits for the machine.

@hboutemy
Copy link
Copy Markdown
Member

[ERROR] Fehler: Die angegebene Option --endian BIG_ENDIAN entspricht nicht dem Endian-Typ der Zielplattform windows-x64

is #675

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants