| Summary: | Unable to customize MAVEN_OPTS | ||
|---|---|---|---|
| Product: | OpenShift Online | Reporter: | Chris Ryan <cryan> |
| Component: | Image | Assignee: | Ben Parees <bparees> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | libra bugs <libra-bugs> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 2.x | CC: | bmeng, bparees, chunchen, dmace |
| Target Milestone: | --- | Keywords: | UpcomingRelease |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-01-30 00:50:41 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Chris Ryan
2013-11-22 15:20:53 UTC
Commit pushed to master at https://github.com/openshift/origin-server https://github.com/openshift/origin-server/commit/c886c189aa70a40a587bd4734eb2e8cf0b7eda31 Bug 1033673 - Unable to customize MAVEN_OPTS Checked on devenv_4236, the issue is reproduced, please refer to the following results: 1. Create a jbossas-7 app rhc app create cas00 jbossas-7 2. Create .openshift/action_hooks/pre_build_jbossas-7 3. In this file, add export MAVEN_OPTS="-Xmx512m" export MAVEN_ARGS="clean package -Popenshift -DskipTests --debug" 4. git commit/push the changes 5. Check the value of MAVEN_OPTS variable ]$ rhc ssh cas00 'env | grep MAVEN' SSH_ORIGINAL_COMMAND=env | grep MAVEN The behavior is not supposed to permanently alter the environment variable of the gear, it is only supposed to alter the arguments passed to the maven invocation during the build, so you need to watch the output of the maven command during the build process to see that the -Xmx argument is correct:
remote: [DEBUG] properties used {java.vendor=Oracle Corporation, sun.java.launch
<output trimmed>
env.MAVEN_OPTS=-Xmx512m
|