Closed onacit closed 4 months ago
Execution ID should be not matter.
I don't see usage of execution ID in code:
But to be sure we can prapare a UnitTest or change excution ID in existing IT.
@slawekjaranowski Thank you for your comment.
I created a simple repository contains two pom files, namely pom1.xml
and pom2.xml
.
https://github.com/onacit/mojohaus-versions-issues-1034
diff pom1.xml pom2.xml
379,380c379,380
< <id>enforce-require-maven-version</id>
< <!--id>enforce-maven</id-->
---
> <!--id>enforce-require-maven-version</id-->
> <id>enforce-maven</id>
I could reproduce the different output.
$ mvn -f pom1.xml versions:display-plugin-updates
...
[ERROR] Project requires an incorrect minimum version of Maven.
[ERROR] Update the pom.xml to contain maven-enforcer-plugin to
[ERROR] force the Maven version which is needed to build this project.
[ERROR] See https://maven.apache.org/enforcer/enforcer-rules/requireMavenVersion.html
[ERROR] Using the minimum version of Maven: 3.2.5
...
$ mvn -f pom2.xml versions:display-plugin-updates
...
[INFO] BUILD SUCCESS
...
@onacit thanks for reproduce.
Can you clear your examples poms to have only enforcer configuration without parent and any other stuff.
@slawekjaranowski The parent! Yes, the parent might the problem which has a different execution id.
That's why I keep getting the warning message for all my repositories which each refers the same parent.
Can we resolve this issue, with the parent configured, as a specific case?
Hi. I have looked into this, but I can't seem to be able to reproduce the reported issue. Please try to isolate the issue, create a small pom.xml without any parent. If you insist of testing a case with a parent, please create two pom.xml files, one being a parent of another, and test using them. Please don't refer to any files in any remote repository. Thanks.
When maven-enforcer-plugin configured like this,
The
display-plugin-updates
complains.I managed to find the cause. I need to change the execution id like this.
Should find the
requireMavenVersion
rule not seeking the execution id