You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "slachiewicz (via GitHub)" <gi...@apache.org> on 2026/10/01 06:11:17 UTC
[PR] Read the original model through one helper in enforcer-rules [maven-enforcer]
slachiewicz opened a new pull request, #1049:
URL: https://github.com/apache/maven-enforcer/pull/1049
Four rules (`banDependencyManagementScope`, `banDistributionManagement`, `requireExplicitDependencyScope`, `requireNoRepositories`) read `MavenProject.getOriginalModel()` directly. They now go through a package-private `OriginalModels.read(project)`, so the Maven 4 port, where the project exposes no original model, replaces one method body. `banDuplicatePomDependencyVersions` keeps re-reading the POM file. No behaviour change.
Part of apache/maven#13309.
Verified: `mvn verify -Prun-its -Dinvoker.test=<the four rules' ITs>` → 286 unit tests, 14 ITs passed.
--
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: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Read the original model through one helper in enforcer-rules [maven-enforcer]
Posted by "slawekjaranowski (via GitHub)" <gi...@apache.org>.
slawekjaranowski commented on PR #1049:
URL: https://github.com/apache/maven-enforcer/pull/1049#issuecomment-5927080447
There is: `org.apache.maven.api.Project#getModel` in Maven 4 API ... is it not the method?
--
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: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Read the original model through one helper in enforcer-rules [maven-enforcer]
Posted by "slachiewicz (via GitHub)" <gi...@apache.org>.
slachiewicz closed pull request #1049: Read the original model through one helper in enforcer-rules
URL: https://github.com/apache/maven-enforcer/pull/1049
--
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: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Read the original model through one helper in enforcer-rules [maven-enforcer]
Posted by "slachiewicz (via GitHub)" <gi...@apache.org>.
slachiewicz commented on PR #1049:
URL: https://github.com/apache/maven-enforcer/pull/1049#issuecomment-5928468170
3.x cleanups are here to cleanups before update. There is also separate branch to see what upgrade to v4 means. I'll rebase 2nd branches once cleanups are merged/backported
--
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: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org