Migration -Local .m2 repository to Nexus oss repository manager

Hi, we are using Nexus oss repository manager but tried migration local.M2reposutory but unable to findout.how to migrate from local .M2 repository to Nexus oss repository. Please provide solutions on command line either script based

With Nexus Pro you could probably use the Import Task.

If you’re an OSS user you’d need to write scripts to do the upload. I ought to be relatively easy using a PUT (iirc) by using the relative path of your m2 repository as the path within the Nexus repository.