[MNG-7353] Add missing dependencies to bootstrap.txt#190
[MNG-7353] Add missing dependencies to bootstrap.txt#190slawekjaranowski merged 1 commit intoapache:masterfrom
Conversation
|
@hboutemy @slawekjaranowski This is an alternate PR to fix the 7353 problem by adding the missing deps to the bootstrap. |
slawekjaranowski
left a comment
There was a problem hiding this comment.
I would consider to one of mock plugins from:
https://github.com/apache/maven-integration-testing/tree/master/core-it-support/core-it-plugins
or create next mock plugin
After we release next version of maven-dependency-plugin the situation will be the same.
|
The currently breaking tests refer to those two versions explicitly. So bootstrapping them into the local repo should do the trick. Not sure how a new release will break this. I leave the decision to make changes to the actual tests to @hboutemy. |
|
IMHO |
|
My understanding is that the failing test is trying to run the plugin with explicit versions (that is what is in the test code) and those are 3.1.1 and 3.3.0 I did the trick that @mthmulders explained for the integration test (create a branch with the same name as the PR branch in maven) and with this patch applied, it passes the integration tests: https://github.com/apache/maven/runs/7958258759 ( |
|
https://github.com/apache/maven-integration-testing/blob/2181675286bf085c49198858d6bd0f65178d17b2/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng7353CliGoalInvocationTest.java contains explicit versions for goal invocation (I think that is the point of the test). The execution may yield different versions in its output but I don't think that this is relevant. |
slawekjaranowski
left a comment
There was a problem hiding this comment.
ok, we can merge
my other build suffer from missing m-clean-p version
|
I am trying to reproduce the problem here... |
|
@hgschmie Can you share the error output you see? I cannot reproduce the failure. It works for me with an empty repo. |
|
@michael-o look this: https://github.com/apache/maven/actions/workflows/maven.yml |
|
locally with Maven from master I have the same |
Weird why it does not fail for me with two setups. I agree for the clean plugin, but what's with dependency plugin? |
|
m-dependency-p - versions from test was added to bootstrap |
ef0fe6b to
19e8b61
Compare
|
The ITs don't at all use the fact that any version is LATEST, then using 2.7 and 2.8 instead of 3.0.0 and 3.1.1 is strictly the same result (I know, I wrote initial IT) in general, adapting ITs to already available content is just a good practice: I just forgot to disable my local proxy before testing locally, then did not see early that I made bad versions choice I know my comment comes too late, there is no need to revert, because there is no strong consequence |
Add missing dependencies to bootstrap.txt instead of changing the test internal versions (reverts 8dd4224).