You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/maven/default/module.yaml
+11Lines changed: 11 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -50,6 +50,17 @@ envs:
50
50
- name: MAVEN_LOCAL_REPO
51
51
description: Directory to use as the local Maven repository.
52
52
example: /home/default/.m2/repository
53
+
- name: "MAVEN_REPO_URL"
54
+
example: "http://repo.example.com:8080/maven2/"
55
+
description: >
56
+
Specify a Maven repository by URL.
57
+
See MAVEN_REPOS for specifying multiple repositories.
58
+
- name: "MAVEN_REPO_ID"
59
+
example: "myrepo"
60
+
description: >
61
+
Provide a static ID for the Maven repository specified by
62
+
MAVEN_REPO_URL. The default is to generate a random ID.
63
+
See MAVEN_REPOS for specifying multiple repositories.
53
64
- name: "MAVEN_REPOS"
54
65
example: "dev-one,qe-two"
55
66
description: "If set, multi-repo support is enabled, and other MAVEN_REPO_* variables will be prefixed. For example: DEV_ONE_MAVEN_REPO_URL and QE_TWO_MAVEN_REPO_URL"
Then XML file /tmp/artifacts/configuration/settings.xml should have 1 elements on XPath //ns:server[ns:id='myrepo']
154
+
Then XML file /tmp/artifacts/configuration/settings.xml should have 1 elements on XPath //ns:profile[ns:id='myrepo-profile']/ns:repositories/ns:repository[ns:url='http://repo.example.com:8080/maven2/']
155
+
Then XML file /tmp/artifacts/configuration/settings.xml should have 1 elements on XPath //ns:server[ns:id='another']
156
+
Then XML file /tmp/artifacts/configuration/settings.xml should have 1 elements on XPath //ns:profile[ns:id='another-profile']/ns:repositories/ns:repository[ns:url='https://repo.example.org:8888/']
157
+
158
+
# OPENJDK-1961: MAVEN_REPO_URL and MAVEN_REPO_ID
159
+
Scenario: Check MAVEN_REPO_URL generates Maven settings and profile configuration
160
+
Given s2i build https://github.com/jboss-openshift/openshift-examples from spring-boot-sample-simple/target
Then XML file /tmp/artifacts/configuration/settings.xml should have 1 elements on XPath //ns:server[ns:id='myrepo']
168
+
Then XML file /tmp/artifacts/configuration/settings.xml should have 1 elements on XPath //ns:profile[ns:id='myrepo-profile']/ns:repositories/ns:repository[ns:url='http://repo.example.com:8080/maven2/']
0 commit comments