NexusRepositoryImportScriptsWut?
ThesearebareboesbashscriptstoimportaNexus2Mave,NuGetorpmrepository(adlikelyotherfilesystembasedrepos)itoNexusRepository3.
Wutdoesitdo?ImportsartifactsitoaNexusRepository3Mave2,NuGetorpmhostedrepo.
Wutdoesitotdo?Literallyaythigelse.Youwatsecurity?Bettersetitupyourself.
HowdoIuseit?Mavecdrootdirectorywithallyourartifacts./maveimport.sh-uadmi-padmi123-rhttps://localhost:8084/repository/mave-releases/WatchabuchofverboseoutputfromcurlIfeedbe,chage-utouser,-ptopassword,ad-r(Ibetyou'llhavetochagethis)totherepoyouwattouploaditoNuGetcdrootdirectorywithallyourugetpackages./ugetimport.sh-kAPIKEYFROMNEXUS-rhttps://localhost:8084/repository/uget-hosted/WatchthemoeyrolliadthehatersstartaskiYou'lleedtoobtaiyourAPIKEYforNexusRepository,adobviouslyset-rtotherepopathyouwattousepmpmlogi--registryhttps://localhost:8084/repository/pm-iteral/cdrootdirectorythatcotaisallpmmadess./pmimport.sh-rhttps://localhost:8084/repository/pm-iteral/Watchabuchofstuffprollyfailbecauseithasextrabuildsteps,figurethoseoutadtheremediateifyoureallycareSet-rad--registrytotheNPMhostedrepoyouplatouseLikeit?Great,buymeabeer.
评论