slachiewicz opened a new issue, #357: URL: https://github.com/apache/maven-remote-resources-plugin/issues/357
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()` | [AggregateProcessRemoteResourcesMojo.java:80](https://github.com/apache/maven-remote-resources-plugin/blob/master/src/main/java/org/apache/maven/plugin/resources/remote/AggregateProcessRemoteResourcesMojo.java#L80) | ## Test code | Deprecated API | Where | |---|---| | `ArtifactMetadata` | [ArtifactStub.java:29](https://github.com/apache/maven-remote-resources-plugin/blob/master/src/test/java/org/apache/maven/plugin/resources/remote/stub/ArtifactStub.java#L29) | | `ArtifactRepository` | [ArtifactStub.java:30](https://github.com/apache/maven-remote-resources-plugin/blob/master/src/test/java/org/apache/maven/plugin/resources/remote/stub/ArtifactStub.java#L30) | | `MavenProject.setDependencyArtifacts()` | [MavenProjectBasicStub.java:137](https://github.com/apache/maven-remote-resources-plugin/blob/master/src/test/java/org/apache/maven/plugin/resources/remote/stub/MavenProjectBasicStub.java#L137) | ## 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. - `ArtifactMetadata`: Resolver's `org.eclipse.aether.metadata.Metadata`. - `ArtifactRepository`: Resolver's `RemoteRepository` (`project.getRemoteProjectRepositories()`), and `session.getRepositorySession()` for the local repository. - `MavenProject.setDependencyArtifacts()`: `setArtifacts()`. Before opening a pull request, run the build with its tests locally: `mvn verify`, with `-Prun-its` where the repository has integration tests. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
