Skip to content

Commit

Permalink
[MASSEMBLY-1029] Use minimal level for model validation (#204)
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodet committed Apr 25, 2024
1 parent d745bc4 commit 99ad545
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
import org.apache.maven.artifact.resolver.filter.ArtifactFilter;
import org.apache.maven.model.Dependency;
import org.apache.maven.model.Model;
import org.apache.maven.model.building.ModelBuildingRequest;
import org.apache.maven.plugins.assembly.AssemblerConfigurationSource;
import org.apache.maven.plugins.assembly.InvalidAssemblerConfigurationException;
import org.apache.maven.plugins.assembly.archive.ArchiveCreationException;
Expand Down Expand Up @@ -166,6 +167,7 @@ void addDependencySet(

private ProjectBuildingRequest getProjectBuildingRequest(AssemblerConfigurationSource configSource) {
return new DefaultProjectBuildingRequest(configSource.getMavenSession().getProjectBuildingRequest())
.setValidationLevel(ModelBuildingRequest.VALIDATION_LEVEL_MINIMAL)
.setProcessPlugins(false);
}

Expand Down

0 comments on commit 99ad545

Please sign in to comment.