smarkwal / jarhc

JarHC - JAR Health Check
Apache License 2.0
7 stars 0 forks source link

Command Line: Add options to specify Maven repository #115

Open smarkwal opened 2 years ago

smarkwal commented 2 years ago

Problem

As of today, JarHC only works with Maven Central. The URL to the Maven repository is hard-coded. Users of alternative Maven repositories cannot use JarHC to look up and download artifacts from them.

Goal

Add additional command line options to specify connection details to an alternative Maven repository. Minimum requirement is to be able to specify a repository URL. In addition, it may be possible to provide username and password for a repository which requires authentication.

smarkwal commented 2 days ago

Version 3.0.0-SNAPSHOT contains 3 new command line options:

--repository-url <url>
--repository-username <username>
--repository-password <password>

While this allows to download an artifact and resolve dependencies from a custom Maven repository, it does not (yet?) allow to find an artifact given its SHA-1 checksum.