Red Hat Bugzilla – Bug 813705
[OSS] git push failed for jboss app in fedora_remixed.iso.
Last modified: 2015-05-14 21:51:29 EDT
Description of problem:
It will prompt error messages when trying to do "git push" command in jboss appliction directory, and the application page is blank.
It will be successful if push with jenkins-client embedded.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.Create an Jboss application in virtual machine launched from fedora_remixed.iso
2.Make some changes in application.
3.Do git push command.
I will prompt the error message as below, and the application page is blank.
remote: [ERROR] Plugin org.apache.maven.plugins:maven-clean-plugin:2.4.1 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-clean-plugin:jar:2.4.1: Could not transfer artifact org.apache.maven.plugins:maven-clean-plugin:pom:2.4.1 from/to nexus (http://mirror1.prod.rhcloud.com:80/nexus/content/groups/public): Error transferring file: No route to host -> [Help 1]
remote: [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
remote: [ERROR] Re-run Maven using the -X switch to enable full debug logging.
remote: [ERROR] For more information about the errors and possible solutions, please read the following articles:
remote: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
remote: Running .openshift/action_hooks/build
The "git push" command should be successful, and the application page is changed correctly.
There were a couple of issues in the JBoss cartridge. One had to do with the nexus repository URL pointing to *.rhcloud.com and the other was incorrect setup of alternatives for maven (/etc/alternatives/maven-3.0).
The former URL issue was fixed by a change made by Troy Dawson, and I have fixed the other issue with the maven alternatives setup.
Verified this bug with the latest fedora remix image (24-Apr-2012), and PASS.