From 37c511e7a428ea13e77410a13c05aec41e79921b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoph=20L=C3=A4ubrich?= Date: Sat, 4 Nov 2023 10:56:00 +0100 Subject: [PATCH] Adjust testcase to enable classpath scanning --- .../java/org/eclipse/tycho/pomless/TychoMappingTest.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tycho-extras/tycho-pomless/src/test/java/org/eclipse/tycho/pomless/TychoMappingTest.java b/tycho-extras/tycho-pomless/src/test/java/org/eclipse/tycho/pomless/TychoMappingTest.java index f10eafbd9a..7d14079598 100644 --- a/tycho-extras/tycho-pomless/src/test/java/org/eclipse/tycho/pomless/TychoMappingTest.java +++ b/tycho-extras/tycho-pomless/src/test/java/org/eclipse/tycho/pomless/TychoMappingTest.java @@ -15,6 +15,8 @@ import java.io.File; +import org.codehaus.plexus.ContainerConfiguration; +import org.codehaus.plexus.PlexusConstants; import org.codehaus.plexus.PlexusTestCase; import org.sonatype.maven.polyglot.PolyglotModelManager; @@ -22,6 +24,13 @@ public class TychoMappingTest extends PlexusTestCase { private PolyglotModelManager polyglotModelManager; + @Override + protected void customizeContainerConfiguration(ContainerConfiguration configuration) { + super.customizeContainerConfiguration(configuration); + configuration.setAutoWiring(true); + configuration.setClassPathScanning(PlexusConstants.SCANNING_ON); + } + @Override protected void setUp() throws Exception { polyglotModelManager = lookup(PolyglotModelManager.class);