maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mirko Friedenhagen <mfriedenha...@gmail.com>
Subject Re: disabling default plugin from phase?
Date Wed, 02 Dec 2015 21:58:49 GMT
Hello Martin,

as a hack you may override this in your pluginManagement by specifying
an invalid phase.
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-source-plugin</artifactId>
                    <version>${maven-source-plugin.version}</version>
                    <inherited>true</inherited>
                    <executions>
                        <!-- suppress seperate generation of sources-jar during
                             run of release:stage, see

http://blog.peterlynch.ca/2010/05/maven-how-to-prevent-generate-sources.html
                        -->
                        <execution>
                            <id>attach-sources</id>
                            <phase>DISABLE_FORKED_LIFECYCLE_MSOURCES-13</phase>
                        </execution>
                        <execution>
                            <id>default-jar-no-fork</id>
                            <goals>
                                <goal>jar-no-fork</goal>
                            </goals>
                        </execution>
                    </executions>
                </plugin>
Regards Mirko
--
http://illegalstateexception.blogspot.com/
https://github.com/mfriedenhagen/ (http://osrc.dfm.io/mfriedenhagen)
https://bitbucket.org/mfriedenhagen/


On Wed, Dec 2, 2015 at 9:57 PM, Martin Gainty <mgainty@hotmail.com> wrote:
> Folks-
> is there any way to disable a particular plugin (which is somehow declared as a default
plugin for that phase )from executing in that phase?
>
> Thanks!
> Martin
> ______________________________________________
>
>

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


Mime
View raw message