Bug 1362328 - [xPaaS] Support setting multiple maven repositories with MAVEN_MIRROR_URL for JWS/EAP S2I image
Summary: [xPaaS] Support setting multiple maven repositories with MAVEN_MIRROR_URL for...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: ImageStreams
Version: 3.2.1
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: ---
Assignee: kconner
QA Contact: Tomas Schlosser
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-08-02 01:09 UTC by Kenjiro Nakayama
Modified: 2016-08-08 17:26 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-08-08 17:22:37 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker CLOUD-877 0 Minor Resolved Support setting multiple maven repositories with MAVEN_MIRROR_URL for JWS/EAP S2I image 2017-04-12 20:27:47 UTC

Description Kenjiro Nakayama 2016-08-02 01:09:16 UTC
Description of problem:

- Support setting multiple maven repositories with MAVEN_MIRROR_URL for JWS/EAP S2I image

Version-Release number of selected component (if applicable):

- Current released version in xPaaS builder image

How reproducible:

- There are no way to set multiple maven repos.

Actual results:

- Currently only one repo can be set with $MAVEN_MIRROR_URL value.

Expected results:

- Set multiple values with $MAVEN_MIRROR_URL(S).

Additional info:

- scripts/s2i-common/common.sh supports only one repo.
---
# insert settings for mirrors/repository managers into settings.xml if supplied
function configure_mirrors() {
  if [ -n "$MAVEN_MIRROR_URL" ]; then
    xml="    <mirror>\
      <id>mirror.default</id>\
      <url>$MAVEN_MIRROR_URL</url>\
      <mirrorOf>external:*</mirrorOf>\
    </mirror>"
    sed -i "s|<!-- ### configured mirrors ### -->|$xml|" $HOME/.m2/settings.xml
  fi
}
---

Comment 1 Travis Rogers 2016-08-08 17:08:06 UTC
Opened this xPaas JIRA to track - https://issues.jboss.org/browse/CLOUD-877

Comment 2 Travis Rogers 2016-08-08 17:22:37 UTC
Closing this BZ as the xPaas issue is tracked in JIRA.


Note You need to log in before you can comment on or make changes to this bug.