-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[MNG-8340] Resolve parent according to the exact model location #1857
Conversation
Just a plain project with one module shade + dep reduced POM would work as an IT? |
It needs child subproject, and the shade plugin should generate the Pom in the target folder (instead of in the same directory than the Pom). |
Something is still not right, as this PR w/ shade in IT apache/maven-integration-testing#400 now causes NPE |
79f4756
to
a3cb0d1
Compare
# Conflicts: # impl/maven-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelBuilder.java
It seems this PR also fixes MNG-8336 |
@@ -913,7 +913,7 @@ private Model injectLifecycleBindings( | |||
} | |||
project.setPluginArtifactRepositories(pluginRepositories); | |||
|
|||
if (request.getRequestType() == ModelBuilderRequest.RequestType.BUILD_POM) { | |||
if (request.getRequestType() == ModelBuilderRequest.RequestType.BUILD_PROJECT) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One correct change from my "guesswork" 😄
JIRA issue: MNG-8340
We need to double check one last time that it works, or better, add an IT.