09 September 2008

Nexus Not Finding Artifacts After Adding a Repository?



In my last post about Nexus, I provided some steps to get started quickly using Nexus. After adding some additional repositories, I found that Nexus doesn't always immediately handle the indexes as it should causing some builds to not be able to locate certain artifacts, so I took the following measures to rectify the situation.

After adding some repositories, sometimes I had to clear the cache for the public groups and reindex them using the following steps:


  1. Under the Views section, click on Browse Repositories

  2. Right-click on the Public Repositories group and select Clear Cache

  3. Right-click on the Public Repositories group and select Reindex

  4. Right-click on the Public Snapshot Repositories group and select Clear Cache

  5. Right-click on the Public Snapshot Repositories group and select Reindex



After following the steps above, Nexus happily reindexed the repositories I added and artifacts were located successfully.

At one point, I also had to manually publish the indexes for the public groups using the following steps:


  1. Under the Administration section, click Scheduled Tasks

  2. Click the Add button

  3. Give the task a name

  4. Task Type is Publish Indexes

  5. Repository/Group is Public Repositories (Group)

  6. Recurrance is Once



Upon doing this manual step, Nexus again started humming along.

No comments:

Post a Comment