Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/mercurial/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Eclipse openshift online3中的授权问题_Eclipse_Github_Openshift - Fatal编程技术网

Eclipse openshift online3中的授权问题

Eclipse openshift online3中的授权问题,eclipse,github,openshift,Eclipse,Github,Openshift,每当我尝试将java应用程序从GitHub部署到openshift时,就会遇到授权问题。这是我在尝试将图像从git推送到openshift时得到的日志文件: Cloning "https://github.com/niladri3/niladritest2.git" ... Commit: aa3e9851141def47bb9e93d15e5e1ff80224f63e ((commited)) Author: niladri3 <1993niladri@gmail.com> Dat

每当我尝试将java应用程序从GitHub部署到openshift时,就会遇到授权问题。这是我在尝试将图像从git推送到openshift时得到的日志文件:

Cloning "https://github.com/niladri3/niladritest2.git" ...
Commit: aa3e9851141def47bb9e93d15e5e1ff80224f63e ((commited))
Author: niladri3 <1993niladri@gmail.com>
Date:   Wed Jun 28 12:30:22 2017 +0530
Pulling image "registry.access.redhat.com/jboss-webserver-3/webserver30-tomcat8-openshift@sha256:37672e770d6ad5697fffc6fec6eae09108664bb34e8b01768ee58f381d80454a" ...
Pulling image "registry.access.redhat.com/jboss-webserver-3/webserver30-tomcat8-openshift@sha256:37672e770d6ad5697fffc6fec6eae09108664bb34e8b01768ee58f381d80454a" ...
Found pom.xml... attempting to build with 'mvn -e -Popenshift -DskipTests -Dcom.redhat.xpaas.repo.redhatga package -Djava.net.preferIPv4Stack=true '
Picked up JAVA_TOOL_OPTIONS: -Duser.home=/home/jboss -Duser.name=jboss
Using Apache Maven 3.0.5 (Red Hat 3.0.5-17)
Maven home: /usr/share/maven
Java version: 1.8.0_131, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.131-2.b11.el7_3.x86_64/jre
Default locale: en_US, platform encoding: ANSI_X3.4-1968
OS name: "linux", version: "3.10.0-514.25.2.el7.x86_64", arch: "amd64", family: "unix"
Picked up JAVA_TOOL_OPTIONS: -Duser.home=/home/jboss -Duser.name=jboss
[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Dashboard Maven Webapp 0.0.1-SNAPSHOT

Downloaded: https://repo1.maven.org/maven2/org/apache/maven/shared/maven-filtering/1.0-beta-2/maven-filtering-1.0-beta-2.jar (33 KB at 437.9 KB/sec

Downloaded: https://repo1.maven.org/maven2/com/thoughtworks/xstream/xstream/1.3.1/xstream-1.3.1.jar (422 KB at 1839.7 KB/sec)
[INFO] Packaging webapp
[INFO] Assembling webapp [Dashboard] in [/home/jboss/source/target/ROOT]
[INFO] Processing war project
[INFO] Copying webapp resources [/home/jboss/source/src/main/webapp]
[INFO] Webapp assembled in [196 msecs]
[INFO] Building war: /home/jboss/source/target/ROOT.war
[INFO] WEB-INF/web.xml already added, skipping
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 36.622s
[INFO] Finished at: Thu Jun 29 06:13:56 UTC 2017
[INFO] Final Memory: 16M/307M
[INFO] ------------------------------------------------------------------------
[WARNING] The requested profile "openshift" could not be activated because it does not exist.
Copying all target war artifacts from /home/jboss/source/target directory into /opt/webserver/webapps for later deployment...
'/home/jboss/source/target/ROOT.war' -> '/opt/webserver/webapps/ROOT.war'

Pushing image 172.30.254.23:5000/jd-dashboardcheck/tomcat:latest ...
error: build error: Failed to push image: unauthorized: authentication required

如果您知道我出现此错误的原因,请提供帮助。提前感谢。

推送图像时,starter-us-east-1上的构建出现了一些当前问题。这一点在:

详情请参阅:

看看这是否符合你的问题

Things I have used:
Eclipse: Maven--In the POM.xml i have changed the filename directory to ROOT
Pushed the project in the GitHub.
Getting error at the time of pushing it from github to Openshift online 3.