maven-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Igor Fedorenko <i...@ifedorenko.com>
Subject Re: How can I get my Mojo to skip
Date Tue, 22 Apr 2014 16:59:58 GMT
Maven does not provide generic way to skip mojo executions. This needs
to be explicitly implemented in my-maven-plugin.

--
Regards,
Igor

On 2014-04-22, 12:13, DK wrote:
> If I add the following to my Maven plugin configuration it still executes the
> plugin goal.
> Is there something I need to do in the Mojo code to obey the skip flag?
>
>              <plugin>
>                  <groupId>com.my.maven.plugins</groupId>
>                  <artifactId>my-maven-plugin</artifactId>
>                  <version>1.0-SNAPSHOT</version>
>                  <configuration>
>                      <skip>true</skip>
>                  </configuration>
>                  <executions>
>                      <execution>
>                          <id>some-goal</id>
>                          <phase>pre-integration-test</phase>
>                          <goals>
>                              <goal>some-goal</goal>
>                          </goals>
>                      </execution>
>                  </executions>
>              </plugin>
>
>
>
> --
> View this message in context: http://maven.40175.n5.nabble.com/How-can-I-get-my-Mojo-to-skip-tp5791779.html
> Sent from the Maven Developers mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Mime
View raw message