{"id":16687149,"url":"https://github.com/redth/mavennet","last_synced_at":"2025-03-21T18:33:17.013Z","repository":{"id":47157593,"uuid":"86383598","full_name":"Redth/MavenNet","owner":"Redth","description":"A C# Client for inspecting and interacting with Maven Repositories","archived":false,"fork":false,"pushed_at":"2024-08-21T14:17:57.000Z","size":98,"stargazers_count":11,"open_issues_count":4,"forks_count":10,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-18T00:43:26.411Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Redth.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-03-27T21:00:48.000Z","updated_at":"2023-10-17T01:47:44.000Z","dependencies_parsed_at":"2024-10-28T11:29:29.822Z","dependency_job_id":"6da55bbc-cf7d-484f-b0fe-891010c9b52e","html_url":"https://github.com/Redth/MavenNet","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Redth%2FMavenNet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Redth%2FMavenNet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Redth%2FMavenNet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Redth%2FMavenNet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Redth","download_url":"https://codeload.github.com/Redth/MavenNet/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244849428,"owners_count":20520713,"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":[],"created_at":"2024-10-12T15:07:59.556Z","updated_at":"2025-03-21T18:33:16.746Z","avatar_url":"https://github.com/Redth.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MavenNet\nA .NET Client for inspecting and interacting with Maven Repositories\n\n\n## Huh? What? Why?\nSome Android/Java libraries use a system kind of like NuGet, called Maven.  Most .NET developers would not, could not, should not care about this.\n\nI had a particular need to be able to work with information and artifacts in Maven repositories to track dependency changes and updates.  Being a .NET developer, I decided it would be useful to have a .NET API for this.\n\n## Usage\n\nYou can open a repository from a url or a directory path:\n\n```csharp\n// Open by URL\nvar repo = MavenRepository.OpenUrl (\"https://mavenrepohost.com/somerepo\");\n\n// Open by Directory\nvar repo = MavenRepository.OpenDirectory (\"/path/to/somerepo\");\n```\n\nAfter you open a repository, you will want to load the metadata to be able to access a list of package information:\n\n```csharp\nawait repo.LoadMetadataAsync ();\n```\n\nOnce you've loaded metadata, you can access it via the metadata property:\n\n```csharp\nforeach (var item in repo.Metadata) {\n\n\tConsole.WriteLine ($\"{item.GroupId} - {item.ArtifactId}\");\n\n\tforeach (var version in item.AllVersions) {\n\t\tConsole.WriteLine ($\"\\t{version}\");\n\t}\n}\n```\n\nYou can access the Project Object Model (.pom XML file details) as well:\n\n```csharp\nvar project = await repo.GetProjectAsync (\"com.some.package\", \"artifact-id\", \"1.2.3\");\n\nforeach (var dep in project.Dependencies) {\n\tConsole.WriteLine ($\"{dep} - {dep.ArtifactId} - {dep.Version}\");\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredth%2Fmavennet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredth%2Fmavennet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredth%2Fmavennet/lists"}