Skip to content

Instantly share code, notes, and snippets.

View F-WRunTime's full-sized avatar

Freeman F-WRunTime

  • Runtime Verification
View GitHub Profile
@karlvr
karlvr / migrate-nexus-to-github-packages.md
Last active October 25, 2023 12:20
A small bash script to migrate Maven packages from Sonatype Nexus to GitHub Packages

Migrate Maven packages from Sonatype Nexus to GitHub Packages

This gist describes the process we've used to migrate our Maven package repository from Sonatype Nexus to GitHub Packages. The same process could be used for migrating any Maven package repo that is in the standard layout.

We created a special repository on GitHub to hold all of our Maven packages. You might decide to migrate packages to different repositories, in which case invoke the script multiple times.

The script uses find to look for all of the folders containing poms and upload them. You specify the folder