From 5d9967cb56866679dbb3eb086085ad4edaf6d66a Mon Sep 17 00:00:00 2001 From: Jeff Ortel Date: Wed, 30 Oct 2024 13:56:50 -0500 Subject: [PATCH] :bug: set mavenCacheDir. (#391) Pass the mavenCacheDir property to the java provider which is used to build the maven global settings needed by JDTLS. Signed-off-by: Jeff Ortel --- roles/tackle/templates/customresource-addon-analyzer.yml.j2 | 1 + .../tackle/templates/customresource-addon-tech-discovery.yml.j2 | 1 + 2 files changed, 2 insertions(+) diff --git a/roles/tackle/templates/customresource-addon-analyzer.yml.j2 b/roles/tackle/templates/customresource-addon-analyzer.yml.j2 index 9d44190..3968ad8 100644 --- a/roles/tackle/templates/customresource-addon-analyzer.yml.j2 +++ b/roles/tackle/templates/customresource-addon-analyzer.yml.j2 @@ -69,6 +69,7 @@ spec: depOpenSourceLabelsFile: /usr/local/etc/maven.default.index lspServerPath: /jdtls/bin/jdtls mavenSettingsFile: $(maven.settings.path) + mavenCacheDir: {{ cache_mount_path }}/m2 --- kind: Extension apiVersion: tackle.konveyor.io/v1alpha1 diff --git a/roles/tackle/templates/customresource-addon-tech-discovery.yml.j2 b/roles/tackle/templates/customresource-addon-tech-discovery.yml.j2 index 95f455e..5689ae1 100644 --- a/roles/tackle/templates/customresource-addon-tech-discovery.yml.j2 +++ b/roles/tackle/templates/customresource-addon-tech-discovery.yml.j2 @@ -69,6 +69,7 @@ spec: depOpenSourceLabelsFile: /usr/local/etc/maven.default.index lspServerPath: /jdtls/bin/jdtls mavenSettingsFile: $(maven.settings.path) + mavenCacheDir: {{ cache_mount_path }}/m2 --- kind: Extension apiVersion: tackle.konveyor.io/v1alpha1