Jayesh45-master opened a new issue, #11608:
URL: https://github.com/apache/maven/issues/11608
### Affected version
4.0.0-rc-5
### Bug description
I ran `mvnup apply --model-version 4.1.0` using Maven Upgrade Tool 4.0.0-rc-5
on the apache/httpcomponents-client repository.
After the upgrade, running `mvn clean verify` fails with a parent POM cycle
error. The resulting POM hierarchy becomes invalid and Maven refuses to
build.
This issue appears to be introduced by the model upgrade process and was not
present before running mvnup.
steps to reproduce
1. Clone apache/httpcomponents-client
2. Checkout commit ee6ebee18
3. Run:
mvnup apply --model-version 4.1.0
4. Run:
mvn clean verify
reults
The build fails with multiple errors like:
The parents form a cycle:
httpclient5-parent -> pom.xml ->
httpcomponents-parent -> pom.xml ->
httpcomponents-parent
Maven is unable to resolve the project due to a cyclic parent relationship.
expected result
The upgraded project should build successfully after applying mvnup,
or mvnup should avoid producing an invalid POM structure with cyclic parents.
additional context
- The issue does not occur before running mvnup.
- Removing mvnup-generated changes restores a successful build.
- This seems related to how parent POMs or project roots are rewritten
during the modelVersion 4.1.0 upgrade.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]