- Create a Personal Access Token in Azure DevOps
- Use the scope
Packaging (read)
for export, orPackaging (read and write)
for import - Replace the token in the file
export.py
orimport.py
- Open the feed in Azure DevOps
- Click
Connect to feed
- Select
Maven
- Copy the URL from the XML snippet
- Replace the URL in the file
export.py
orimport.py
Format: https://pkgs.dev.azure.com/{org}/{project}/_packaging/{feed}/maven/v1
python3 export.py # Export npm and maven
python3 export.py npm # Export npm packages
python3 export.py maven # Export maven packages
python3 import.py npm # Import npm packages
python3 import.py maven # Import maven packages
- Replace the SOURCE_SERVER, SOURCE_USER, and SOURCE_PASSW in the file
nexus_export.py
- Run the script
python3 nexus_export.py