Skip to content

Commit

Permalink
[MPIR-429] disable plugin processing when building projects
Browse files Browse the repository at this point in the history
  • Loading branch information
hboutemy committed Mar 8, 2023
1 parent d6a6c9c commit 5757c0d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ public void executeReport( Locale locale )
buildingRequest.setLocalRepository( localRepository );
buildingRequest.setRemoteRepositories( remoteRepositories );
buildingRequest.setPluginArtifactRepositories( pluginRepositories );

buildingRequest.setProcessPlugins( false );

RepositoryUtils repoUtils =
new RepositoryUtils( getLog(), projectBuilder, repositorySystem, resolver,
project.getRemoteArtifactRepositories(), project.getPluginArtifactRepositories(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,8 @@ public void renderBody()

ProjectBuildingRequest buildingRequest = new DefaultProjectBuildingRequest();
buildingRequest.setLocalRepository( localRepository );

buildingRequest.setProcessPlugins( false );

for ( String module : modules )
{
MavenProject moduleProject = getModuleFromReactor( project, reactorProjects, module );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ private void renderSectionPluginManagement()

ProjectBuildingRequest buildRequest = new DefaultProjectBuildingRequest( buildingRequest );
buildRequest.setRemoteRepositories( project.getPluginArtifactRepositories() );
buildRequest.setProcessPlugins( false );

for ( Plugin plugin : pluginManagement )
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ private void renderSectionPlugins( boolean isPlugins )

ProjectBuildingRequest buildRequest = new DefaultProjectBuildingRequest( buildingRequest );
buildRequest.setRemoteRepositories( project.getPluginArtifactRepositories() );
buildRequest.setProcessPlugins( false );

for ( GAV plugin : list )
{
Expand Down

0 comments on commit 5757c0d

Please sign in to comment.