-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do not execute any phase for maven plugin :start #9128
Conversation
Thanks for this PR, but can you please describe what is the problem that this PR would be fixing? |
Given thus it's almost sure This is inconvenient if other goals are also bound to |
This is just the recommended phase following the maven "convention over configuration" approach. You can override this with your own configuration to specify a different phase. <plugin>
<artifactId>jetty-maven-plugin</artifactId>
<phase>prepare</phase>
</plugin> or <plugin>
<artifactId>jetty-maven-plugin</artifactId>
<executions>
<execution>
<phase>prepare</phase>
</execution>
</executions>
</plugin> There's no need to remove this from the codebase. |
Not going to merge this. |
I don't think so.
I can't. This is not about goal being bound to phase (there is no default one set for this goal). This is about extra execution of life cycle.
Please use this goal once and reconsider. |
Just for completeness, here's my setup:
in the end, as the This however results in
But it was executed in line 13 already. How can I avoid that second run? |
Open an issue, and please provide a link to an example project. (preferably a github repo) |
I was linking to action for https://github.com/pzrep/jetty-start-goal, which is complete reproducer. It is github repo. It is showing the whole picture.
👀 (Took me 8 months to jump, since my first discovery.) My change is just following the (currently misleading) description the class has. And my expectation.
I'm sorry if I'm the first to complain for 11 years (this issue was introduced in jetty-8.1.0.RC2 - 22 December 2011). I have no more information. Thanks for checking. |
validate
phase executed by:start
maven plugin goal #9130