从git部署到open shift,没有找到404

时间:2017-04-06 03:56:13

标签: git openshift

我在openshift中使用wildfly图像,当我通过oc命令从我的桌面部署示例应用程序时,它的工作正常,但是当它尝试从github推送相同的代码时,它显示404未找到错误。 pom文件在

之下
    <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>

0 个答案:

没有答案