You may have some luck with this: https://oss.sonatype.org/ <https://oss.sonatype.org/> You can search artifacts for a class name, for example. Try searching for: com.google.common.util.concurrent.MoreExecutors Sadly, it doesn’t return results for: com.google.common.util.concurrent.MoreExecutors$SameThreadExecutorService However, you can use the Archive Browser to drill into an archive and see the MoreExecutors$SameThreadExecutorService class.
If you have Artifactory, that also has a feature where you can search artifacts for classes. This site can also be a useful resource: https://mvnrepository.com/ <https://mvnrepository.com/> I am not aware of any tool that will index methods. > On Jan 24, 2020, at 11:32 AM, Tomo Suzuki <suzt...@google.com.INVALID> wrote: > > Hi Maven users, > > Does anybody know how to query class names in Maven Central Index > (nexus-maven-repository-index.gz) [1] to get Maven artifacts that > contain the class? > > I'm exploring ways to find Maven artifacts by a class name. For > example, I want to find which versions of Guava had class > "com.google.common.util.concurrent.MoreExecutors" with > "sameThreadExecutor" method. More background is in my GitHub issue > [2]. > > I found Central Index page [1] explaining > nexus-maven-repository-index.gz and use of "luke". > The Maven Indexer's documentation [3] says I should be able to find > "classnames" field, but I could not find the field when I opened it in > luke [4]. Even if helps looking up class name, it might not provide > method information. Does anybody know how to use the index? > > [1]: https://maven.apache.org/repository/central-index.html > [2]: https://github.com/GoogleCloudPlatform/cloud-opensource-java/issues/1095 > [3]: > https://maven.apache.org/maven-indexer-archives/maven-indexer-LATEST/indexer-core/ > [4]: > https://user-images.githubusercontent.com/28604/73096813-b67dfe80-3eb3-11ea-82e4-dec1f9ca7519.png > > -- > Regards, > Tomo > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org >