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

[MNG-8197] Use default classifier when Eclipse Aether specifies none #1621

Merged
merged 2 commits into from
Aug 10, 2024

Conversation

desruisseaux
Copy link
Contributor

@desruisseaux desruisseaux commented Jul 27, 2024

The important change in this commit is in the implementation of getClassifier() methods. However, this commit opportunistically refactors the code with a base class shared by DefaultDependency and DefaultDependencyCoordinate implementations.

Note on build failure

Trying to compile Maven with itself (4.0.0-beta-4-SNAPSHOT) fails with a NullPointerException in the PluginsMetadataGenerator class of the "Maven Compat (deprecated)" module. The issue seems more serious than a missing null check, because according the sanity check at line 137, the plugin is operating on the wrong artifact. However, this issue is not related to this commit. Testing with the commit before this one produces the same result. Building with Maven 3 works fine.


https://issues.apache.org/jira/browse/MNG-8197

The important change in this commit is in the implementation of `getClassifier()` methods.
However, this commit opportunistically refactors the code with a base class shared by `DefaultDependency` and `DefaultDependencyCoordinate` implementations.
@cstamas cstamas requested a review from gnodet August 1, 2024 12:17
@cstamas cstamas changed the title Use default classifier when Eclipse Aether specifies none [MNG-8197] Use default classifier when Eclipse Aether specifies none Aug 9, 2024
@cstamas cstamas added this to the 4.0.0-beta-4 milestone Aug 9, 2024
@gnodet gnodet merged commit 473b537 into apache:master Aug 10, 2024
13 checks passed
@desruisseaux desruisseaux deleted the fix/classifier branch August 11, 2024 08:28
This pull request was closed.
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.

3 participants