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:30 UTC

[maven-artifact-plugin] branch MARTIFACT-38 created (now ce29da1)

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

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


      at ce29da1  [MARTIFACT-38] Show failure reason and fail build if a plugin is marked as "fail"

This branch includes the following new commits:

     new ce29da1  [MARTIFACT-38] Show failure reason and fail build if a plugin is marked as "fail"

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



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

Posted by mi...@apache.org.
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
                 {