Move off the Maven API deprecated since Maven 3

Open Beginner friendly
#694 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
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

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
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

  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-war-plugin

All issues in apache/maven-war-plugin

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.