[
https://issues.apache.org/jira/browse/MNG-8301?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Maarten Mulders resolved MNG-8301.
----------------------------------
Resolution: Not A Problem
Following MNG-8190, the observed behaviour is expected: a POM that wants to
leverage features from Maven 4 should explicitly adhere to the 4.1.0 XSD and
modelVersion.
> [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.1.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)