SanketHajare44 opened a new pull request, #1087:
URL: https://github.com/apache/maven-archetype/pull/1087
## Description
This PR addresses issue #1086 by removing deprecated Maven
`ArtifactRepository` API usage.
### Changes Made
- Removed the deprecated `ArtifactRepository` import from
`ArchetypeGenerationRequest`.
- Removed deprecated `localRepository` and `remoteArtifactRepositories`
fields.
- Removed their corresponding getter and setter methods.
- Removed deprecated `setRemoteArtifactRepositories()` usage from
`CreateProjectFromArchetypeMojo`.
- Removed deprecated `setLocalRepository()` usage from
`CreateProjectFromArchetypeMojo`.
- Retained modern repository APIs:
- `project.getRemoteProjectRepositories()`
- `session.getRepositorySession()`
### Verification
- Executed `mvn verify`.
- Build completed successfully (`BUILD SUCCESS`).
- 36 tests passed, 0 failures, 0 errors.
Closes #1086
---
To make clear that you license your contribution under
the [Apache License Version 2.0, January
2004](https://www.apache.org/licenses/LICENSE-2.0)
check one of the following:
- [x] I hereby declare this contribution to be licensed under the Apache
License Version 2.0, January 2004](https://www.apache.org/licenses/LICENSE-2.0)
- [ ] I hereby declare that I have filed an [Apache Individual Contributor
License Agreement](https://www.apache.org/licenses/icla.pdf).
--
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]