Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodet committed Jan 8, 2025
1 parent f04fc52 commit dc84751
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1003,8 +1003,11 @@ private ModelSource getParentPomFile(Model childModel, ModelSource source) {
}

String parentPath = childModel.getParent().getRelativePath();
if (parentPath == null) {
parentPath = "../pom.xml";
}

if (parentPath == null || parentPath.length() <= 0) {
if (parentPath.length() <= 0) {
return null;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public void testitShouldResolveTheDependenciesWithoutBuildConsumer() throws Exce
verifier.setAutoclean(false);

verifier.addCliArgument("-Drevision=1.2");
verifier.addCliArgument("-Dmaven.consumerpom=false");
verifier.addCliArgument("-Dmaven.consumer.pom=false");
verifier.setLogFileName("install-log.txt");
verifier.addCliArguments("clean", "install");
verifier.execute();
Expand All @@ -80,7 +80,7 @@ public void testitShouldResolveTheDependenciesWithBuildConsumer() throws Excepti
verifier.setForkJvm(true); // TODO: why?

verifier.addCliArgument("-Drevision=1.2");
verifier.addCliArgument("-Dmaven.consumerpom=true");
verifier.addCliArgument("-Dmaven.consumer.pom=true");
verifier.setLogFileName("install-log.txt");
verifier.addCliArguments("clean", "install");
verifier.execute();
Expand Down

0 comments on commit dc84751

Please sign in to comment.