Skip to content

Commit

Permalink
support run mvn tree in test
Browse files Browse the repository at this point in the history
  • Loading branch information
lvjing2 committed Jan 22, 2024
1 parent f8d2b07 commit 34580be
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,9 @@ private Set<ArtifactItem> getAllArtifactByMavenTree() throws MojoExecutionExcept

// run maven dependency:tree
try {
return doGetAllArtifactByMavenTree(this.mavenProject);
if (this.mavenProject.getBasedir() != null) {
return doGetAllArtifactByMavenTree(this.mavenProject);
}
} catch (MojoExecutionException e) {
getLog().warn(
"execute dependency:tree failed, try to execute dependency:tree in root project");
Expand Down

0 comments on commit 34580be

Please sign in to comment.