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-8591] Fix default value for plugin resolution (which has always been null) #2124

Merged
merged 1 commit into from
Feb 25, 2025

Conversation

gnodet
Copy link
Contributor

@gnodet gnodet commented Feb 25, 2025

JIRA issue: MNG-8591
Fixes apache/maven-clean-plugin#104

The cause is that Maven 3 has a hand-written parser for the plugin.xml. So while the schema was specifying a default value of runtime, this was not the one actually used, as the code was only setting the value when something was specified in the xml. Maven 4 now uses a modello generated reader which actually uses the default value which leads to the problem reported above. Removing the default value from the schema will fix the problem and align the schema with the actual behavior in Maven 3.

@gnodet gnodet added this to the 4.0.0-rc-3 milestone Feb 25, 2025
@gnodet gnodet changed the title Fix default value for plugin resolution (which has always been null) [MNG-8591] Fix default value for plugin resolution (which has always been null) Feb 25, 2025
@gnodet gnodet requested a review from cstamas February 25, 2025 08:14
@gnodet gnodet merged commit 1cf5f4a into apache:master Feb 25, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4.0.0-beta-1 fails in multi module projects
2 participants