You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Maarten Mulders (Jira)" <ji...@apache.org> on 2024/10/12 15:13:00 UTC
[jira] [Commented] (MNG-8301) [REGRESSION] Can't build a project without modelVersion=4.1.0 but with 4.1.0 (beta-4) XSD
[ https://issues.apache.org/jira/browse/MNG-8301?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17888910#comment-17888910 ]
Maarten Mulders commented on MNG-8301:
--------------------------------------
I have created a PR with an integration test that illustrates the issue: [apache/maven-integration-testing #386|https://github.com/apache/maven-integration-testing/pull/386].
I have also run a {{git bisect}} on Maven using this project with {{mvn validate}} as the verification. The outcome is that [2d224623|https://github.com/apache/maven/commit/2d224623a32770401e0a5a8aecf1333797f89b8e] is the first bad commit. [~gnodet], you are the author of that commit - maybe you have any clue?
> [REGRESSION] Can't build a project without modelVersion=4.1.0 but with 4.1.0 (beta-4) XSD
> -----------------------------------------------------------------------------------------
>
> Key: MNG-8301
> URL: https://issues.apache.org/jira/browse/MNG-8301
> Project: Maven
> Issue Type: Bug
> Components: POM
> Affects Versions: 4.0.0-beta-5
> Environment: Apache Maven 4.0.0-beta-5-SNAPSHOT (fee69f2f89c6f32dbef0ec55a7f6e8c071d4b6a9)
> Java version: 23, vendor: Eclipse Adoptium, runtime: /Library/Java/JavaVirtualMachines/temurin-23.jdk/Contents/Home
> OS name: "mac os x", version: "14.6.1", arch: "aarch64", family: "mac"
> Reporter: Didier Loiseau
> Priority: Major
>
> A project whose pom.xml refers to the [4.0.0-beta-4 XSD|https://maven.apache.org/xsd/maven-4.1.0-beta-4.xsd] and that lacks a {{modelVersion}} element used to be buildable with Maven 4.0.0-beta-4. Maven would infer from the XSD that it should use _modelVersion_ 4.1.0.
> With the current snapshots of 4.0.0-beta-5, it can no longer be built:
> {quote}{{[ERROR] The project org.apache.maven.its.mng8301:module-b:1-SNAPSHOT (/Users/maarten/Code/open-source/maven/m4-no-modelversion-repro/module-b/pom.xml) has 1 error}}
> {{[ERROR] 'dependencies.dependency.version' for org.apache.maven.repro:module-a:jar is missing. @ org.apache.maven.its.mng8301:module-b:[unknown-version], file:///Users/maarten/Code/open-source/maven/m4-no-modelversion-repro/module-b/pom.xml, line 17, column 9}}
> {quote}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)