Skip to content

Feat: Maven 3.x with Resolver 2.x - #11778

Merged
cstamas merged 9 commits into
apache:maven-3.10.xfrom
cstamas:maven-3.9.x-resolver-2.x
Apr 8, 2026
Merged

Feat: Maven 3.x with Resolver 2.x#11778
cstamas merged 9 commits into
apache:maven-3.10.xfrom
cstamas:maven-3.9.x-resolver-2.x

Conversation

@cstamas

@cstamas cstamas commented Mar 10, 2026

Copy link
Copy Markdown
Member

This is Maven 3.x line using Resolver 2.x.

Notable:

  • the Resolver 1.x "http" HTTP transport got renamed to "apache" transport (IT MavenITmng7470ResolverTransportTest needs change for this)
  • IT MavenITmng4368TimestampAwareArtifactInstallerTest is fluke: Resolver 2.x unlike Resolver 1.x always installs if asked to install. Resolver 1.x had some rudimentary logic (file timestamp, file size) to perform "change detection" that was removed from Resolver 2.x. If user wants "conditional install" then the install API call needs to be wrapped into condition.

Temporary changes applied to ITs on maven-3.9.x-resolver-2.x branch:
apache/maven-integration-testing#420

@cstamas cstamas self-assigned this Mar 10, 2026
@cstamas cstamas added the enhancement New feature or request label Mar 10, 2026
@cstamas cstamas added this to the 3.10.0 milestone Mar 10, 2026
@cstamas cstamas changed the title Maven 3.9.x resolver 2.x Maven 3.x with Resolver 2.x Mar 10, 2026
@cstamas

This comment was marked as outdated.

@cstamas cstamas changed the title Maven 3.x with Resolver 2.x Feat: Maven 3.x with Resolver 2.x Mar 10, 2026
@cstamas

This comment was marked as outdated.

@cstamas
cstamas marked this pull request as ready for review March 10, 2026 13:41
@cstamas
cstamas changed the base branch from maven-3.9.x to maven-3.10.x March 25, 2026 15:50
Comment thread pom.xml Outdated
Comment on lines +517 to +525
<repositories>
<repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>maven-2404</id>
<url>https://repository.apache.org/content/repositories/maven-2404/</url>
</repository>
</repositories>

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.

Is it needed?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Dropped

@cstamas
cstamas merged commit e04f0bd into apache:maven-3.10.x Apr 8, 2026
18 checks passed
@cstamas
cstamas deleted the maven-3.9.x-resolver-2.x branch April 8, 2026 15:25
@jglick

jglick commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Does this expose 3.10 to #11856? Could not grasp what this is about from a quick read.

@cstamas

cstamas commented Jul 20, 2026

Copy link
Copy Markdown
Member Author

This PR updates Maven dependency on Resolver from 1.9.x to 2.0.x.

Yes, as Resolver 2.x automatically resolves prefixes (configurable, see aether.remoteRepositoryFilter.prefixes.resolvePrefixFiles here https://maven.apache.org/resolver/configuration.html).

But, 3.10.0 GA will use Resolver 2.0.21 (currently on vote) that has this:
apache/maven-resolver#1976

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

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants