From e0282811da2f74e197f1357e553da87bc15a5695 Mon Sep 17 00:00:00 2001 From: Guillaume Nodet Date: Fri, 13 Sep 2024 18:27:17 +0200 Subject: [PATCH 1/4] IT --- .../maven/org.apache.maven.api.di.Inject | 1 - .../extension1}/pom.xml | 2 +- .../mng8220/extension1/DumbModelParser1.java} | 8 +-- .../maven/org.apache.maven.api.di.Inject | 1 + .../extensions/extension2/pom.xml | 38 +++++++++++++ .../mng8220/extension2/DumbModelParser2.java | 53 ++++++++++++++++++ .../maven/org.apache.maven.api.di.Inject | 1 + .../extensions/extension3/pom.xml | 43 +++++++++++++++ .../mng8220/extension3/DumbModelParser3.java | 53 ++++++++++++++++++ .../META-INF/sisu/javax.inject.Named | 1 + .../extensions/extension4/pom.xml | 43 +++++++++++++++ .../mng8220/extension4/DumbModelParser4.java | 55 +++++++++++++++++++ .../META-INF/sisu/javax.inject.Named | 1 + .../extensions/pom.xml | 33 +++++++++++ .../test/.mvn/extensions.xml | 17 +++++- 15 files changed, 343 insertions(+), 7 deletions(-) delete mode 100644 core-it-suite/src/test/resources/mng-8220-extension-with-di/extension/src/main/resources/META-INF/maven/org.apache.maven.api.di.Inject rename core-it-suite/src/test/resources/mng-8220-extension-with-di/{extension => extensions/extension1}/pom.xml (97%) rename core-it-suite/src/test/resources/mng-8220-extension-with-di/{extension/src/main/java/org/apache/maven/its/mng8220/extension/DumbModelParser.java => extensions/extension1/src/main/java/org/apache/maven/its/mng8220/extension1/DumbModelParser1.java} (88%) create mode 100644 core-it-suite/src/test/resources/mng-8220-extension-with-di/extensions/extension1/src/main/resources/META-INF/maven/org.apache.maven.api.di.Inject create mode 100644 core-it-suite/src/test/resources/mng-8220-extension-with-di/extensions/extension2/pom.xml create mode 100644 core-it-suite/src/test/resources/mng-8220-extension-with-di/extensions/extension2/src/main/java/org/apache/maven/its/mng8220/extension2/DumbModelParser2.java create mode 100644 core-it-suite/src/test/resources/mng-8220-extension-with-di/extensions/extension2/src/main/resources/META-INF/maven/org.apache.maven.api.di.Inject create mode 100644 core-it-suite/src/test/resources/mng-8220-extension-with-di/extensions/extension3/pom.xml create mode 100644 core-it-suite/src/test/resources/mng-8220-extension-with-di/extensions/extension3/src/main/java/org/apache/maven/its/mng8220/extension3/DumbModelParser3.java create mode 100644 core-it-suite/src/test/resources/mng-8220-extension-with-di/extensions/extension3/src/main/resources/META-INF/sisu/javax.inject.Named create mode 100644 core-it-suite/src/test/resources/mng-8220-extension-with-di/extensions/extension4/pom.xml create mode 100644 core-it-suite/src/test/resources/mng-8220-extension-with-di/extensions/extension4/src/main/java/org/apache/maven/its/mng8220/extension4/DumbModelParser4.java create mode 100644 core-it-suite/src/test/resources/mng-8220-extension-with-di/extensions/extension4/src/main/resources/META-INF/sisu/javax.inject.Named create mode 100644 core-it-suite/src/test/resources/mng-8220-extension-with-di/extensions/pom.xml diff --git a/core-it-suite/src/test/resources/mng-8220-extension-with-di/extension/src/main/resources/META-INF/maven/org.apache.maven.api.di.Inject b/core-it-suite/src/test/resources/mng-8220-extension-with-di/extension/src/main/resources/META-INF/maven/org.apache.maven.api.di.Inject deleted file mode 100644 index cb4312828..000000000 --- a/core-it-suite/src/test/resources/mng-8220-extension-with-di/extension/src/main/resources/META-INF/maven/org.apache.maven.api.di.Inject +++ /dev/null @@ -1 +0,0 @@ -org.apache.maven.its.mng8220.extension.DumbModelParser \ No newline at end of file diff --git a/core-it-suite/src/test/resources/mng-8220-extension-with-di/extension/pom.xml b/core-it-suite/src/test/resources/mng-8220-extension-with-di/extensions/extension1/pom.xml similarity index 97% rename from core-it-suite/src/test/resources/mng-8220-extension-with-di/extension/pom.xml rename to core-it-suite/src/test/resources/mng-8220-extension-with-di/extensions/extension1/pom.xml index ce8930fdf..c9a04440b 100644 --- a/core-it-suite/src/test/resources/mng-8220-extension-with-di/extension/pom.xml +++ b/core-it-suite/src/test/resources/mng-8220-extension-with-di/extensions/extension1/pom.xml @@ -19,7 +19,7 @@ under the License. --> org.apache.maven.its.mng8220 - extension + extension1 1.0-SNAPSHOT jar diff --git a/core-it-suite/src/test/resources/mng-8220-extension-with-di/extension/src/main/java/org/apache/maven/its/mng8220/extension/DumbModelParser.java b/core-it-suite/src/test/resources/mng-8220-extension-with-di/extensions/extension1/src/main/java/org/apache/maven/its/mng8220/extension1/DumbModelParser1.java similarity index 88% rename from core-it-suite/src/test/resources/mng-8220-extension-with-di/extension/src/main/java/org/apache/maven/its/mng8220/extension/DumbModelParser.java rename to core-it-suite/src/test/resources/mng-8220-extension-with-di/extensions/extension1/src/main/java/org/apache/maven/its/mng8220/extension1/DumbModelParser1.java index 10e240381..9c3233098 100644 --- a/core-it-suite/src/test/resources/mng-8220-extension-with-di/extension/src/main/java/org/apache/maven/its/mng8220/extension/DumbModelParser.java +++ b/core-it-suite/src/test/resources/mng-8220-extension-with-di/extensions/extension1/src/main/java/org/apache/maven/its/mng8220/extension1/DumbModelParser1.java @@ -16,7 +16,7 @@ * specific language governing permissions and limitations * under the License. */ -package org.apache.maven.its.mng8220.extension; +package org.apache.maven.its.mng8220.extension1; import java.nio.file.Path; import java.util.Map; @@ -34,16 +34,16 @@ @Singleton @Named -final class DumbModelParser implements ModelParser { +final class DumbModelParser1 implements ModelParser { private final Logger logger = LoggerFactory.getLogger(getClass()); @Inject - public DumbModelParser() {} + public DumbModelParser1() {} @Override public Optional locate(Path dir) { - logger.warn("[MNG-8220] DumbModelParser Called from extension"); + logger.warn("[MNG-8220] DumbModelParser1 Called from extension"); return Optional.empty(); } diff --git a/core-it-suite/src/test/resources/mng-8220-extension-with-di/extensions/extension1/src/main/resources/META-INF/maven/org.apache.maven.api.di.Inject b/core-it-suite/src/test/resources/mng-8220-extension-with-di/extensions/extension1/src/main/resources/META-INF/maven/org.apache.maven.api.di.Inject new file mode 100644 index 000000000..851c005a9 --- /dev/null +++ b/core-it-suite/src/test/resources/mng-8220-extension-with-di/extensions/extension1/src/main/resources/META-INF/maven/org.apache.maven.api.di.Inject @@ -0,0 +1 @@ +org.apache.maven.its.mng8220.extension1.DumbModelParser1 \ No newline at end of file diff --git a/core-it-suite/src/test/resources/mng-8220-extension-with-di/extensions/extension2/pom.xml b/core-it-suite/src/test/resources/mng-8220-extension-with-di/extensions/extension2/pom.xml new file mode 100644 index 000000000..fe30147d8 --- /dev/null +++ b/core-it-suite/src/test/resources/mng-8220-extension-with-di/extensions/extension2/pom.xml @@ -0,0 +1,38 @@ + + + + org.apache.maven.its.mng8220 + extension2 + 1.0-SNAPSHOT + jar + + + + org.apache.maven + maven-api-di + 4.0.0-beta-3 + + + org.apache.maven + maven-api-impl + 4.0.0-beta-3 + + + diff --git a/core-it-suite/src/test/resources/mng-8220-extension-with-di/extensions/extension2/src/main/java/org/apache/maven/its/mng8220/extension2/DumbModelParser2.java b/core-it-suite/src/test/resources/mng-8220-extension-with-di/extensions/extension2/src/main/java/org/apache/maven/its/mng8220/extension2/DumbModelParser2.java new file mode 100644 index 000000000..29ec5a85d --- /dev/null +++ b/core-it-suite/src/test/resources/mng-8220-extension-with-di/extensions/extension2/src/main/java/org/apache/maven/its/mng8220/extension2/DumbModelParser2.java @@ -0,0 +1,53 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.maven.its.mng8220.extension2; + +import java.nio.file.Path; +import java.util.Map; +import java.util.Optional; + +import org.apache.maven.api.di.Inject; +import org.apache.maven.api.di.Named; +import org.apache.maven.api.di.Singleton; +import org.apache.maven.api.model.Model; +import org.apache.maven.api.services.Source; +import org.apache.maven.api.spi.ModelParser; +import org.apache.maven.api.spi.ModelParserException; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +@Named("dumb") +final class DumbModelParser2 implements ModelParser { + + private final Logger logger = LoggerFactory.getLogger(getClass()); + + @Inject + public DumbModelParser2() {} + + @Override + public Optional locate(Path dir) { + logger.warn("[MNG-8220] DumbModelParser2 Called from extension"); + return Optional.empty(); + } + + @Override + public Model parse(Source source, Map options) throws ModelParserException { + return null; + } +} diff --git a/core-it-suite/src/test/resources/mng-8220-extension-with-di/extensions/extension2/src/main/resources/META-INF/maven/org.apache.maven.api.di.Inject b/core-it-suite/src/test/resources/mng-8220-extension-with-di/extensions/extension2/src/main/resources/META-INF/maven/org.apache.maven.api.di.Inject new file mode 100644 index 000000000..04276f780 --- /dev/null +++ b/core-it-suite/src/test/resources/mng-8220-extension-with-di/extensions/extension2/src/main/resources/META-INF/maven/org.apache.maven.api.di.Inject @@ -0,0 +1 @@ +org.apache.maven.its.mng8220.extension2.DumbModelParser2 \ No newline at end of file diff --git a/core-it-suite/src/test/resources/mng-8220-extension-with-di/extensions/extension3/pom.xml b/core-it-suite/src/test/resources/mng-8220-extension-with-di/extensions/extension3/pom.xml new file mode 100644 index 000000000..9863e5096 --- /dev/null +++ b/core-it-suite/src/test/resources/mng-8220-extension-with-di/extensions/extension3/pom.xml @@ -0,0 +1,43 @@ + + + + org.apache.maven.its.mng8220 + extension3 + 1.0-SNAPSHOT + jar + + + + org.apache.maven + maven-api-spi + 4.0.0-beta-3 + + + org.slf4j + slf4j-api + 2.0.16 + + + javax.inject + javax.inject + 1 + + + diff --git a/core-it-suite/src/test/resources/mng-8220-extension-with-di/extensions/extension3/src/main/java/org/apache/maven/its/mng8220/extension3/DumbModelParser3.java b/core-it-suite/src/test/resources/mng-8220-extension-with-di/extensions/extension3/src/main/java/org/apache/maven/its/mng8220/extension3/DumbModelParser3.java new file mode 100644 index 000000000..5a661f890 --- /dev/null +++ b/core-it-suite/src/test/resources/mng-8220-extension-with-di/extensions/extension3/src/main/java/org/apache/maven/its/mng8220/extension3/DumbModelParser3.java @@ -0,0 +1,53 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.maven.its.mng8220.extension3; + +import java.nio.file.Path; +import java.util.Map; +import java.util.Optional; + +import javax.inject.Inject; +import javax.inject.Named; + +import org.apache.maven.api.model.Model; +import org.apache.maven.api.services.Source; +import org.apache.maven.api.spi.ModelParser; +import org.apache.maven.api.spi.ModelParserException; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +@Named("dumb") +final class DumbModelParser3 implements ModelParser { + + private final Logger logger = LoggerFactory.getLogger(getClass()); + + @Inject + public DumbModelParser3() {} + + @Override + public Optional locate(Path dir) { + logger.warn("[MNG-8220] DumbModelParser3 Called from extension"); + return Optional.empty(); + } + + @Override + public Model parse(Source source, Map options) throws ModelParserException { + return null; + } +} diff --git a/core-it-suite/src/test/resources/mng-8220-extension-with-di/extensions/extension3/src/main/resources/META-INF/sisu/javax.inject.Named b/core-it-suite/src/test/resources/mng-8220-extension-with-di/extensions/extension3/src/main/resources/META-INF/sisu/javax.inject.Named new file mode 100644 index 000000000..ad043f434 --- /dev/null +++ b/core-it-suite/src/test/resources/mng-8220-extension-with-di/extensions/extension3/src/main/resources/META-INF/sisu/javax.inject.Named @@ -0,0 +1 @@ +org.apache.maven.its.mng8220.extension3.DumbModelParser3 \ No newline at end of file diff --git a/core-it-suite/src/test/resources/mng-8220-extension-with-di/extensions/extension4/pom.xml b/core-it-suite/src/test/resources/mng-8220-extension-with-di/extensions/extension4/pom.xml new file mode 100644 index 000000000..7f1c50f0d --- /dev/null +++ b/core-it-suite/src/test/resources/mng-8220-extension-with-di/extensions/extension4/pom.xml @@ -0,0 +1,43 @@ + + + + org.apache.maven.its.mng8220 + extension4 + 1.0-SNAPSHOT + jar + + + + org.apache.maven + maven-api-spi + 4.0.0-beta-3 + + + org.slf4j + slf4j-api + 2.0.16 + + + javax.inject + javax.inject + 1 + + + diff --git a/core-it-suite/src/test/resources/mng-8220-extension-with-di/extensions/extension4/src/main/java/org/apache/maven/its/mng8220/extension4/DumbModelParser4.java b/core-it-suite/src/test/resources/mng-8220-extension-with-di/extensions/extension4/src/main/java/org/apache/maven/its/mng8220/extension4/DumbModelParser4.java new file mode 100644 index 000000000..418040dc4 --- /dev/null +++ b/core-it-suite/src/test/resources/mng-8220-extension-with-di/extensions/extension4/src/main/java/org/apache/maven/its/mng8220/extension4/DumbModelParser4.java @@ -0,0 +1,55 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.maven.its.mng8220.extension4; + +import java.nio.file.Path; +import java.util.Map; +import java.util.Optional; + +import javax.inject.Inject; +import javax.inject.Named; +import javax.inject.Singleton; + +import org.apache.maven.api.model.Model; +import org.apache.maven.api.services.Source; +import org.apache.maven.api.spi.ModelParser; +import org.apache.maven.api.spi.ModelParserException; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +@Named +@Singleton +final class DumbModelParser4 implements ModelParser { + + private final Logger logger = LoggerFactory.getLogger(getClass()); + + @Inject + public DumbModelParser4() {} + + @Override + public Optional locate(Path dir) { + logger.warn("[MNG-8220] DumbModelParser4 Called from extension"); + return Optional.empty(); + } + + @Override + public Model parse(Source source, Map options) throws ModelParserException { + return null; + } +} diff --git a/core-it-suite/src/test/resources/mng-8220-extension-with-di/extensions/extension4/src/main/resources/META-INF/sisu/javax.inject.Named b/core-it-suite/src/test/resources/mng-8220-extension-with-di/extensions/extension4/src/main/resources/META-INF/sisu/javax.inject.Named new file mode 100644 index 000000000..a7e1eca30 --- /dev/null +++ b/core-it-suite/src/test/resources/mng-8220-extension-with-di/extensions/extension4/src/main/resources/META-INF/sisu/javax.inject.Named @@ -0,0 +1 @@ +org.apache.maven.its.mng8220.extension4.DumbModelParser4 \ No newline at end of file diff --git a/core-it-suite/src/test/resources/mng-8220-extension-with-di/extensions/pom.xml b/core-it-suite/src/test/resources/mng-8220-extension-with-di/extensions/pom.xml new file mode 100644 index 000000000..d5162b99e --- /dev/null +++ b/core-it-suite/src/test/resources/mng-8220-extension-with-di/extensions/pom.xml @@ -0,0 +1,33 @@ + + + + org.apache.maven.its.mng8220 + parent + 1.0-SNAPSHOT + pom + + + extension1 + extension2 + extension3 + extension4 + + + diff --git a/core-it-suite/src/test/resources/mng-8220-extension-with-di/test/.mvn/extensions.xml b/core-it-suite/src/test/resources/mng-8220-extension-with-di/test/.mvn/extensions.xml index 32b3b4ea3..5a77b5385 100644 --- a/core-it-suite/src/test/resources/mng-8220-extension-with-di/test/.mvn/extensions.xml +++ b/core-it-suite/src/test/resources/mng-8220-extension-with-di/test/.mvn/extensions.xml @@ -1,7 +1,22 @@ org.apache.maven.its.mng8220 - extension + extension1 + 1.0-SNAPSHOT + + + org.apache.maven.its.mng8220 + extension2 + 1.0-SNAPSHOT + + + org.apache.maven.its.mng8220 + extension3 + 1.0-SNAPSHOT + + + org.apache.maven.its.mng8220 + extension4 1.0-SNAPSHOT From 0df93e4aa4cc9067c4e17a837799c84588ce3313 Mon Sep 17 00:00:00 2001 From: Guillaume Nodet Date: Fri, 13 Sep 2024 18:37:27 +0200 Subject: [PATCH 2/4] code style --- .../maven/its/mng8220/extension2/DumbModelParser2.java | 1 - .../maven/its/mng8220/extension3/DumbModelParser3.java | 6 +++--- .../maven/its/mng8220/extension4/DumbModelParser4.java | 8 ++++---- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/core-it-suite/src/test/resources/mng-8220-extension-with-di/extensions/extension2/src/main/java/org/apache/maven/its/mng8220/extension2/DumbModelParser2.java b/core-it-suite/src/test/resources/mng-8220-extension-with-di/extensions/extension2/src/main/java/org/apache/maven/its/mng8220/extension2/DumbModelParser2.java index 29ec5a85d..4148be2da 100644 --- a/core-it-suite/src/test/resources/mng-8220-extension-with-di/extensions/extension2/src/main/java/org/apache/maven/its/mng8220/extension2/DumbModelParser2.java +++ b/core-it-suite/src/test/resources/mng-8220-extension-with-di/extensions/extension2/src/main/java/org/apache/maven/its/mng8220/extension2/DumbModelParser2.java @@ -24,7 +24,6 @@ import org.apache.maven.api.di.Inject; import org.apache.maven.api.di.Named; -import org.apache.maven.api.di.Singleton; import org.apache.maven.api.model.Model; import org.apache.maven.api.services.Source; import org.apache.maven.api.spi.ModelParser; diff --git a/core-it-suite/src/test/resources/mng-8220-extension-with-di/extensions/extension3/src/main/java/org/apache/maven/its/mng8220/extension3/DumbModelParser3.java b/core-it-suite/src/test/resources/mng-8220-extension-with-di/extensions/extension3/src/main/java/org/apache/maven/its/mng8220/extension3/DumbModelParser3.java index 5a661f890..4d33f4e1a 100644 --- a/core-it-suite/src/test/resources/mng-8220-extension-with-di/extensions/extension3/src/main/java/org/apache/maven/its/mng8220/extension3/DumbModelParser3.java +++ b/core-it-suite/src/test/resources/mng-8220-extension-with-di/extensions/extension3/src/main/java/org/apache/maven/its/mng8220/extension3/DumbModelParser3.java @@ -18,13 +18,13 @@ */ package org.apache.maven.its.mng8220.extension3; +import javax.inject.Inject; +import javax.inject.Named; + import java.nio.file.Path; import java.util.Map; import java.util.Optional; -import javax.inject.Inject; -import javax.inject.Named; - import org.apache.maven.api.model.Model; import org.apache.maven.api.services.Source; import org.apache.maven.api.spi.ModelParser; diff --git a/core-it-suite/src/test/resources/mng-8220-extension-with-di/extensions/extension4/src/main/java/org/apache/maven/its/mng8220/extension4/DumbModelParser4.java b/core-it-suite/src/test/resources/mng-8220-extension-with-di/extensions/extension4/src/main/java/org/apache/maven/its/mng8220/extension4/DumbModelParser4.java index 418040dc4..a6c4951f5 100644 --- a/core-it-suite/src/test/resources/mng-8220-extension-with-di/extensions/extension4/src/main/java/org/apache/maven/its/mng8220/extension4/DumbModelParser4.java +++ b/core-it-suite/src/test/resources/mng-8220-extension-with-di/extensions/extension4/src/main/java/org/apache/maven/its/mng8220/extension4/DumbModelParser4.java @@ -18,14 +18,14 @@ */ package org.apache.maven.its.mng8220.extension4; -import java.nio.file.Path; -import java.util.Map; -import java.util.Optional; - import javax.inject.Inject; import javax.inject.Named; import javax.inject.Singleton; +import java.nio.file.Path; +import java.util.Map; +import java.util.Optional; + import org.apache.maven.api.model.Model; import org.apache.maven.api.services.Source; import org.apache.maven.api.spi.ModelParser; From 18078b09c4ef4841c114559a7cbff809312fd7fb Mon Sep 17 00:00:00 2001 From: Guillaume Nodet Date: Sat, 14 Sep 2024 12:22:31 +0200 Subject: [PATCH 3/4] Fix test --- .../apache/maven/it/MavenITmng8220ExtensionWithDITest.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng8220ExtensionWithDITest.java b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng8220ExtensionWithDITest.java index 51db74df0..cf62cfc3a 100644 --- a/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng8220ExtensionWithDITest.java +++ b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng8220ExtensionWithDITest.java @@ -50,6 +50,9 @@ public void testitModel() throws Exception { verifier.addCliArgument("validate"); verifier.execute(); verifier.verifyErrorFreeLog(); - verifier.verifyTextInLog("[MNG-8220] DumbModelParser Called from extension"); + verifier.verifyTextInLog("[MNG-8220] DumbModelParser1 Called from extension"); + verifier.verifyTextInLog("[MNG-8220] DumbModelParser2 Called from extension"); + verifier.verifyTextInLog("[MNG-8220] DumbModelParser3 Called from extension"); + verifier.verifyTextInLog("[MNG-8220] DumbModelParser4 Called from extension"); } } From f478b17a75302c62ae340afc10a3e9b21505ed42 Mon Sep 17 00:00:00 2001 From: Guillaume Nodet Date: Mon, 16 Sep 2024 17:58:46 +0200 Subject: [PATCH 4/4] Fix IT --- .../org/apache/maven/it/MavenITmng8220ExtensionWithDITest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng8220ExtensionWithDITest.java b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng8220ExtensionWithDITest.java index cf62cfc3a..d99bdbfd4 100644 --- a/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng8220ExtensionWithDITest.java +++ b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng8220ExtensionWithDITest.java @@ -41,7 +41,7 @@ public MavenITmng8220ExtensionWithDITest() { public void testitModel() throws Exception { File testDir = ResourceExtractor.simpleExtractResources(getClass(), "/mng-8220-extension-with-di"); - Verifier verifier = newVerifier(new File(testDir, "extension").getAbsolutePath()); + Verifier verifier = newVerifier(new File(testDir, "extensions").getAbsolutePath()); verifier.addCliArgument("install"); verifier.execute(); verifier.verifyErrorFreeLog();