Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8518753
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T06:04:17+00:00 2026-06-11T06:04:17+00:00

At work, we have been using Nexus OSS 1.8.0 for a few years now.

  • 0

At work, we have been using Nexus OSS 1.8.0 for a few years now. Recently, I (as a Nexus admin) have been asked how many artifacts are in our instance. It’s a very simple question, but I can’t for the life of me find an answer anywhere:

  • I couldn’t find it in Nexus’ UI, Google or here;
  • Looking at Nexus’ REST API, there is a search endpoint (two, actually, although data_index is now deprecated), which also returns how many results the query yielded (field totalCount), except that I haven’t figured out how to just search for everything: providing an empty parameter yields a 400 response.

I provided a reasonable estimate of many artifacts we have, and that’s good enough for now, but I had more work than I felt I should’ve had… Did anybody have the same problem?


Update:

I needed to know how many internal artifacts we have (as opposed to external dependencies from Maven Central and the like), so I ended up GET-ing:

http://<OUR-NEXUS>/service/local/lucene/search?q=*&repositoryId=<OUR-REPO>

for every hosted repository and adding up the totalCount fields.

For the full count, searching for q=* yielded too many results, so I ran:

find $PATH_TO_SONATYPE_HOME | grep sha1 | egrep -v 'nexus-maven-repository-index|repository-metadata|maven-metadata|\.pom\.sha1' | wc -l

But I’m still surprised this type of information isn’t readily available…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T06:04:18+00:00Added an answer on June 11, 2026 at 6:04 am

    What Mark suggested is ok, but if you count sha1 files instead, you’ll get a more accurate count as nexus will create that file on upload of every artifact.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been using a shopping cart script for a few years now and
I have been using WSP builder up until now with VS 2008. I recently
I have been using an API to do some work. This is how I
I just started to work on informix.( I have been using mysql all my
At work, I've been tasked with fixing a horrible spreadsheet they have been using
We have been discussing this at work and now I am even more confused
I have been using nxml-mode to edit XHTML. However, it does not work very
I have been using Tomcat for quite a while now but I am not
I have been using git-svn to work remotely on a spike for a new
I have been using rspec for a little while and recently switched style from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.