Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tomasbjerre/pom-downloader

Given a Maven repository, it will download all pom-files.
https://github.com/tomasbjerre/pom-downloader

maven maven-repository repository

Last synced: about 1 month ago
JSON representation

Given a Maven repository, it will download all pom-files.

Awesome Lists containing this project

README

        

# Pom Downloader
[![Build Status](https://travis-ci.org/tomasbjerre/pom-downloader.svg?branch=master)](https://travis-ci.org/tomasbjerre/pom-downloader)
[![NPM](https://img.shields.io/npm/v/pom-downloader.svg?style=flat-square) ](https://www.npmjs.com/package/pom-downloader)

This is a command line tool that downloads pom files from a remote Maven repository.

Intended to be used on a private Maven repository (like Nexus or Artifactory). As part of a set of tools to analyze dependencies between artifacts, see [Pom Dependency Analyzer](https://github.com/tomasbjerre/pom-dependency-analyzer).

You may try this on a public repository but be careful! Is is very likely a violation of its terms of service. See: https://central.sonatype.org/terms.html

Example, download all pom-files available in any group starting with `se.bjurr.violations`:

```shell
npx pom-downloader -g se.bjurr.violations -pt 100 -th 2
```

Or with Java:

```shell
java -jar pom-downloader-*.jar -g se.bjurr.violations -pt 100 -th 2
```

# Usage

```shell
-g, --groupid Only consider artifacts within this
group.
: any string
Default:
-h, --help : an argument to print help for
Default: If no specific parameter is given the whole usage text is given
-ll, --log-level [INFO, VERBOSE]
: any string
Default: INFO
-lm, --local-maven This is where it will store pom-files.
: any string
Default: /.m2
-m, --mirrors Comma separated list of maven
mirrors to use.
: any string
Default: https://repo1.maven.org/maven2,http://uk.maven.org/maven2,https://jcenter.bintray.com
-pt, --pause-time Number of milliseconds to sleep
before each request.
: -2,147,483,648 to 2,147,483,647
Default: 100
-th, --threads Number of threads to use.
: -2,147,483,648 to 2,147,483,647
Default: 1
```