ThesearebarebonesbashscriptstoimportaNexus2Maven,NuGetornpmrepository(andlikelyotherfilesystembasedrepos)intoNexusRepository3.
Wutdoesitdo?ImportsartifactsintoaNexusRepository3Maven2,NuGetornpmhostedrepo.
Wutdoesitnotdo?Literallyanythingelse.Youwantsecurity?Bettersetitupyourself.
HowdoIuseit?Mavencdrootdirectorywithallyourartifacts./mavenimport.sh-uadmin-padmin123-rhttps://localhost:8084/repository/maven-releases/WatchabunchofverboseoutputfromcurlIfneedbe,change-utouser,-ptopassword,and-r(Ibetyou'llhavetochangethis)totherepoyouwanttouploadintoNuGetcdrootdirectorywithallyournugetpackages./nugetimport.sh-kAPIKEYFROMNEXUS-rhttps://localhost:8084/repository/nuget-hosted/WatchthemoneyrollinandthehatersstartaskinYou'llneedtoobtainyourAPIKEYforNexusRepository,andobviouslyset-rtotherepopathyouwanttousenpmnpmlogin--registryhttps://localhost:8084/repository/npm-internal/cdrootdirectorythatcontainsallnpmmadness./npmimport.sh-rhttps://localhost:8084/repository/npm-internal/Watchabunchofstuffprollyfailbecauseithasextrabuildsteps,figurethoseoutandthenremediateifyoureallycareSet-rand--registrytotheNPMhostedrepoyouplantouseLikeit?Great,buymeabeer.
评论