Move off the Maven API deprecated since Maven 3
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
- Domain
- backend, build-system
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
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'sRemoteRepository(project.getRemoteProjectRepositories()), andsession.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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from apache/maven-archetype
-
DefaultArchetypeFilesResolver.findOtherResources(level, files, sourcesFiles, languages) never applies its computed include patternsPossibly taken @adityaanikam claimed this 82 days ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
apache/maven-archetype#1020 ·
Maintainers usually reply within 1 day
-
Remove the unbuilt archetype-samples treePossibly taken @hutiefang76 claimed this 79 days ago. Opendependencies good first issue maintenance
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
apache/maven-archetype#1012 · 1 comment ·
Maintainers usually reply within 1 day
-
maintenance
Difficulty 5/5 Over a week Newbie friendliness 30/100
apache/maven-archetype#1057 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 35/100
apache/maven-archetype#994 · 1 reaction ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 52/100
apache/maven-archetype#988 · 2 comments ·
Maintainers usually reply within 1 day
All issues in apache/maven-archetype
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
openhab/openhab-addons#22512 ·
Maintainers usually reply within 1 day
-
help wanted maintenance
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
apache/maven-project-info-reports-plugin#704 ·
Maintainers usually reply within 1 day
-
help wanted maintenance
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
apache/maven-ejb-plugin#261 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
Maintainers usually reply within 1 day
-
[Bug] Python NumpyTablet silently drops trailing zero bytes from BLOB valuesPossibly taken @DaZuiZui claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day