-
Notifications
You must be signed in to change notification settings - Fork 2
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
Feature: Support for generating project-info.json #6
Comments
BLUF: not without solid Incidentally, shortcomings in What are the use cases?
Any I'm missing? What bugs in |
So, here's the thing -- I'm not trying to build my own project. I'm not even trying to build Nix derivations, except as an interim step. I'm trying to build packages for a non-Nix distribution in a sandboxed environment managed by Nix. buildMaven's ability to create a Maven cache directory is exactly what I need, since it can be passed into the build VM and dropped in (or symlinked) to the build user's ~/.m2 for use by the foreign distribution and project's existing build infrastructure. So I certainly do have an odd use case, no doubt. |
As for why I'm not using mvn2nix-maven-plugin, the immediate blocker is NixOS/mvn2nix-maven-plugin#19. |
Sounds perfectly valid. So you don't require the That, I could actually see as a standalone command in closureRepoGenerator {
dependencies = [["group" "dependency" "version"] ...];
} |
Rereading after a bit of time (my earlier comments were written on the train), I see your points -- the POM reader is indeed essential for enough cases that there's very limited value without it. Frankly, I like the |
Glad to hear it, and sorry that dwn doesn't do what you need it to, yet. |
Upstream nixpkgs contains a
buildMaven
macro intended to be used with aproject-info.json
file describing a package's dependencies. The upstream-supported tool for generating this file isNixOS/mvn2nix-maven-plugin
; however, this tool has at least one major bug whichdwn
is not presently prone to.Would a PR adding support for generating
project-info.json
files for use by buildMaven be welcome?The text was updated successfully, but these errors were encountered: