You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by mi...@apache.org on 2023/02/01 14:29:31 UTC

[maven-artifact-plugin] 01/01: [MARTIFACT-38] Show failure reason and fail build if a plugin is marked as "fail"

This is an automated email from the ASF dual-hosted git repository.

michaelo pushed a commit to branch MARTIFACT-38
in repository https://gitbox.apache.org/repos/asf/maven-artifact-plugin.git

commit ce29da12847c07caae1183e3743bcf56887522ab
Author: Michael Osipov <mi...@apache.org>
AuthorDate: Wed Feb 1 15:29:22 2023 +0100

    [MARTIFACT-38] Show failure reason and fail build if a plugin is marked as "fail"
---
 .../apache/maven/plugins/artifact/buildinfo/CheckBuildPlanMojo.java    | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/maven/plugins/artifact/buildinfo/CheckBuildPlanMojo.java b/src/main/java/org/apache/maven/plugins/artifact/buildinfo/CheckBuildPlanMojo.java
index 94e8362..c609fef 100644
--- a/src/main/java/org/apache/maven/plugins/artifact/buildinfo/CheckBuildPlanMojo.java
+++ b/src/main/java/org/apache/maven/plugins/artifact/buildinfo/CheckBuildPlanMojo.java
@@ -125,7 +125,8 @@ public class CheckBuildPlanMojo
                 }
                 else if ( issue.startsWith( "fail:" ) )
                 {
-                    getLog().warn( "plugin without solution " + id );
+                    getLog().error( "plugin without solution " + id + ", see " + issue.substring( 5 ) );
+                    fail = true;
                 }
                 else
                 {