[ 
https://issues.apache.org/jira/browse/RATIS-2730?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Attila Doroszlai updated RATIS-2730:
------------------------------------
    Fix Version/s: thirdparty-2.0.0

> Support building Ratis with Maven 3.10.0
> ----------------------------------------
>
>                 Key: RATIS-2730
>                 URL: https://issues.apache.org/jira/browse/RATIS-2730
>             Project: Ratis
>          Issue Type: Improvement
>            Reporter: Haonan Hou
>            Assignee: Haonan Hou
>            Priority: Major
>             Fix For: thirdparty-2.0.0
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> h2. Problem
> Ratis master cannot be built with Apache Maven 3.10.0 because the bundled 
> Develocity Maven extension fails during {{afterProjectsRead}}, before any 
> Maven goal is executed.
> h2. Reproduction
> Environment:
> * Ratis commit: {{406422d19}} (RATIS-2729)
> * Apache Maven 3.10.0
> * Java 17.0.18 (Amazon Corretto)
> * macOS 27.0.1, aarch64
> Command:
> {code:bash}
> mvn clean install -DskipTests
> {code}
> h2. Actual result
> The build aborts with 0 goals executed:
> {code}
> [ERROR] Internal error in Develocity Maven extension: 
> DevelocityLifecycleManager afterProjectsRead
> Caused by: com.google.inject.ProvisionException: Unable to provision
> 1) [Guice/NullInjectedIntoNonNullable]: null returned by binding at 
> LocatorWiring
>  but the 2nd parameter pluginDescriptorCache of 
> com.gradle.maven.internal.a.<init>(SourceFile:32) is not @Nullable
> ...
> [INFO] 0 goals, 0 executed
> {code}
> The repository currently configures 
> {{com.gradle:develocity-maven-extension:2.5.0}} in {{.mvn/extensions.xml}}. 
> The Maven wrapper is pinned to Maven 3.9.16.
> h2. Expected result
> Ratis should build successfully with Maven 3.10.0, or the supported Maven 
> version range should be explicitly documented and enforced with a clear error 
> message.
> h2. Suggested fix
> Upgrade the Develocity Maven extension to a version compatible with Maven 
> 3.10.0, if available; otherwise document and enforce the current Maven upper 
> bound.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to