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:
- Under the Views section, click on Browse Repositories
- Right-click on the Public Repositories group and select Clear Cache
- Right-click on the Public Repositories group and select Reindex
- Right-click on the Public Snapshot Repositories group and select Clear Cache
- 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:
- Under the Administration section, click Scheduled Tasks
- Click the Add button
- Give the task a name
- Task Type is Publish Indexes
- Repository/Group is Public Repositories (Group)
- Recurrance is Once
Upon doing this manual step, Nexus again started humming along.
No comments:
Post a Comment