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 @@ -145,7 +145,8 @@ void addDependencySet(
: null;

for (final Artifact depArtifact : dependencyArtifacts) {
ProjectBuildingRequest pbr = getProjectBuildingRequest(configSource);
boolean isProjectArtifact = depArtifact.getRepository() == null;
ProjectBuildingRequest pbr = getProjectBuildingRequest(configSource, isProjectArtifact);
MavenProject depProject;
try {
ProjectBuildingResult build = projectBuilder1.build(depArtifact, pbr);
Expand All @@ -165,10 +166,15 @@ void addDependencySet(
}
}

private ProjectBuildingRequest getProjectBuildingRequest(AssemblerConfigurationSource configSource) {
return new DefaultProjectBuildingRequest(configSource.getMavenSession().getProjectBuildingRequest())
.setValidationLevel(ModelBuildingRequest.VALIDATION_LEVEL_MINIMAL)
.setProcessPlugins(false);
private ProjectBuildingRequest getProjectBuildingRequest(
AssemblerConfigurationSource configSource, boolean isProjectArtifact) {
DefaultProjectBuildingRequest pbr =
new DefaultProjectBuildingRequest(configSource.getMavenSession().getProjectBuildingRequest());
if (!isProjectArtifact) {
pbr.setValidationLevel(ModelBuildingRequest.VALIDATION_LEVEL_MINIMAL)
.setProcessPlugins(false);
}
return pbr;
}

private boolean isUnpackWithOptions(DependencySet dependencySet) {
Expand Down
Loading