-
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
Unnecessary validate
phase executed by :start
maven plugin goal
#9130
Comments
JETTY-1405 introduced |
@olamy and @jmcc0nn3ll both of you should take a look at this as well (so we can get all 3 maven committers looking at this) |
@pzygielo I think we needed to have at least |
From the goal's description:
So - let me repeat: validate already happens and there is no need for the plugin to execute it again. The fact that in some cases there is no visible output that it is executed for the second (and even the first) time does not mean that there is nothing happening. |
The phase specified in the plugin is a default that is present in the plugin metadata, it can be changed in the plugin configuration of your project. The double plugin execution you are seeing is likely from something else, causing unintended side effects. What we need to diagnose ...
You've referenced https://github.com/pzrep/jetty-start-goal/ But that doesn't show a double execution when run by command line from system installed maven, or the packaged mvnw in the project. |
That's the point. It's not the default phase that goal is bound to and can be changed with configuration. This would be in the form of This is about
I can only suggest https://maven.apache.org/plugin-tools/maven-plugin-plugin/examples/using-annotations.html#annotations
This cannot be changed by plugin configuration.
No. It forces
And
It's explicitly requested by the plugin's metadata.
No. It's the forked
I provided the simplest one already - https://github.com/pzrep/jetty-start-goal.
Not important. But https://github.com/pzrep/jetty-start-goal/blob/45b102341944c508e3307d8be8653824e904918d/.github/workflows/maven.yml#L14 specifies it as temurin 11.
Not important. But https://github.com/pzrep/jetty-start-goal/blob/45b102341944c508e3307d8be8653824e904918d/.mvn/wrapper/maven-wrapper.properties#L18 specifies it as 3.8.7
Yes, it does. I linked to https://github.com/pzrep/jetty-start-goal/actions/runs/3858708613/jobs/6577522172#step:4:52 already and said that validate was achieved for the first time in line 13. The fact that there is no output for There is no need to call maven with |
@olamy it doesn't seem to do any harm if we remove the |
@pzygielo can you submit a PR that removes the validate line? Or do you want me to do it? |
LGTM |
|
Here's my setup - https://github.com/pzrep/jetty-start-goal/:
https://github.com/eclipse/jetty.project/blob/b8db190114d047a4ac60d01c6fdda4fdbba9609e/pom.xml#L82-L88
This however results in
validate
being executed:But it was executed in line 13 already.
Originally posted by @pzygielo in #9128 (comment)
The text was updated successfully, but these errors were encountered: