Resolve Dependencies Java

Find the appropriate groupId/artifactId of a specific dependency

Maven lets you download all the needed dependencies. If you need the following classe for instance


You need first to find the corresponding groupId (org.apache.hive) and the artifacatId (hive-jdbc)

It may be tricky to find the proper artifactId. As you may see the artifactId hadoop-common is the one that contains the package.

You may use the following tool :

Or type on google :

  • [class name] mvn repository
  • [class name] github

To look for a specific class on your FS:

#if you're looking for
locate .jar | xargs -n 1 jar tf | grep "org/apache/spark/api/java/function/MapFunction"
comments powered by Disqus