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
- 82/100
- Issue type
- Refactor
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- java
- Domain
- build-system
Research direction
In src/main/java/org/apache/maven/plugins/war/overlay/OverlayManager.java at line 179, replace MavenProject.getDependencyArtifacts() with the direct dependencies from getArtifacts(), preserving behavior and parameters. Read the surrounding overlay logic and the Maven API usage first, then run mvn verify; the issue recommends -Prun-its where integration tests apply. Done when the deprecated call is removed 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 |
|---|---|
MavenProject.getDependencyArtifacts() |
OverlayManager.java:179 |
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:
MavenProject.getDependencyArtifacts():getArtifacts()narrowed to the direct dependencies.
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
- 48
- Forks
- 103
- Avg merge
- 11h 20m
- Merged PRs (30d)
- 15
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-war-plugin
-
OverlayManager.compareOverlayWithArtifact() treats null classifier as literal "null" stringPossibly taken @elharo claimed this 146 days ago. Openbug
Difficulty 1/5 Under an hour Newbie friendliness 88/100
apache/maven-war-plugin#621 ·
Maintainers usually reply within 1 day
-
DependencyInfo.hashCode() violates equals/hashCode contractPossibly taken @elharo claimed this 146 days ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
apache/maven-war-plugin#620 · 1 comment ·
Maintainers usually reply within 1 day
-
war:exploded should have an explicit incremental optionPossibly taken @efegokdemir claimed this 64 days ago. Openenhancement
Difficulty 2/5 Half a day Newbie friendliness 68/100
apache/maven-war-plugin#556 · 1 comment ·
Maintainers usually reply within 1 day
-
Bogus file copy for onlyIfModified=truePossibly taken @arturobernalg claimed this 8 days ago. Openbug
Difficulty 3/5 1-2 days Newbie friendliness 65/100
apache/maven-war-plugin#684 · 1 comment ·
Maintainers usually reply within 1 day
-
Multibyte UTF-8 character split by newline in MANIFEST. MFPossibly taken A pull request linked to this issue is open or already merged. Openbug
Difficulty 4/5 3-5 days Newbie friendliness 50/100
apache/maven-war-plugin#654 · 3 comments ·
Maintainers usually reply within 1 day
All issues in apache/maven-war-plugin
Similar issues
-
Android Bug Core Drape
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
organicmaps/organicmaps#14449 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
openhab/openhab-addons#22512 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
objectionary/lints#1871 ·
Maintainers usually reply within 1 day
-
help wanted maintenance
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
apache/maven-resolver-ant-tasks#219 ·
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