I am migrating from nexus 2, I tried to use the nexus 2 -> 3 migration tooling but I found it takes forever and I can't afford to have the repo down for that long. I have found that I can use curl to upload the contents of the old sonatype-work directory and that works quite nicely. However the Last Modified time in the UI and the header when downloading the resource does not correspond to the original source file time (and I never expected it to)
However, what I was wondering is if there is any way I can modify the last modified date for each asset to match the file system date of the original file after its uploaded. This is a once off, so I am happy to do this via a oriendb script or a groovy script or whatever. I tried updating the content[last_modified] attribute of an asset in the oriendb console, but it does not impact the UI or the last modified header when I download the file. (Even after a restart)
I also tried updating the last_updated field of the component class for the parent component of the asset.
Am I on the right track in the slightest or is this a really bad idea?
Also can someone please point me to the source code of the migration tooling, as I would like to dig around in there to see if there is anything I might be able to use. I really don't care if its a hack, as its a once off for me and then I will be dumping nexus 2 repo and moving on with nexus 3.
I have downloaded the nexus-public repo, but I have so far not managed to find the migration code.