Skip to content

Commit fff1965

Browse files
committed
Try setting proxy in maven_opts.
1 parent bbfea44 commit fff1965

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java-components/build-request-processor/src/main/java/com/redhat/hacbs/container/build/preprocessor/AbstractPreprocessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public void run() {
101101
export LC_ALL="en_US.UTF-8"
102102
export JAVA_HOME=${JAVA_HOME:=%s}
103103
# If we run out of memory we want the JVM to die with error code 134
104-
export MAVEN_OPTS="-XX:+CrashOnOutOfMemoryError"
104+
export MAVEN_OPTS="-Dhttp.proxyHost=localhost -Dhttp.proxyPort=8080 -XX:+CrashOnOutOfMemoryError"
105105
# If we run out of memory we want the JVM to die with error code 134
106106
export JAVA_OPTS="-XX:+CrashOnOutOfMemoryError"
107107
export %s_HOME=${%s_HOME:=/opt/%s/%s}

0 commit comments

Comments
 (0)