Skip to content

Commit eb23706

Browse files
committed
Fix integration tests
1 parent 0203880 commit eb23706

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,7 @@ protected PlexusContainer container( CliRequest cliRequest )
704704
List<CoreExtension> extensionsDesc = loadCoreExtensionsDescriptors( cliRequest.multiModuleProjectDirectory );
705705

706706
List<CoreExtensionEntry> extensions =
707-
loadCoreExtensions( extensionsDesc, coreRealm, coreEntry.getExportedArtifacts() );
707+
loadCoreExtensions( cliRequest, extensionsDesc, coreRealm, coreEntry.getExportedArtifacts() );
708708

709709
ClassRealm containerRealm = setupContainerRealm( cliRequest.classWorld, coreRealm, extClassPath, extensions );
710710

@@ -812,6 +812,7 @@ protected List<CoreExtension> loadCoreExtensionsDescriptors( File multiModulePro
812812
}
813813

814814
protected List<CoreExtensionEntry> loadCoreExtensions(
815+
CliRequest cliRequest,
815816
List<CoreExtension> extensions,
816817
ClassRealm containerRealm,
817818
Set<String> providedArtifacts )
@@ -854,6 +855,8 @@ protected void configure()
854855

855856
Thread.currentThread().setContextClassLoader( container.getContainerRealm() );
856857

858+
executionRequestPopulator = container.lookup( MavenExecutionRequestPopulator.class );
859+
857860
configurationProcessors = container.lookupMap( ConfigurationProcessor.class );
858861

859862
eventSpyDispatcher = container.lookup( EventSpyDispatcher.class );

0 commit comments

Comments
 (0)