Skip to content

Commit f907947

Browse files
Merge pull request #10 from wcm-io-devops/feature/configurable-maven-artifact-threads
Add support for maven.artifact.threads
2 parents 74a491b + 37a91d1 commit f907947

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

README.md

+5
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,11 @@ Path to Maven settings.xml.
7575

7676
Path to Maven settings-security.xml.
7777

78+
controlhost_maven_artifact_threads: 5
79+
80+
Threads used by maven when downloading artifacts. Increasing improves
81+
download speed.
82+
7883
#controlhost_maven_master_password:
7984

8085
When set, a Maven settings-security.xml will be created with the

defaults/main.yml

+2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ controlhost_maven_path: "{{ controlhost_user_home }}/.m2"
2323
controlhost_maven_settings_path: "{{ controlhost_maven_path }}/settings.xml"
2424
# Path to Maven settings-security.xml
2525
controlhost_maven_settings_security_path: "{{ controlhost_maven_path }}/settings-security.xml"
26+
# Threads used by maven when downloading artifacts
27+
controlhost_maven_artifact_threads: 5
2628

2729
# When set, a Maven settings-security.xml will be created with the encrypted master password and the credentials for the controlhost_maven_repositories
2830
# will be encrypted using the Maven master password

templates/settings.xml.j2

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
<profiles>
77
<profile>
88
<id>central</id>
9-
9+
<properties>
10+
<maven.artifact.threads>{{ controlhost_maven_artifact_threads }}</maven.artifact.threads>
11+
</properties>
1012
<repositories>
1113
{% for repository in controlhost_maven_repositories %}
1214
<repository>

0 commit comments

Comments
 (0)