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-8349] Avoid exceptions with invalid modelVersion #1848

Merged
merged 1 commit into from
Oct 24, 2024

Conversation

gnodet
Copy link
Contributor

@gnodet gnodet commented Oct 24, 2024

JIRA issue: MNG-8349

The output is now the expected one (albeit duplicated):

[INFO] Scanning for projects...
[ERROR] Some problems were encountered while processing the POMs
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]   
[ERROR]   The project org.test:foo:jar:1.0-SNAPSHOT (/Users/gnodet/tmp/MNG-8189/pom.xml) has 2 errors
[ERROR]     'modelVersion' must be one of [4.0.0, 4.1.0] but is '4..0.0'. @ org.test:foo:1.0-SNAPSHOT, file:///Users/gnodet/tmp/MNG-8189/pom.xml, line 2, column 3
[ERROR]     'modelVersion' must be one of [4.0.0, 4.1.0] but is '4..0.0'. @ org.test:foo:1.0-SNAPSHOT, file:///Users/gnodet/tmp/MNG-8189/pom.xml, line 2, column 3
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the '-e' switch
[ERROR] Re-run Maven using the '-X' switch to enable verbose output
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException

@gnodet gnodet added this to the 4.0.0-beta-6 milestone Oct 24, 2024
@gnodet gnodet merged commit 9f2ef34 into apache:master Oct 24, 2024
13 checks passed
@gnodet gnodet deleted the MNG-8349 branch October 24, 2024 14:37
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