Skip to content

enable build with Maven 4#810

Open
hboutemy wants to merge 1 commit into
masterfrom
maven4-enabled
Open

enable build with Maven 4#810
hboutemy wants to merge 1 commit into
masterfrom
maven4-enabled

Conversation

@hboutemy
Copy link
Copy Markdown
Member

@hboutemy hboutemy commented May 11, 2026

[INFO] -------------------------------------------------
[INFO] Build Summary:
[INFO]   Passed: 76, Failed: 7, Errors: 0, Skipped: 1
[INFO] -------------------------------------------------
Error:  The following builds failed:
Error:  *  mshade-123/pom.xml
Error:  *  MSHADE-467_parallel-dependency-reduced-pom/pom.xml
Error:  *  MSHADE-285_createTestSourcesJar/pom.xml
Error:  *  MSHADE-340_shadedTestJarArtifactAttached/pom.xml
Error:  *  dep-reduced-pom-exclusions/pom.xml
Error:  *  MSHADE-284_shadeTestJar/pom.xml
Error:  *  MSHADE-105/pom.xml
[INFO] -------------------------------------------------

@Bukama
Copy link
Copy Markdown
Contributor

Bukama commented May 19, 2026

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: 74, Failed: 9, Errors: 0, Skipped: 1
[INFO] -------------------------------------------------
[ERROR] The following builds failed:
[ERROR] *  dep-reduced-pom-exclusions\pom.xml
[ERROR] *  MSHADE-105\pom.xml
[ERROR] *  mshade-123\pom.xml
[ERROR] *  MSHADE-284_shadeTestJar\pom.xml
[ERROR] *  MSHADE-285_createTestSourcesJar\pom.xml
[ERROR] *  MSHADE-340_shadedTestJarArtifactAttached\pom.xml
[ERROR] *  MSHADE-467_parallel-dependency-reduced-pom\pom.xml
[ERROR] *  shading-with-java-8-sources\pom.xml
[ERROR] *  shading-with-release-sources\pom.xml
[INFO] -------------------------------------------------
[WARNING] The following builds were skipped:
[WARNING] *  MSHADE-185\pom.xml

dep-reduced-pom-exclusions

The exclusion on second dependency is missing

Assertion failed: 

assert pom[ns.dependencies][ns.dependency][1][ns.exclusions][ns.exclusion].size() == 1

MSHADE-105

API incompatibility

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:4.0.0-beta-1:resources (default-resources) on project MSHADE-105-BUNDLE: Execution default-resources of goal org.apache.maven.plugins:maven-resources-plugin:4.0.0-beta-1:resources failed: An API incompatibility was encountered while executing org.apache.maven.plugins:maven-resources-plugin:4.0.0-beta-1:resources: java.lang.NoSuchMethodError: 'java.util.List org.apache.maven.api.services.ProjectManager.getResources(org.apache.maven.api.Project, org.apache.maven.api.ProjectScope)'

mshade-123

API incompatibility

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:1.0:enforce (enforce-maven) on project test: Execution enforce-maven of goal org.apache.maven.plugins:maven-enforcer-plugin:1.0:enforce failed: An API incompatibility was encountered while executing org.apache.maven.plugins:maven-enforcer-plugin:1.0:enforce: java.lang.NoSuchMethodError: 'void org.apache.maven.plugin.PluginParameterExpressionEvaluator.<init>(org.apache.maven.execution.MavenSession, org.apache.maven.plugin.MojoExecution, org.apache.maven.project.path.PathTranslator, org.codehaus.plexus.logging.Logger, org.apache.maven.project.MavenProject, java.util.Properties)'

MSHADE-284_shadeTestJar
MSHADE-285_createTestSourcesJar
MSHADE-340_shadedTestJarArtifactAttached

API incompatibility

[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-jar-plugin:4.0.0-beta-1:test-jar (default) on project mshade-284-parent: Execution default of goal org.apache.maven.plugins:maven-jar-plugin:4.0.0-beta-1:test-jar failed: An API incompatibility was encountered while executing org.apache.maven.plugins:maven-jar-plugin:4.0.0-beta-1:test-jar: java.lang.NoSuchMethodError: 'org.apache.maven.api.Artifact org.apache.maven.api.Project.getPomArtifact()'

MSHADE-467_parallel-dependency-reduced-pom

The exclusion on some dependencies are missing

Assertion failed: 

assert exclusionCount == 5
       |              |
       3              false

shading-with-java-8-sources
shading-with-release-sources

Caused by: java.lang.NullPointerException: Cannot invoke "org.codehaus.plexus.PlexusContainer.lookup(String)" because the return value of "org.apache.maven.execution.MavenSession.getContainer()" is null

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.

2 participants