Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid deprecated ArtifactFactory #489

Merged
merged 1 commit into from
Jan 6, 2025
Merged

Avoid deprecated ArtifactFactory #489

merged 1 commit into from
Jan 6, 2025

Conversation

elharo
Copy link
Contributor

@elharo elharo commented Nov 23, 2024

No description provided.

@elharo elharo requested review from kwin and michael-o November 23, 2024 13:15
@elharo elharo marked this pull request as ready for review November 23, 2024 13:17
@michael-o michael-o requested review from cstamas and removed request for michael-o November 23, 2024 14:35
@elharo elharo merged commit 3bcfbc2 into master Jan 6, 2025
52 checks passed
@@ -246,11 +243,12 @@ public void testRepositoryLayout() throws Exception {
File baseDirectory = Paths.get(targetRepository.getBasedir()).toFile();
assertTrue(baseDirectory.isDirectory());

org.apache.maven.repository.RepositorySystem repositorySystem =
lookup(org.apache.maven.repository.RepositorySystem.class);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

grr org.apache.maven.repository.RepositorySystem is also deprecated , it has only Legacy implementation ... 😄

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bleah, still trying to figure out what needs to be done for these sorts of thing. It would be too easy if whoever deprecated this way back when had documented the replacement.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😄 our deprecated code is not well documented ...
In this case you can simply use new DefaultArtifact(....)

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.

2 participants