Skip to content

Instantly share code, notes, and snippets.

View jvillavi's full-sized avatar
🤡
Joking

Jorge V. jvillavi

🤡
Joking
  • Cyberdyne Systems
  • Fremont, California
View GitHub Profile
@m-serag-lab
m-serag-lab / nexus-upload.py
Created November 22, 2022 21:04
Python script to upload mass dependencies to nexus
import subprocess, os
# Root path for dependencies (without / in the end)
ROOT_PATH = "/root/.m2/repository"
NEXUS_USERNAME="admin"
NEXUS_PASSWORD="123456"
NEXUS_PROTOCOL="http"
NEXUS_URL="localhost:7000/repository/nexus-mvn-repo-release/"
def _get_details(file_path: str):
@SanSan-
SanSan- / upload2nexus.sh
Last active October 11, 2023 09:32
How to mass upload maven artifacts to nexus
#!/bin/bash
files="./files.out"
releasefiles="./release.out"
snapshotfiles="./snapshot.out"
username="admin"
password="admin123"
nexusurl="http://nexus/content/repositories/thirdparty/"
snapshoturl="http://nexus/content/repositories/Snapshots/"