-
-
Notifications
You must be signed in to change notification settings - Fork 21
Dependencies shared with mvn2nix itself do not have URLs in output #19
Comments
...and, just to be clear that (some of) these items being missing represents a problem:
|
Tracing through the code, there are two places where
For Maven to operate, it and its dependencies are necessarily in the local repository, hence those items not having URLs assigned. |
Adds dependency on commons-io for FileUtils.getTempDirectory()
The above PR doesn't fix every broken case -- if an artifact can only be resolved with a repository added by a POM that included it, that URL still gets missed -- but that particular case has an immediate workaround (propagating such repository URLs up into the POM being operated against), and is rather distinct from the scenario this ticket is focused on. |
I've hit this problem to! How would I use your PR / patchset to use mvn2nix with this fix? (i'm not very familiar with java/maven stuff, just trying to get nix setup for some colleagues) |
@cartazio, apologies about the delayed response -- I wanted to wait until I actually needed to do this again so my instructions could be audited. :) Check out this branch of Then go to the source directory of the project you're trying to build a project-info.json for, and run |
Given the following POM:
...the generated
project-info.json
references several artifacts which are not given URLs:This is a strict subset of the dependency tree of the mvn2nix plugin itself, as shown by the following code:
...which returns
0
(as the number of lines inno-url-deps.txt
but not also inall-deps.txt
).The text was updated successfully, but these errors were encountered: