在使用mvn appengine:update命令部署Web服务期间,我遇到以下错误:
Blockquote无法找到webapp目录/home/zeesh_arif/src/spring-greeting-webservice/master/gs-rest-hateoas/target/gs-rest-hateaos-0.1.0/gs-rest-hateoas-0.1 0.0 用法:AppCfg [options] [] []
以下是pom.xml
<groupId>org.springframework</groupId>
<artifactId>gs-rest-hateoas</artifactId>
<version>0.1.0</version>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.3.3.RELEASE</version>
</parent>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-hateoas</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.jayway.jsonpath</groupId>
<artifactId>json-path</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<properties>
<java.version>1.7</java.version>
</properties>
<build>
<directory>${project.basedir}/target/gs-rest-hateaos-${project.version}</directory>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>com.google.appengine</groupId>
<artifactId>appengine-maven-plugin</artifactId>
<version>1.9.34</version>
</plugin>
</plugins>
</build>
<repositories>
<repository>
<id>spring-releases</id>
<url>https://repo.spring.io/libs-release</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>spring-releases</id>
<url>https://repo.spring.io/libs-release</url>
</pluginRepository>
</pluginRepositories>
以下是项目目录结构快照:
答案 0 :(得分:0)
问题已修复,补充道:
<packaging>war</packaging>
到pom.xml