-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Issues since version 6.3.0 #4969
Comments
Any chance you can provide an example project that causes this issue? |
Likely related to jeremylong/DependencyCheck#3501 - an upgrade of the maven internal libraries |
I think we can improve the error message somewhat by also listing what according to the dependency is the system path where it was supposed to be found. |
I just tried to create a small project, but this is not as easy as I thought. |
@aikebah Hi, would it be possible to add your change to the error message, so I could maybe dig deeper into the problem? |
…information available to help resolving issues like #4969.
@StefanHirche would you be able to build a snapshot from branch issue-4969 to see if added logging does shine more light on the subject? |
Hi, I build your branch and run the plugin-in. I got this I use a 3rdparty plugin withoutputting it into maven, just into the libs folder of my plugin, because it is actively developed and changes very fast at the moment. But this is a new construct, so I'll try to remove this to look at the older issues mentioned in this ticket. |
@StefanHirche how is the system-path setup in the pom? Because it looks like how we currently collect/resolve dependencies does not resolve it to the actual configured location, but to null. |
There is no configuration for the system path in the pom. |
I now also get this error after removing the local lib: |
Well, a system-scoped dependency (while deprecated) is always supposed to have a systemPath telling maven where to find the jar representing/containing that dependency so that it can be included in the classpath. (see also https://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#System_Dependencies) |
@StefanHirche googled a bit on tycho-pomless and think the two are related indeed. It looks as if the tycho-pomless core extension does not inject the proper system-path when using modern versions of maven shared libraries for dependency-collection/resolution. |
@StefanHirche If you are able to provide a (dummy would be good enough, but real-life public project would also be fine) reproducer project using tycho-pomless and triggering this behaviour that would help in getting me started to dig deeper into this with mvndebug (as I have no experience on tycho / tycho-pomless I don't want to start out on the adventure from scratch) |
Yes, but it might take a little time. |
NP... would be nice to try and resolve this so that it also works properly for tycho-pomless, but not in any hurry on that. |
Hi, |
@StefanHirche Assuming that your CVE database is persistent between builds you should be able to resolve the issue, while continuing to scan with 6.2.2 by running a dedicated job for CVE database update ( 6.2.2 should run fine with the updated database schema that 7.4.4 will upgrade to. |
Hi, Here you can find my project, I hope it works (or better not) Strange thing is the issue only occurs with a second plugin as fragment to the first and the tycho-source plugin has to be used. |
@StefanHirche Thanks, can confirm that it works for me as a reproducer. Had to fix some configurations that leak your internal setup (mvnw JAVA_HOME, pointing to a windows path and your private maven distribution-url inside the .mvn folder (may I suggest upgrading to Maven 3.8.7?)
|
@StefanHirche Hope to dig a bit deeper after finishing up reviews of the currently pending 8.0.0-targeted PRs, but initial looks in debug-mode make me suspect that it should be resolvable by some further updates to the resolution logic (won't make it into 8.0.0 yet which we intend to release this week, but hope to have it available for 8.1.0 (release date still to be decided on, depends on what else gets fixed in the near future)) |
Thanks, |
…information available to help resolving issues like #4969.
…information available to help resolving issues like #4969.
@StefanHirche Can you validate my resolution from this branch (working for your 'pet-project') to be also working for the real-life Tycho pomless projects that you have before I file the PR for integrating it into the main development branch? |
@jeremylong I think it would be good that this lands in the next release, so I marked it for 8.0.2 milestone, but unsure whether we should call it a fix (of broken setup with Tycho pomless) which would mean 8.0.2, or a feature/enhancement (now also supporting Tycho pomless extension to maven) which would mean 8.1.0 I tend mostly to a fix as in: we should not assume that maven extensions add system-scoped dependencies with a systemPath prefilled, but should rely on the extensions to also properly extend the artifact resolution for anything added as system-scoped. |
OK, I tested your noew changes and it seems to work. I don't get any errors anymore and all dependencies, also those provided directly in a plugin, show in the list of all dependencies. Thanks for your work. |
@aikebah I vote fix and just bump the patch level. |
Hi,
I was using version 6.2.2 and wanted to upgrade to 7.2 but I got this issue
So I tried different versions and this issue first occures with version 6.3.0.
I do not have the slightest clue on why this happens.
The build uses tycho pomless , maybe this is related.
Thanks for this great plugin andyour work maintaining it.
The text was updated successfully, but these errors were encountered: