@@ -14,33 +14,32 @@ set -ex
14
14
15
15
TEST=${TEST:- false}
16
16
17
- if ( $TEST )
18
- then
19
- plugins=(
20
- " performance-analyzer"
21
- " opensearch-security"
22
- )
17
+ if ($TEST ); then
18
+ plugins=(
19
+ " performance-analyzer"
20
+ " opensearch-security"
21
+ )
23
22
else
24
- plugins=(
25
- " alerting" # "opensearch-alerting"
26
- " opensearch-job-scheduler"
27
- " opensearch-anomaly-detection" # Requires "opensearch-job-scheduler"
28
- " asynchronous-search" # "opensearch-asynchronous-search"
29
- " opensearch-cross-cluster-replication"
30
- " geospatial" # "opensearch-geospatial"
31
- " opensearch-index-management"
32
- " opensearch-knn"
33
- " opensearch-ml-plugin" # "opensearch-ml"
34
- " neural-search" # "opensearch-neural-search"
35
- " opensearch-notifications-core"
36
- " notifications" # "opensearch-notifications". Requires "opensearch-notifications-core"
37
- " opensearch-observability"
38
- " performance-analyzer" # "opensearch-performance-analyzer"
39
- " opensearch-reports-scheduler"
40
- " opensearch-security"
41
- " opensearch-security-analytics"
42
- " opensearch-sql-plugin" # "opensearch-sql"
43
- )
23
+ plugins=(
24
+ " alerting" # "opensearch-alerting"
25
+ " opensearch-job-scheduler"
26
+ " opensearch-anomaly-detection" # Requires "opensearch-job-scheduler"
27
+ " asynchronous-search" # "opensearch-asynchronous-search"
28
+ " opensearch-cross-cluster-replication"
29
+ " geospatial" # "opensearch-geospatial"
30
+ " opensearch-index-management"
31
+ " opensearch-knn"
32
+ " opensearch-ml-plugin" # "opensearch-ml"
33
+ " neural-search" # "opensearch-neural-search"
34
+ " opensearch-notifications-core"
35
+ " notifications" # "opensearch-notifications". Requires "opensearch-notifications-core"
36
+ " opensearch-observability"
37
+ " performance-analyzer" # "opensearch-performance-analyzer"
38
+ " opensearch-reports-scheduler"
39
+ " opensearch-security"
40
+ " opensearch-security-analytics"
41
+ " opensearch-sql-plugin" # "opensearch-sql"
42
+ )
44
43
fi
45
44
46
45
# ====
@@ -214,11 +213,12 @@ function enable_performance_analyzer_rca() {
214
213
# Install plugins
215
214
# ====
216
215
function install_plugins() {
217
- # Install plugins from Maven repository
218
216
echo " Install plugins"
217
+ maven_repo_local=" $HOME /maven"
219
218
for plugin in " ${plugins[@]} " ; do
220
219
plugin_from_maven=" org.opensearch.plugin:${plugin} :$VERSION .0"
221
- OPENSEARCH_PATH_CONF=$PATH_CONF " ${PATH_BIN} /opensearch-plugin" install --batch --verbose " ${plugin_from_maven} "
220
+ mvn -Dmaven.repo.local=$maven_repo_local org.apache.maven.plugins:maven-dependency-plugin:2.1:get -DrepoUrl=https://repo1.maven.org/maven2 -Dartifact=$plugin_from_maven :zip
221
+ OPENSEARCH_PATH_CONF=$PATH_CONF " ${PATH_BIN} /opensearch-plugin" install --batch --verbose " file:${maven_repo_local} /org/opensearch/plugin/${plugin} /$VERSION .0/${plugin} -$VERSION .0.zip"
222
222
done
223
223
}
224
224
0 commit comments