Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -381,9 +381,13 @@ private MavenProject buildProjectFromArtifact(Artifact artifact) throws MojoExec
ProjectBuildingRequest buildingRequest =
new DefaultProjectBuildingRequest(session.getProjectBuildingRequest());
buildingRequest.setProcessPlugins(false);
if (getProject().getRemoteArtifactRepositories() != null
Comment thread
slawekjaranowski marked this conversation as resolved.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

getProject().getRemoteArtifactRepositories() it should be never null

&& !getProject().getRemoteArtifactRepositories().isEmpty()) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also getProject().getRemoteArtifactRepositories() should never be empty

buildingRequest.setRemoteRepositories(getProject().getRemoteArtifactRepositories());
}
return projectBuilder.build(artifact, buildingRequest).getProject();
} catch (ProjectBuildingException e) {
throw new MojoExecutionException("Coud not build project for " + artifact.getId(), e);
throw new MojoExecutionException("Could not build project for " + artifact.getId(), e);
}
}

Expand Down
Loading