Sourcegraph DocsSourcegraph Docs
  • Code Intelligence

    • Cody
    • Code Search
  • Code Management

    • Batch Changes
    • Code Monitoring
    • Code Ownership
    • Code Insights
    • Notebooks
  • Platform

    • Sourcegraph Admin
    • Sourcegraph Cloud
    • Integrations
  • CLI & API

    • Sourcegraph CLI
    • Sourcegraph GraphQL API
    • Sourcegraph Stream API
  • Help & Support

    • SLAs & Premium Support
    • How to videos
    • Tutorials
    • Sourcegraph Accounts
    • Changelog
    • Releases
  1. Docs
  2. integration
  3. jvm

JVM dependencies integration with Sourcegraph

You can use Sourcegraph with JVM dependencies from any Maven repository, including Maven Central, Sonatype, or Artifactory.

This integration makes it possible to search and navigate through the source code of the JDK (Java standard library) or published Java, Scala, and Kotlin libraries (for example, com.google.guava:guava:27.0-jre).

FeatureSupported?
Repository syncing✅
Repository permissions❌
Multiple JVM dependencies code hosts❌

Setup

See the "JVM dependencies" documentation.

Repository syncing

Site admins can add JVM packages to Sourcegraph.

Repository permissions

⚠️ JVM dependency repositories are visible by all users of the Sourcegraph instance.

Multiple JVM dependencies code hosts

⚠️ It's only possible to create one JVM dependency code host for each Sourcegraph instance.

See the issue sourcegraph#32461 for more details about this limitation. In most situations, it's possible to work around this limitation by configurating multiple Maven repositories to the same JVM dependency code host.

On this page

  1. JVM dependencies integration with Sourcegraph

    1. Setup
    1. Repository syncing
    1. Repository permissions
    1. Multiple JVM dependencies code hosts

Edit this page on GitHub
Questions? Give us feedback