Running: Nexus Repository Manager OSS 2.14.19-01
Repository in question: Type: hosted, Format: Maven2, Type: Release
We have an existing hosted Nexus 2 maven (release) repository (one of many) that is a mix of OSS , vendor provided and internally produced artifacts (~6000).
It no longer meets our needs to have that eclectic mix of artifacts. Is there a preferred procedure to export / split the repository and reconfigure without having to reupload all the artifacts? We’d like to be able to preserve the existing historical data (timestamp, uploader). The split will be by GroupID: com.mycorp into one, several vendor groupID into another and the rest would be “OSS”
I have reviewed this article
How can I programmatically upload an artifact into Nexus 2?
and Rebuilding hosted repos from local .m2/repository in nexus3,
My preference is to retain the upload information (date, user). I don’t believe either option above achieves that.
I have considered this approach:
Create a new empty repository, properly configured.
Move/Copy over the relevant repository contents at the file system level
Start up and rebuild the indexes?
I recall doing something similar when we initially populated the repository in 2012 when we first set it up, but had issues, possibly with the indexing or metadata.
Has anyone used this approach? Success / Fail / lessons learnt? Other approaches?