未找到从git部署到open shift 404
我在openshift中使用wildfly image,当我通过oc命令从桌面部署示例应用程序时,它工作正常,但当它尝试从github推送相同的代码时,显示404 not found错误。pom文件在下面未找到从git部署到open shift 404,git,openshift,Git,Openshift,我在openshift中使用wildfly image,当我通过oc命令从桌面部署示例应用程序时,它工作正常,但当它尝试从github推送相同的代码时,显示404 not found错误。pom文件在下面 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.ap
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>SampleServices</groupId>
<artifactId>SampleServices</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>war</packaging>
<name>Get</name>
<dependencies>
<dependency>
<groupId>org.glassfish.jersey.containers</groupId>
<!-- if your container implements Servlet API older than 3.0, use "jersey-container-servlet-core" -->
<artifactId>jersey-container-servlet</artifactId>
<version>2.25.1</version>
</dependency>
<!-- Required only when you are using JAX-RS Client -->
<dependency>
<groupId>org.glassfish.jersey.core</groupId>
<artifactId>jersey-client</artifactId>
<version>2.25.1</version>
</dependency>
</dependencies>
<profiles>
<profile>
<id>openshift</id>
<build>
<!-- <sourceDirectory>src</sourceDirectory> -->
<finalName>SampleServices</finalName>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.5.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<version>3.0.0</version>
<configuration>
<warSourceDirectory>WebContent</warSourceDirectory>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
4.0.0
样本服务
样本服务
0.0.1-快照
战争
得到
org.glassfish.jersey.containers
jersey容器servlet
2.25.1
org.glassfish.jersey.core
泽西岛客户
2.25.1
openshift
样本服务
maven编译器插件
3.5.1
1.8
1.8
maven战争插件
3.0.0
网络内容
您能否提供正在运行的实际oc
命令?不清楚你在做什么。谢谢你的答复。当使用OC命令部署通过OC命令的构建时,我没有任何问题。但是,当相同的文件推送到github,并从github推送到opnshift build deployment时,我无法在浏览器上获取显示404 not found的文件。最后是iam用于部署的oc命令“oc start build mysample--from file=sample”