Repository navigation
Conversation
Signed-off-by: Ym <[email protected]>
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The maven-pmd-plugin still calls APIs that Maven 3 deprecated, and issue #793 asks to move off them; the patch is attached for you to look over.
Description
PmdProjectStubbuilt anArtifactRepository(with twoArtifactRepositoryPolicyobjects) ingetRemoteArtifactRepositories()and converted it withRepositoryUtils.toRepos()to answergetRemoteProjectRepositories(). Nothing in the module callsgetRemoteArtifactRepositories();ConfigurationServiceonly usesgetRemoteProjectRepositories(). This change removes the deprecated override and the five imports it needed, and builds the samecentralrepository directly as a ResolverRemoteRepository(https://repo1.maven.org/maven2, typedefault). The default repository policies on aRemoteRepositoryare enabled, daily update and warn on checksum failure, which is whatnew ArtifactRepositoryPolicy()gave before. One side effect: without the override,getRemoteArtifactRepositories()falls back to the test harness default, an empty list, instead of returningcentral; nothing in the module reads it. Onlysrc/testis touched, so no public API, config or output changes.Validation
mvn -B clean verifyon this head: exit 0, 92 unit tests run, 0 failures, 0 errors (spotlessreformatted my builder call to its own style, and that is what the diff shows). The existing tests already exercise this stub through every*ProjectStubsubclass, so I did not add a new one; this is a refactor, not a behaviour fix. I did not run the build on the unchangedmasterfor comparison, and I did not run the integration tests (-Prun-its). The build ran with JDK 23.0.2 and Maven 3.9.9 on macOS.Closes #793. Part of apache/maven#14157.