Skip to content

Remove deprecated Maven 3 API from MavenProjectBasicStub - #262

Open
shrutimane2409 wants to merge 1 commit into
apache:masterfrom
shrutimane2409:gh-261-deprecated-maven3-api
Open

shrutimane2409 wants to merge 1 commit into
apache:masterfrom
shrutimane2409:gh-261-deprecated-maven3-api

Conversation

@shrutimane2409

Copy link
Copy Markdown

Fixes #261

MavenProjectBasicStub no longer uses ArtifactRepository or MavenProject.setDependencyArtifacts():

  • The setDependencyArtifacts() call is removed. The stub already calls setArtifacts() with the same empty set.
  • The two calls that set empty ArtifactRepository lists are removed. Nothing in the plugin reads them, and the MavenProject copy constructor already handles them being null.

Verified: mvn -B verify -Prun-its passes.

Part of apache/maven#14157


To make clear that you license your contribution under
the Apache License Version 2.0, January 2004
check one of the following:

Drop the setDependencyArtifacts() call, which setArtifacts() already
covers, and the empty ArtifactRepository lists, which nothing in the
plugin reads and the MavenProject copy constructor null-checks.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Move off the Maven API deprecated since Maven 3

1 participant