-
Notifications
You must be signed in to change notification settings - Fork 89
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
[JENKINS-43950] Fix some exceptions breaking mvn clean hpi:run
#63
Conversation
This pull request originates from a CloudBees employee. At CloudBees, we require that all pull requests be reviewed by other CloudBees employees before we seek to have the change accepted. If you want to learn more about our process please see this explanation. |
Not sure what that is about, checking… |
Happens in |
@reviewbybees done |
What introduced this issue? |
@KostyaSha see #64. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🐝
@@ -81,7 +83,7 @@ | |||
* | |||
* @author Kohsuke Kawaguchi | |||
*/ | |||
@Mojo(name="run") | |||
@Mojo(name="run", requiresDependencyResolution=ResolutionScope.TEST) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, however there is also the dependencyResolution
parameter, used at the start of execute
; and resolveDependencies("test")
in getJenkinsWarArtifact
. Yet these do not work. @stephenc any clue what is going on here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think something is attaching artifacts to the reactor and then they get wiped by clean and the re-attach is appending to the list, not replacing... does it happen with Maven 3.2.x?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IIRC I was testing with 3.3.9 at the time.
AFAIK the change is helpful and harmless, but withdrawing from consideration until I have time to dig more deeply into why the problem is happening and to check if there is a better solution. |
I guess I do not actually have time to dig more deeply, and this fix helps people, so 🤷♂️ |
This fixes JENKINS-43950 |
mvn clean hpi:run
mvn clean hpi:run
Observed in
workflow-job-plugin@master
, using 2.29 parent, thatmvn clean hpi:run
(with nopackage
in between, for example) would fail withFixed that and then got another exception:
The second fix makes it work. Perhaps there is a simpler solution.
@reviewbybees