Skip to content

Instantly share code, notes, and snippets.

View m-serag-lab's full-sized avatar

Mohamed Serag Eldeen m-serag-lab

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):