[ https://issues.apache.org/jira/browse/MENFORCER-231?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16239751#comment-16239751 ]
Sylwester Lachiewicz commented on MENFORCER-231: ------------------------------------------------ With Maven 3.5.2 mvn validate returns error. [ERROR] [ERROR] Some problems were encountered while processing the POMs: [FATAL] Non-resolvable parent POM for com.example:child-1:[unknown-version]: Could not find artifact com.example:root:pom:1.1-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ line 4, column 11 @ [ERROR] The build could not read 1 project -> [Help 1] [ERROR] [ERROR] The project com.example:child-1:[unknown-version] (C:\projects\APACHE-MAVEN\WORK\MENFORCER-231\child1\child-1\pom.xml) has 1 error [ERROR] Non-resolvable parent POM for com.example:child-1:[unknown-version]: Could not find artifact com.example:root:pom:1.1-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ line 4, column 11 -> [Help 2] > Reactor Module Convergence doesn't work when relativePath is set > ---------------------------------------------------------------- > > Key: MENFORCER-231 > URL: https://issues.apache.org/jira/browse/MENFORCER-231 > Project: Maven Enforcer Plugin > Issue Type: Bug > Components: Standard Rules > Affects Versions: 1.4 > Reporter: Daniel Roig > Fix For: 3.0.1 > > Attachments: menforcer-231.zip > > > When setting version to X in the root pom of a multi-module build and version > Y in a child pom and the child pom specifies a correct {{<relativePath>}} tag > in the parent section of the child pom, Maven will not fail the build. > I tried invoking {{mvn validate}} from the root and it reported that the > build succeeded. However, if I remove the {{<relativePath>}} from the parent > section, the enforcer rule correctly reports that the module build is > incoherent. > Moreover, if I invoke {{mvn -pl :sub-module validate}} _with_ the > {{<relativePath>}} reinserted, it will again correctly report an incoherent > build. -- This message was sent by Atlassian JIRA (v6.4.14#64029)