-
Notifications
You must be signed in to change notification settings - Fork 5
Description
I can't install ReZipDoc in a repository, because downloading ReZipDoc's JAR file from Sonatype Nexus always fails (unless you "log in", or use an API key to download, or whatever).
$ rezipdoc-repo-tool.sh install --commit --renormalize
rezipdoc-repo-tool.sh action: installing ...
git filter and diff binary - installing ... find: ‘/home/flisboac/bin/../target’: No such file or directory
--2024-10-30 00:46:07-- https://repository.sonatype.org/service/local/artifact/maven/redirect?r=central-proxy&g=io.github.hoijui.rezipdoc&a=rezipdoc&v=LATEST
Resolving repository.sonatype.org (repository.sonatype.org)... 52.0.209.102, 52.206.204.164
Connecting to repository.sonatype.org (repository.sonatype.org)|52.0.209.102|:443... connected.
HTTP request sent, awaiting response... 401 Unauthorized
Username/Password Authentication Failed.
using binary '' ... basename: missing operand
Try 'basename --help' for more information.
basename: missing operand
Try 'basename --help' for more information.
mv: cannot stat '': No such file or directory
failed!
git filter and diff config entry in .git/config - writing ... done
git attributes entries to .git/info/attributes - writing skipped (section already exists)
git merge renormalization - enabling skipped (is already enabled)To be clear, I followed all the installation steps from the README with:
curl --silent \
--location \
https://raw.githubusercontent.com/hoijui/ReZipDoc/master/scripts/rezipdoc-scripts-tool.sh \
| bash -s install --pathThe local Git repository is new, so no history so far. What's failing is just the install command.
In rezipdoc-repo-tool.sh, I see that fetch_url refers to a public Sonatype Nexus' Repository. Any chance a link to maven.org being used instead?
The only problem with that is the fetch URL must indicate the exact version, e.g. latest is currently
0.4, thereforehttps://repo1.maven.org/maven2/io/github/hoijui/rezipdoc/rezipdoc/0.4/rezipdoc-0.4.jar. Perhaps the latest version could be read somewhere else, prior to downloading the JAR (e.g. a plain textVERSIONfile in the main branch indicating the latest release version, that could be downloaded and read, and then interpolated intofetch_urlin place ofLATEST).
Another option would be using mvn (e.g. mvn dependency:get -Dartifact=io.github.hoijui.rezipdoc:rezipdoc:LATEST, but that would require installing maven first.