From d0090be77d69cb58877fadf8a667c435fc7855ea Mon Sep 17 00:00:00 2001 From: Mariam Adedeji <32063636+Rhia2@users.noreply.github.com> Date: Fri, 11 Oct 2024 16:13:28 +0100 Subject: [PATCH 1/9] Add documentation for configuring Maven with a private repository for SCIP-JAVA private-maven-repository-configuration-scip-java.mdx - Added a new Markdown file detailing the steps to configure Maven to use a private Nexus or Artifactory repository for SCIP-JAVA indexing. - Includes guidance for single repository testing and automated configuration across multiple repositories via Sourcegraph's Lua inference script. - Docs placed under the Code Navigation section to aid users in secure dependency management for SCIP-JAVA. --- ...ven-repository-configuration-scip-java.mdx | 85 +++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 docs/code-search/code-navigation/private-maven-repository-configuration-scip-java.mdx diff --git a/docs/code-search/code-navigation/private-maven-repository-configuration-scip-java.mdx b/docs/code-search/code-navigation/private-maven-repository-configuration-scip-java.mdx new file mode 100644 index 000000000..b5a6291d1 --- /dev/null +++ b/docs/code-search/code-navigation/private-maven-repository-configuration-scip-java.mdx @@ -0,0 +1,85 @@ +### Configuring Maven to Use a Private Repository for SCIP-JAVA + +#### Overview +In Sourcegraph, configuring SCIP-JAVA to use a private Maven repository, such as Nexus or Artifactory, is essential when dependencies should not be retrieved from public repositories. This guide covers steps to set up Maven for SCIP-JAVA indexing with a private repository, ensuring secure and consistent dependency resolution. + +#### Step 1: Testing the Configuration on a Single Repository + +To test and validate the Maven configuration, start by modifying a single repository’s auto-indexing settings to include a custom `settings.xml` file. + +1. **Add Custom Index Job Configuration**: + - Access the repository’s index settings in Sourcegraph and open the “Raw” configuration panel. + - Insert the following configuration: + + ```json + { + "steps": [], + "local_steps": [ + "mkdir -p ~/.m2", + "echo ' repo $ARTIFACTORY_USER $ARTIFACTORY_PASSWORD ' > ~/.m2/settings.xml" + ], + "root": "", + "indexer": "sourcegraph/scip-java:latest-snapshot", + "indexer_args": [ + "scip-java", + "index", + "--build-tool=auto" + ], + "outfile": "index.scip", + "requestedEnvVars": [ + "ARTIFACTORY_USER", + "ARTIFACTORY_PASSWORD" + ] + } + ``` + +2. **Trigger Indexing**: + - After configuring the repository, navigate to the "Precise Indexes" tab and click "Enqueue" to start the indexing process. + - Ensure that the environment variables `$ARTIFACTORY_USER` and `$ARTIFACTORY_PASSWORD` are created as Executor Secrets. + + +#### Step 2: Automating the Configuration Across All Repositories + +After verifying the configuration on a single repository, automate the setup across all repositories by modifying the inference configuration using a Lua script. + +1. **Create or Update the Lua Script**: + - Go to `site-admin -> Code Graph -> Inference Configuration` on Sourcegraph. + - Replace or add the following Lua script for SCIP-JAVA indexing with Maven’s `settings.xml` setup: + + ```lua + local path = require("path") + local pattern = require("sg.autoindex.patterns") + local recognizer = require("sg.autoindex.recognizer") + local patterns = require "internal_patterns" + + local new_steps = { + 'mkdir -p ~/.m2', + [[echo "repo$ARTIFACTORY_USER$ARTIFACTORY_PASSWORD" > ~/.m2/settings.xml]] + } + + local new_requested_env_variables = {'ARTIFACTORY_USER', 'ARTIFACTORY_PASSWORD'} + local java_indexer = require("sg.autoindex.indexes").get "java" + + local custom_java_recognizer = recognizer.new_path_recognizer { + patterns = { + pattern.new_path_basename("pom.xml"), + pattern.new_path_basename("build.gradle"), + pattern.new_path_basename("build.gradle.kts"), + }, + generate = function(api, paths) + api:register({ + local_steps = new_steps, + requested_envvars = new_requested_env_variables, + root = path.dirname(paths[1]), + outfile = "index.scip", + indexer = java_indexer, + indexer_args = { "scip-java", "index", "--build-tool=auto" } + }) + end + } + + return require("sg.autoindex.config").new({ + ["custom.java"] = custom_java_recognizer, + ["sg.java"] = false + }) + ``` From 3e60a681edb0edbb06b577a855e5bc3551a8b29f Mon Sep 17 00:00:00 2001 From: Mariam Adedeji <32063636+Rhia2@users.noreply.github.com> Date: Wed, 16 Oct 2024 14:53:26 +0100 Subject: [PATCH 2/9] Update docs/code-search/code-navigation/private-maven-repository-configuration-scip-java.mdx Co-authored-by: Anton Sviridov --- .../private-maven-repository-configuration-scip-java.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/code-search/code-navigation/private-maven-repository-configuration-scip-java.mdx b/docs/code-search/code-navigation/private-maven-repository-configuration-scip-java.mdx index b5a6291d1..c05c19be6 100644 --- a/docs/code-search/code-navigation/private-maven-repository-configuration-scip-java.mdx +++ b/docs/code-search/code-navigation/private-maven-repository-configuration-scip-java.mdx @@ -1,7 +1,7 @@ ### Configuring Maven to Use a Private Repository for SCIP-JAVA #### Overview -In Sourcegraph, configuring SCIP-JAVA to use a private Maven repository, such as Nexus or Artifactory, is essential when dependencies should not be retrieved from public repositories. This guide covers steps to set up Maven for SCIP-JAVA indexing with a private repository, ensuring secure and consistent dependency resolution. +In Sourcegraph, configuring SCIP-JAVA to use a private Maven repository, such as Nexus or Artifactory, is essential when dependencies are retrieved from private repositories that require authentication (as opposed to public repositories such as Maven Central). This guide covers steps to set up Maven for SCIP-JAVA indexing with a private repository, ensuring secure and consistent dependency resolution. #### Step 1: Testing the Configuration on a Single Repository From 3c3e1c59c87af8196f44d6812148a9fd7af5fb6e Mon Sep 17 00:00:00 2001 From: Mariam Adedeji Date: Tue, 22 Oct 2024 22:10:07 +0100 Subject: [PATCH 3/9] Revert "Update docs/code-search/code-navigation/private-maven-repository-configuration-scip-java.mdx" This reverts commit 3e60a681edb0edbb06b577a855e5bc3551a8b29f. --- .../private-maven-repository-configuration-scip-java.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/code-search/code-navigation/private-maven-repository-configuration-scip-java.mdx b/docs/code-search/code-navigation/private-maven-repository-configuration-scip-java.mdx index c05c19be6..b5a6291d1 100644 --- a/docs/code-search/code-navigation/private-maven-repository-configuration-scip-java.mdx +++ b/docs/code-search/code-navigation/private-maven-repository-configuration-scip-java.mdx @@ -1,7 +1,7 @@ ### Configuring Maven to Use a Private Repository for SCIP-JAVA #### Overview -In Sourcegraph, configuring SCIP-JAVA to use a private Maven repository, such as Nexus or Artifactory, is essential when dependencies are retrieved from private repositories that require authentication (as opposed to public repositories such as Maven Central). This guide covers steps to set up Maven for SCIP-JAVA indexing with a private repository, ensuring secure and consistent dependency resolution. +In Sourcegraph, configuring SCIP-JAVA to use a private Maven repository, such as Nexus or Artifactory, is essential when dependencies should not be retrieved from public repositories. This guide covers steps to set up Maven for SCIP-JAVA indexing with a private repository, ensuring secure and consistent dependency resolution. #### Step 1: Testing the Configuration on a Single Repository From 4ba34168d831723b113f468c7b0a395cbe48b991 Mon Sep 17 00:00:00 2001 From: Mariam Adedeji <32063636+Rhia2@users.noreply.github.com> Date: Tue, 22 Oct 2024 23:05:21 +0100 Subject: [PATCH 4/9] Incorporated feedback for better clarity and consistency --- ...ven-repository-configuration-scip-java.mdx | 94 ++++++++++--------- 1 file changed, 50 insertions(+), 44 deletions(-) diff --git a/docs/code-search/code-navigation/private-maven-repository-configuration-scip-java.mdx b/docs/code-search/code-navigation/private-maven-repository-configuration-scip-java.mdx index b5a6291d1..025f898c2 100644 --- a/docs/code-search/code-navigation/private-maven-repository-configuration-scip-java.mdx +++ b/docs/code-search/code-navigation/private-maven-repository-configuration-scip-java.mdx @@ -1,11 +1,11 @@ ### Configuring Maven to Use a Private Repository for SCIP-JAVA #### Overview -In Sourcegraph, configuring SCIP-JAVA to use a private Maven repository, such as Nexus or Artifactory, is essential when dependencies should not be retrieved from public repositories. This guide covers steps to set up Maven for SCIP-JAVA indexing with a private repository, ensuring secure and consistent dependency resolution. +In Sourcegraph, configuring SCIP-JAVA to use a private Maven repository, such as Nexus or Artifactory, is essential when dependencies are retrieved from private repositories that require authentication (as opposed to public repositories such as Maven Central). This guide covers steps to set up Maven for SCIP-JAVA indexing with a private repository, ensuring secure and consistent dependency resolution. #### Step 1: Testing the Configuration on a Single Repository -To test and validate the Maven configuration, start by modifying a single repository’s auto-indexing settings to include a custom `settings.xml` file. +To test and validate the Maven configuration, start by modifying a single repository’s auto-indexing settings to include a custom settings.xml file. Refer to (Maven's official docs)[https://maven.apache.org/settings.html#quick-overview] for an overview of how this file is used to configure Maven repositories and other settings. 1. **Add Custom Index Job Configuration**: - Access the repository’s index settings in Sourcegraph and open the “Raw” configuration panel. @@ -19,7 +19,7 @@ To test and validate the Maven configuration, start by modifying a single reposi "echo ' repo $ARTIFACTORY_USER $ARTIFACTORY_PASSWORD ' > ~/.m2/settings.xml" ], "root": "", - "indexer": "sourcegraph/scip-java:latest-snapshot", + "indexer": "sourcegraph/scip-java:latest", "indexer_args": [ "scip-java", "index", @@ -33,53 +33,59 @@ To test and validate the Maven configuration, start by modifying a single reposi } ``` -2. **Trigger Indexing**: - - After configuring the repository, navigate to the "Precise Indexes" tab and click "Enqueue" to start the indexing process. - - Ensure that the environment variables `$ARTIFACTORY_USER` and `$ARTIFACTORY_PASSWORD` are created as Executor Secrets. +2. **Set Up Executor Secrets**: + - Before triggering the indexing process, make sure the environment variables `$ARTIFACTORY_USER` and `$ARTIFACTORY_PASSWORD` are created as [Executor Secrets](https://sourcegraph.com/docs/admin/executors/executor_secrets). +3. **Trigger Indexing**: + - After configuring the repository, navigate to the "Precise Indexes" tab and click "Enqueue" to start the indexing process. #### Step 2: Automating the Configuration Across All Repositories -After verifying the configuration on a single repository, automate the setup across all repositories by modifying the inference configuration using a Lua script. +After verifying the configuration on a single repository, you can automate the setup across all repositories by modifying the inference configuration using a Lua script. -1. **Create or Update the Lua Script**: - - Go to `site-admin -> Code Graph -> Inference Configuration` on Sourcegraph. - - Replace or add the following Lua script for SCIP-JAVA indexing with Maven’s `settings.xml` setup: +**Create or Update the Lua Script**: +Navigate to `site-admin -> Code Graph -> Inference`, and replace or add the following Lua script for SCIP-JAVA indexing with Maven’s `settings.xml` setup: - ```lua - local path = require("path") - local pattern = require("sg.autoindex.patterns") - local recognizer = require("sg.autoindex.recognizer") - local patterns = require "internal_patterns" +```lua +local path = require("path") +local pattern = require("sg.autoindex.patterns") +local recognizer = require("sg.autoindex.recognizer") +local patterns = require "internal_patterns" - local new_steps = { - 'mkdir -p ~/.m2', - [[echo "repo$ARTIFACTORY_USER$ARTIFACTORY_PASSWORD" > ~/.m2/settings.xml]] - } +local new_steps = { + 'mkdir -p ~/.m2', + [[echo "repo$ARTIFACTORY_USER$ARTIFACTORY_PASSWORD" > ~/.m2/settings.xml]] +} - local new_requested_env_variables = {'ARTIFACTORY_USER', 'ARTIFACTORY_PASSWORD'} - local java_indexer = require("sg.autoindex.indexes").get "java" - - local custom_java_recognizer = recognizer.new_path_recognizer { - patterns = { - pattern.new_path_basename("pom.xml"), - pattern.new_path_basename("build.gradle"), - pattern.new_path_basename("build.gradle.kts"), - }, - generate = function(api, paths) - api:register({ - local_steps = new_steps, - requested_envvars = new_requested_env_variables, - root = path.dirname(paths[1]), - outfile = "index.scip", - indexer = java_indexer, - indexer_args = { "scip-java", "index", "--build-tool=auto" } - }) - end - } +local new_requested_env_variables = {'ARTIFACTORY_USER', 'ARTIFACTORY_PASSWORD'} +local java_indexer = require("sg.autoindex.indexes").get "java" - return require("sg.autoindex.config").new({ - ["custom.java"] = custom_java_recognizer, - ["sg.java"] = false - }) - ``` +local custom_java_recognizer = recognizer.new_path_recognizer { + patterns = { + pattern.new_path_basename("pom.xml"), + pattern.new_path_basename("build.gradle"), + pattern.new_path_basename("build.gradle.kts"), + }, + generate = function(api, paths) + api:register({ + local_steps = new_steps, + requested_envvars = new_requested_env_variables, + root = path.dirname(paths[1]), + outfile = "index.scip", + indexer = java_indexer, + indexer_args = { "scip-java", "index", "--build-tool=auto" } + }) + end +} + +return require("sg.autoindex.config").new({ + ["custom.java"] = custom_java_recognizer, + ["sg.java"] = false +}) +``` + +#### Verifying the Configuration + +Once the Lua script is applied, you can verify that the configuration is working by using the **"Preview results"** button in the Lua script editor under the "Inference Configuration" section. This will display the inferred index jobs for your repositories, showing details such as the root directory, indexer, indexer arguments, and environment variables used for each job. + +If everything is configured correctly, the dependencies will be pulled from the specified private repository without any issues. From 2fa4e47fbab9f133bd804c8873c3fa154666cbfa Mon Sep 17 00:00:00 2001 From: Mariam Adedeji <32063636+Rhia2@users.noreply.github.com> Date: Tue, 22 Oct 2024 23:08:53 +0100 Subject: [PATCH 5/9] Incorporated feedback for better clarity and consistency --- .../private-maven-repository-configuration-scip-java.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/code-search/code-navigation/private-maven-repository-configuration-scip-java.mdx b/docs/code-search/code-navigation/private-maven-repository-configuration-scip-java.mdx index 025f898c2..42f90e45f 100644 --- a/docs/code-search/code-navigation/private-maven-repository-configuration-scip-java.mdx +++ b/docs/code-search/code-navigation/private-maven-repository-configuration-scip-java.mdx @@ -84,7 +84,7 @@ return require("sg.autoindex.config").new({ }) ``` -#### Verifying the Configuration +#### Verify the Configuration Once the Lua script is applied, you can verify that the configuration is working by using the **"Preview results"** button in the Lua script editor under the "Inference Configuration" section. This will display the inferred index jobs for your repositories, showing details such as the root directory, indexer, indexer arguments, and environment variables used for each job. From b6050e37842ec22da1088b4f6f0f5fa8738992f2 Mon Sep 17 00:00:00 2001 From: Mariam Adedeji <32063636+Rhia2@users.noreply.github.com> Date: Tue, 22 Oct 2024 23:20:36 +0100 Subject: [PATCH 6/9] Refactor the doc to focus on auto-indexing with scip-java as an example --- ...ip-java.mdx => private-maven-repository-configuration.mdx} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename docs/code-search/code-navigation/{private-maven-repository-configuration-scip-java.mdx => private-maven-repository-configuration.mdx} (89%) diff --git a/docs/code-search/code-navigation/private-maven-repository-configuration-scip-java.mdx b/docs/code-search/code-navigation/private-maven-repository-configuration.mdx similarity index 89% rename from docs/code-search/code-navigation/private-maven-repository-configuration-scip-java.mdx rename to docs/code-search/code-navigation/private-maven-repository-configuration.mdx index 42f90e45f..3cfdc78c7 100644 --- a/docs/code-search/code-navigation/private-maven-repository-configuration-scip-java.mdx +++ b/docs/code-search/code-navigation/private-maven-repository-configuration.mdx @@ -1,7 +1,7 @@ -### Configuring Maven to Use a Private Repository for SCIP-JAVA +### Configuring Maven to Use a Private Repository for Auto-Indexing #### Overview -In Sourcegraph, configuring SCIP-JAVA to use a private Maven repository, such as Nexus or Artifactory, is essential when dependencies are retrieved from private repositories that require authentication (as opposed to public repositories such as Maven Central). This guide covers steps to set up Maven for SCIP-JAVA indexing with a private repository, ensuring secure and consistent dependency resolution. +In Sourcegraph, configuring Maven to use a private repository, such as Nexus or Artifactory, is essential when dependencies are retrieved from private repositories that require authentication (as opposed to public repositories such as Maven Central). This guide covers steps to set up Maven for SCIP-JAVA indexing with a private repository, ensuring secure and consistent dependency resolution. #### Step 1: Testing the Configuration on a Single Repository From 22fa0e55347c215ec43f7c7ae825de21f3ee5f48 Mon Sep 17 00:00:00 2001 From: Maedah Batool Date: Fri, 1 Nov 2024 12:17:06 -0700 Subject: [PATCH 7/9] Add imporvements --- ...private-maven-repository-configuration.mdx | 44 ++++++++++--------- 1 file changed, 23 insertions(+), 21 deletions(-) diff --git a/docs/code-search/code-navigation/private-maven-repository-configuration.mdx b/docs/code-search/code-navigation/private-maven-repository-configuration.mdx index 3cfdc78c7..10fd16041 100644 --- a/docs/code-search/code-navigation/private-maven-repository-configuration.mdx +++ b/docs/code-search/code-navigation/private-maven-repository-configuration.mdx @@ -1,15 +1,15 @@ -### Configuring Maven to Use a Private Repository for Auto-Indexing +# Configuring Maven to Use a Private Repository for Auto-Indexing -#### Overview -In Sourcegraph, configuring Maven to use a private repository, such as Nexus or Artifactory, is essential when dependencies are retrieved from private repositories that require authentication (as opposed to public repositories such as Maven Central). This guide covers steps to set up Maven for SCIP-JAVA indexing with a private repository, ensuring secure and consistent dependency resolution. +Configuring Maven to use a private repository, such as Nexus or Artifactory, with Sourcegraph is essential when dependencies are retrieved from private repositories that require authentication (as opposed to public repositories such as Maven Central). This guide covers steps to set up Maven for SCIP-JAVA indexing with a private repository, ensuring secure and consistent dependency resolution. -#### Step 1: Testing the Configuration on a Single Repository +## Testing the Configuration on a Single Repository -To test and validate the Maven configuration, start by modifying a single repository’s auto-indexing settings to include a custom settings.xml file. Refer to (Maven's official docs)[https://maven.apache.org/settings.html#quick-overview] for an overview of how this file is used to configure Maven repositories and other settings. +To test and validate the Maven configuration, modify a single repository’s auto-indexing settings to include a custom settings.xml file. Refer to (Maven's official docs)[https://maven.apache.org/settings.html#quick-overview] for an overview of how this file is used to configure Maven repositories and other settings. -1. **Add Custom Index Job Configuration**: - - Access the repository’s index settings in Sourcegraph and open the “Raw” configuration panel. - - Insert the following configuration: +### Add Custom Index Job Configuration + +- Access the repository’s index settings in Sourcegraph and open the “Raw” configuration panel. +- Insert the following configuration: ```json { @@ -33,17 +33,19 @@ To test and validate the Maven configuration, start by modifying a single reposi } ``` -2. **Set Up Executor Secrets**: - - Before triggering the indexing process, make sure the environment variables `$ARTIFACTORY_USER` and `$ARTIFACTORY_PASSWORD` are created as [Executor Secrets](https://sourcegraph.com/docs/admin/executors/executor_secrets). +### Set Up Executor Secrets + +- Before triggering the indexing process, make sure the environment variables `$ARTIFACTORY_USER` and `$ARTIFACTORY_PASSWORD` are created as [Executor Secrets](https://sourcegraph.com/docs/admin/executors/executor_secrets). -3. **Trigger Indexing**: - - After configuring the repository, navigate to the "Precise Indexes" tab and click "Enqueue" to start the indexing process. +1. **Trigger Indexing**: + - After configuring the repository, navigate to the "Precise Indexes" tab and click "Enqueue" to start indexing. -#### Step 2: Automating the Configuration Across All Repositories +## Automating the Configuration Across All Repositories After verifying the configuration on a single repository, you can automate the setup across all repositories by modifying the inference configuration using a Lua script. -**Create or Update the Lua Script**: +### Create or Update the Lua Script + Navigate to `site-admin -> Code Graph -> Inference`, and replace or add the following Lua script for SCIP-JAVA indexing with Maven’s `settings.xml` setup: ```lua @@ -65,7 +67,7 @@ local custom_java_recognizer = recognizer.new_path_recognizer { pattern.new_path_basename("pom.xml"), pattern.new_path_basename("build.gradle"), pattern.new_path_basename("build.gradle.kts"), - }, + }, generate = function(api, paths) api:register({ local_steps = new_steps, @@ -74,18 +76,18 @@ local custom_java_recognizer = recognizer.new_path_recognizer { outfile = "index.scip", indexer = java_indexer, indexer_args = { "scip-java", "index", "--build-tool=auto" } - }) + }) end } return require("sg.autoindex.config").new({ - ["custom.java"] = custom_java_recognizer, - ["sg.java"] = false + ["custom.java"] = custom_java_recognizer, + ["sg.java"] = false }) ``` -#### Verify the Configuration +### Verify the Configuration -Once the Lua script is applied, you can verify that the configuration is working by using the **"Preview results"** button in the Lua script editor under the "Inference Configuration" section. This will display the inferred index jobs for your repositories, showing details such as the root directory, indexer, indexer arguments, and environment variables used for each job. +Once the Lua script is applied, you can verify that the configuration works by using the **"Preview results"** button in the Lua script editor under the "Inference Configuration" section. This will display the inferred index jobs for your repositories, showing details such as the root directory, indexer, indexer arguments, and environment variables used for each job. -If everything is configured correctly, the dependencies will be pulled from the specified private repository without any issues. +If everything is configured correctly, the dependencies will be pulled from the specified private repository without issues. From e0ae0dd8cbe9176fa8fd74565da9835421dee0a9 Mon Sep 17 00:00:00 2001 From: Anton Sviridov Date: Mon, 4 Nov 2024 11:17:39 +0000 Subject: [PATCH 8/9] use scip-java instead of SCIP-JAVA --- .../private-maven-repository-configuration.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/code-search/code-navigation/private-maven-repository-configuration.mdx b/docs/code-search/code-navigation/private-maven-repository-configuration.mdx index 10fd16041..e07d75494 100644 --- a/docs/code-search/code-navigation/private-maven-repository-configuration.mdx +++ b/docs/code-search/code-navigation/private-maven-repository-configuration.mdx @@ -1,6 +1,6 @@ # Configuring Maven to Use a Private Repository for Auto-Indexing -Configuring Maven to use a private repository, such as Nexus or Artifactory, with Sourcegraph is essential when dependencies are retrieved from private repositories that require authentication (as opposed to public repositories such as Maven Central). This guide covers steps to set up Maven for SCIP-JAVA indexing with a private repository, ensuring secure and consistent dependency resolution. +Configuring Maven to use a private repository, such as Nexus or Artifactory, with Sourcegraph is essential when dependencies are retrieved from private repositories that require authentication (as opposed to public repositories such as Maven Central). This guide covers steps to set up Maven for [scip-java](https://sourcegraph.github.io/scip-java/) indexing with a private repository, ensuring secure and consistent dependency resolution. ## Testing the Configuration on a Single Repository @@ -46,7 +46,7 @@ After verifying the configuration on a single repository, you can automate the s ### Create or Update the Lua Script -Navigate to `site-admin -> Code Graph -> Inference`, and replace or add the following Lua script for SCIP-JAVA indexing with Maven’s `settings.xml` setup: +Navigate to `site-admin -> Code Graph -> Inference`, and replace or add the following Lua script for [scip-java](https://sourcegraph.github.io/scip-java/) indexing with Maven’s `settings.xml` setup: ```lua local path = require("path") From b522ab3274650c98aaef7c7b103479a11037ef6d Mon Sep 17 00:00:00 2001 From: Anton Sviridov Date: Mon, 4 Nov 2024 11:20:45 +0000 Subject: [PATCH 9/9] Update private-maven-repository-configuration.mdx --- .../private-maven-repository-configuration.mdx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/code-search/code-navigation/private-maven-repository-configuration.mdx b/docs/code-search/code-navigation/private-maven-repository-configuration.mdx index e07d75494..971248494 100644 --- a/docs/code-search/code-navigation/private-maven-repository-configuration.mdx +++ b/docs/code-search/code-navigation/private-maven-repository-configuration.mdx @@ -35,10 +35,11 @@ To test and validate the Maven configuration, modify a single repository’s aut ### Set Up Executor Secrets -- Before triggering the indexing process, make sure the environment variables `$ARTIFACTORY_USER` and `$ARTIFACTORY_PASSWORD` are created as [Executor Secrets](https://sourcegraph.com/docs/admin/executors/executor_secrets). +Before triggering the indexing process, make sure the environment variables `$ARTIFACTORY_USER` and `$ARTIFACTORY_PASSWORD` are created as [Executor Secrets](https://sourcegraph.com/docs/admin/executors/executor_secrets). -1. **Trigger Indexing**: - - After configuring the repository, navigate to the "Precise Indexes" tab and click "Enqueue" to start indexing. +### Trigger Indexing + +After configuring the repository, navigate to the "Precise Indexes" tab and click "Enqueue" to start indexing. ## Automating the Configuration Across All Repositories