slachiewicz opened a new issue, #312:
URL: https://github.com/apache/maven-plugin-testing/issues/312

   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 |
   |---|---|
   | `ArtifactFactory` | 
[MavenProjectStub.java:33](https://github.com/apache/maven-plugin-testing/blob/master/maven-plugin-testing-harness/src/main/java/org/apache/maven/plugin/testing/stubs/MavenProjectStub.java#L33)
 |
   | `ArtifactMetadata` | 
[ArtifactStub.java:27](https://github.com/apache/maven-plugin-testing/blob/master/maven-plugin-testing-harness/src/main/java/org/apache/maven/plugin/testing/stubs/ArtifactStub.java#L27),
 
[StubArtifactRepository.java:26](https://github.com/apache/maven-plugin-testing/blob/master/maven-plugin-testing-harness/src/main/java/org/apache/maven/plugin/testing/stubs/StubArtifactRepository.java#L26)
 |
   | `ArtifactRepository` | 
[ArtifactStub.java:28](https://github.com/apache/maven-plugin-testing/blob/master/maven-plugin-testing-harness/src/main/java/org/apache/maven/plugin/testing/stubs/ArtifactStub.java#L28),
 
[MavenProjectStub.java:34](https://github.com/apache/maven-plugin-testing/blob/master/maven-plugin-testing-harness/src/main/java/org/apache/maven/plugin/testing/stubs/MavenProjectStub.java#L34),
 
[StubArtifactRepository.java:27](https://github.com/apache/maven-plugin-testing/blob/master/maven-plugin-testing-harness/src/main/java/org/apache/maven/plugin/testing/stubs/StubArtifactRepository.java#L27)
 |
   | `ArtifactRepositoryLayout` | 
[StubArtifactRepository.java:30](https://github.com/apache/maven-plugin-testing/blob/master/maven-plugin-testing-harness/src/main/java/org/apache/maven/plugin/testing/stubs/StubArtifactRepository.java#L30)
 |
   | `ArtifactRepositoryPolicy` | 
[StubArtifactRepository.java:28](https://github.com/apache/maven-plugin-testing/blob/master/maven-plugin-testing-harness/src/main/java/org/apache/maven/plugin/testing/stubs/StubArtifactRepository.java#L28)
 |
   
   ## Test code
   
   | Deprecated API | Where |
   |---|---|
   | `ArtifactRepository` | 
[ExpressionEvaluatorMojo.java:21](https://github.com/apache/maven-plugin-testing/blob/master/maven-plugin-testing-harness/src/test/java/org/apache/maven/plugin/testing/ExpressionEvaluatorMojo.java#L21)
 |
   
   
[MavenProjectStub](https://github.com/apache/maven-plugin-testing/blob/master/maven-plugin-testing-harness/src/main/java/org/apache/maven/plugin/testing/stubs/MavenProjectStub.java)
 also overrides 22 deprecated `MavenProject` methods; those overrides go once 
the methods are removed.
   
   ## 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:
   
   - `ArtifactFactory`: Resolver's `DefaultArtifact`, with 
`ArtifactHandlerManager` for the type lookup.
   - `ArtifactMetadata`: Resolver's `org.eclipse.aether.metadata.Metadata`.
   - `ArtifactRepository`: Resolver's `RemoteRepository` 
(`project.getRemoteProjectRepositories()`), and 
`session.getRepositorySession()` for the local repository.
   - `ArtifactRepositoryLayout`: no counterpart; Resolver handles repository 
layouts itself.
   - `ArtifactRepositoryPolicy`: Resolver's `RepositoryPolicy`.
   
   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]

Reply via email to