{"id":14008294,"url":"https://github.com/obsidiansystems/haven","last_synced_at":"2025-04-12T15:50:33.137Z","repository":{"id":45776020,"uuid":"91144049","full_name":"obsidiansystems/haven","owner":"obsidiansystems","description":"Use haskell to produce a nix set of maven dependencies!","archived":false,"fork":false,"pushed_at":"2022-07-16T07:14:34.000Z","size":23,"stargazers_count":11,"open_issues_count":2,"forks_count":3,"subscribers_count":27,"default_branch":"develop","last_synced_at":"2024-04-14T09:51:53.624Z","etag":null,"topics":["android","haskell","java","maven","nix","pom"],"latest_commit_sha":null,"homepage":"","language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/obsidiansystems.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-05-13T02:34:01.000Z","updated_at":"2022-08-04T00:55:09.000Z","dependencies_parsed_at":"2022-08-19T20:10:44.490Z","dependency_job_id":null,"html_url":"https://github.com/obsidiansystems/haven","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/obsidiansystems%2Fhaven","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/obsidiansystems%2Fhaven/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/obsidiansystems%2Fhaven/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/obsidiansystems%2Fhaven/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/obsidiansystems","download_url":"https://codeload.github.com/obsidiansystems/haven/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248591882,"owners_count":21130143,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","haskell","java","maven","nix","pom"],"created_at":"2024-08-10T11:01:33.797Z","updated_at":"2025-04-12T15:50:33.103Z","avatar_url":"https://github.com/obsidiansystems.png","language":"Haskell","funding_links":[],"categories":["Haskell"],"sub_categories":[],"readme":"# haven\n## Recursively retrieve maven dependencies\n\nA haskell project that uses Maven's `dependency:tree` command to get a\nlist of Maven dependencies. The primary output format is a list of\n[nix sets](http://nixos.org/nix/manual/#idm140737318096432) describing\nthe maven packages. Maven's local repo is redirected to a tmp\ndirectory, so haven won't pollute your home directory.\n\n`maven` is required in order to run `haven`. The provided `shell.nix` \nincludes maven.\n\n### Example\n\n#### `pom.xml`\n\n```xml\n\u003cproject xmlns=\"http://maven.apache.org/POM/4.0.0\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n     xsi:schemaLocation=\"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd\"\u003e\n  \u003cmodelVersion\u003e4.0.0\u003c/modelVersion\u003e\n\n  \u003cgroupId\u003ecom.dummy\u003c/groupId\u003e\n  \u003cartifactId\u003edummy\u003c/artifactId\u003e\n  \u003cversion\u003e1.0-SNAPSHOT\u003c/version\u003e\n\n  \u003crepositories\u003e\n    \u003crepository\u003e\n      \u003cid\u003emaven\u003c/id\u003e\n      \u003curl\u003ehttps://repo1.maven.org/maven2/\u003c/url\u003e\n    \u003c/repository\u003e\n    \u003crepository\u003e\n      \u003cid\u003ecentral\u003c/id\u003e\n      \u003curl\u003ehttps://central.maven.org/maven2/\u003c/url\u003e\n    \u003c/repository\u003e\n    \u003crepository\u003e\n      \u003cid\u003ejcenter\u003c/id\u003e\n      \u003curl\u003ehttps://jcenter.bintray.com/\u003c/url\u003e\n    \u003c/repository\u003e\n  \u003c/repositories\u003e\n\n  \u003cdependencies\u003e\n    \u003cdependency\u003e\n      \u003cgroupId\u003ecom.android.tools.build\u003c/groupId\u003e\n      \u003cartifactId\u003egradle\u003c/artifactId\u003e\n      \u003cversion\u003e2.3.1\u003c/version\u003e\n    \u003c/dependency\u003e\n    \u003cdependency\u003e\n      \u003cgroupId\u003ecom.google.gms\u003c/groupId\u003e\n      \u003cartifactId\u003egoogle-services\u003c/artifactId\u003e\n      \u003cversion\u003e3.0.0\u003c/version\u003e\n    \u003c/dependency\u003e\n    \u003cdependency\u003e\n      \u003cgroupId\u003ecom.firebase\u003c/groupId\u003e\n      \u003cartifactId\u003efirebase-jobdispatcher\u003c/artifactId\u003e\n      \u003cversion\u003e0.5.2\u003c/version\u003e\n      \u003ctype\u003eaar\u003c/type\u003e\n      \u003cexclusions\u003e\n        \u003cexclusion\u003e\n          \u003cgroupId\u003ecom.android.support\u003c/groupId\u003e\n          \u003cartifactId\u003esupport-v4\u003c/artifactId\u003e\n        \u003c/exclusion\u003e\n      \u003c/exclusions\u003e\n    \u003c/dependency\u003e\n  \u003c/dependencies\u003e\n\u003c/project\u003e\n```\n\n#### Output\n\n```bash\n$ haven ./pom.xml\n... # Maven logs on stderr\n\n[\n  { artifactId = \"gradle\";\n    groupId = \"com.android.tools.build\";\n    version = \"2.3.1\";\n    repo = \"https://jcenter.bintray.com\";\n    jarSha256 = \"c621e827cf3b1dd6607d6c3f2dacdbea81cc4000ef3d7b91d7e967f368b9d9c3\";\n    pomSha256 = \"9a240dcae4b27de87af1cfb7164cb2097785e32dc1bca39cdaa1f5504c50cae4\";\n    aarSha256 = null; }\n\n  { artifactId = \"gradle-core\";\n    groupId = \"com.android.tools.build\";\n    version = \"2.3.1\";\n    repo = \"https://jcenter.bintray.com\";\n    jarSha256 = \"6584bba738af0e1435521258ad20352e4f22e1ad9d6e3e10b566f9e316674804\";\n    pomSha256 = \"d393f858b613952f08d01ba6515a91f910be30768d6e05729ac254d632c87e3b\";\n    aarSha256 = null; }\n\n  { artifactId = \"builder\";\n    groupId = \"com.android.tools.build\";\n    version = \"2.3.1\";\n    repo = \"https://jcenter.bintray.com\";\n    jarSha256 = \"b1a948c366e98061d840f2333d1467fbca7a53ff6d81f7a46cd15aea0a1272cc\";\n    pomSha256 = \"883026a359536e2d05a01cb8cea06e076bb013eccf1fb0ce35d4d96beda60521\";\n    aarSha256 = null; }\n\n  { artifactId = \"builder-model\";\n    groupId = \"com.android.tools.build\";\n    version = \"2.3.1\";\n    repo = \"https://jcenter.bintray.com\";\n    jarSha256 = \"37ee6a2cbabc5ff9968dfbb58025aa53aaac9795d4d9a50f2a0883076e7398fb\";\n    pomSha256 = \"34245bc246fe93b3c3bf6f933a51efbb36d300e8fcee6cec4cee51653a1469b3\";\n    aarSha256 = null; }\n\n...\n\n]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fobsidiansystems%2Fhaven","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fobsidiansystems%2Fhaven","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fobsidiansystems%2Fhaven/lists"}