1 background

Set up a new project today, add the company private server public (group) address, and start downloading… “, then suddenly report an error, tell me that there is no such address, so log in to the company’s private server address, found howI don’t have either of these. A cold sweat. What can I do about it? Many jar dependencies developed by the company are in it.

Solution:

We use the nexus2 version

  • 1: Log in to the private server and go to sonatype-work/nexus/trash to find the library folder/file you deleted
  • 2: copy the mistakenly deleted public to sonatype-work/nexus/storage/
  • 3: Log in to the private server UI, and create hosted (If you do not know the Repository ID and Name, locate the corresponding Repository ID and Name in the /.meta/**.xml file).

  • 4: Create a group

test

The tests found it was the same as the previous one.