You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by GitBox <gi...@apache.org> on 2021/07/16 15:12:48 UTC
[GitHub] [maven-shade-plugin] eolivelli commented on a change in pull request #90: [MSHADE-382] - Add property to skip execution
eolivelli commented on a change in pull request #90:
URL: https://github.com/apache/maven-shade-plugin/pull/90#discussion_r671332232
##########
File path: src/main/java/org/apache/maven/plugins/shade/mojo/ShadeMojo.java
##########
@@ -385,12 +385,23 @@
@Inject
private Map<String, Shader> shaders;
+ /**
+ * When true, skips the execution of this MOJO.
+ * @since 3.3.0
+ */
+ @Parameter( defaultValue = "false" )
+ private boolean skip;
+
/**
* @throws MojoExecutionException in case of an error.
*/
public void execute()
throws MojoExecutionException
{
+ if ( skip )
+ {
+ return;
Review comment:
Can we log something ?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org