[MNG-7470] mvn 3.9+ IT that uses wagon (default) and native transport#158
[MNG-7470] mvn 3.9+ IT that uses wagon (default) and native transport#158
Conversation
michael-o
left a comment
There was a problem hiding this comment.
Where is the verification that the transport actually works, i.e., the right one is picked?
Maven build fails if project deps cannot be resolved... is that what you asking? |
Yes, this is what I will look for. Can you add this as a comment to the tests. It is not obvious from the code itself. |
Done. |
|
Testing... |
|
Do not merge pls, I'll do myself once done |
|
[INFO] Downloading from maven-core-it: http://localhost:53770/org/apache/maven/its/resolver-transport/wagon/dependency/1.0/dependency-1.0.pom |
|
On |
|
@michael-o @slawekjaranowski so pushed all I wanted, and locally tested, updated description. |
|
Will test again... |
slawekjaranowski
left a comment
There was a problem hiding this comment.
In both tests I see in logs ..
[DEBUG] Using transporter WagonTransporter ...
Is it ok?
|
We should also check what happens if wrong transport will be provided, like |
That should not happen, especially as now assertion to debug log is added. Did you return the removed line? |
IMHO, this is not a UT, this IT merely ensures that selected transport IS used and WORKS. |
|
Now i have ... |
|
@slawekjaranowski cool, that's expected with latest maven 3.9.x build, as it uses resolver 1.8.0 but has no fix in apache/maven#732 Now, to verify, build locally that PR and run ITs with it, and they should all pass OK |
|
Both tests use the same project directory .... pleas add without it we have logs in file |
fixed |
slawekjaranowski
left a comment
There was a problem hiding this comment.
- build pass
- assertions works
michael-o
left a comment
There was a problem hiding this comment.
I am quite surprised that Jetty output is visible, MNG-5771 has a Jetty-based test as well, but no output is seen. Any idea? I do not see any diff in the source code.
|
Fix merged, so the IT can be as well.... |
|
Still testing... |
|
Works for me now except for the JEtty log output which I don't understand.... |
|
apache/maven#732 is merged, so am merging this one as well (ongoing branches not having merged PR will fail here) |
An IT for Maven 3.9+ that "exercise" both resolver transport: wagon and native (so we have 2 tests both forcing transport with
-Dmaven.resolver.transportone wagon (which is default, but setting is there to be explicit) and once native.It builds a project that needs a plugin (to pull it will use set transport), and that plugin will use resolver as well to resolve set artifact. If any of these fails, maven project fails.
Current maven 3.9.x build will FAIL due NoSuchMethod error, as expected.
With PR apache/maven#732