Move off the Maven API deprecated since Maven 3

Open Beginner friendly
#1,086 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
78/100
Issue type
Refactor
Clarity
Clearly specified
Activity status
Active
Tech stack
java

Research direction

Start in archetype-common/src/main/java/org/apache/maven/archetype/ArchetypeGenerationRequest.java, where the issue locates the deprecated ArtifactRepository use. Read how the request gets its remote and local repositories, then replace the deprecated API with Resolver's RemoteRepository and the session repository access described in the issue. Run mvn verify (and -Prun-its if applicable); done means behavior and parameters are preserved and the build passes.

Written by the indexing model from the issue text.

Description

help wanted maintenance

Part of apache/maven#14157, which tracks removing the classes and methods that have been deprecated since Maven 3. This repository still uses the ones listed here (master on 2026-11-27).

Main code

Deprecated API Where
ArtifactRepository ArchetypeGenerationRequest.java:26

Scope

Replace each use with a non-deprecated counterpart, without changing behavior or parameters. Most of these have no replacement named in their Javadoc, so take the list as a starting point:

  • ArtifactRepository: Resolver's RemoteRepository (project.getRemoteProjectRepositories()), and session.getRepositorySession() for the local repository.

Before opening a pull request, run the build with its tests locally: mvn verify, with -Prun-its where the repository has integration tests.

Dominant language
Java
Stars
147
Forks
186
Avg merge
11h 43m
Merged PRs (30d)
35

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from apache/maven-archetype

All issues in apache/maven-archetype

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.