You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by sl...@apache.org on 2026/08/08 16:42:51 UTC
(maven) 02/02: Preserve component role hint
This is an automated email from the ASF dual-hosted git repository.
slachiewicz pushed a commit to branch maven-3.10.x
in repository https://gitbox.apache.org/repos/asf/maven.git
commit 4370e9bc4c8e7605387a56ec99d36f2701eeab22
Author: Vaclav Haisman <vh...@gmail.com>
AuthorDate: Sat Aug 8 15:21:18 2026 +0200
Preserve component role hint
Keep the nonexistent role hint from the legacy component tag when using maven-plugin-annotations so the fixture still models a component lookup failure.
---
.../mojo-lookup-err/plugin/src/main/java/org/plugin/TestPlugin.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/maven-embedder/src/test/error-reporting-projects/mojo-lookup-err/plugin/src/main/java/org/plugin/TestPlugin.java b/maven-embedder/src/test/error-reporting-projects/mojo-lookup-err/plugin/src/main/java/org/plugin/TestPlugin.java
index 620d20cc72..eab0714d46 100644
--- a/maven-embedder/src/test/error-reporting-projects/mojo-lookup-err/plugin/src/main/java/org/plugin/TestPlugin.java
+++ b/maven-embedder/src/test/error-reporting-projects/mojo-lookup-err/plugin/src/main/java/org/plugin/TestPlugin.java
@@ -18,7 +18,7 @@ public class TestPlugin
private Log log;
- @Component
+ @Component(hint = "nonexistent")
private MavenProject project;
public void execute()