appengine:deploy 在以下两种方式之一中失败:
我尝试为它提供2个来源位置-网络资料和“常规” Java文件,但无济于事。我是Maven新手,所以可能配置不正确。 尝试根据How to add an extra source directory for maven to compile and include in the build jar?
给它提供各种来源位置,并添加其他来源还尝试移动WEB-INF目录,将其放置在src / main / webapp下,将其放置在“ src”之外,等等...
(背景-我在Google AppEngine上有一个使用Endpoints v1和Java7的项目。当我尝试使用Java8 + Endpoints v2迁移到Google Cloud SDK时,我被迫开始使用Maven。使用IntelliJ来创建项目结构))
在我的pom.xml中,有以下插件部分:
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<phase>generate-sources</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>src/main/java</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
<!-- [START appengine-plugin] -->
<plugin>
<groupId>com.google.cloud.tools</groupId>
<artifactId>appengine-maven-plugin</artifactId>
<version>1.3.2</version>
<configuration>
<sourceDirectory>${project.basedir}/src/main/*</sourceDirectory>
<!-- deploy configuration -->
</configuration>
</plugin>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<version>2.3</version>
</plugin>
<!-- [END appengine-plugin] -->
<!-- [START endpoints-frameworks-plugin] -->
<plugin>
<groupId>com.google.cloud.tools</groupId>
<artifactId>endpoints-framework-maven-plugin</artifactId>
<version>1.0.3</version>
<configuration>
<!-- plugin configuration -->
<hostname>myproj123.appspot.com</hostname>
</configuration>
</plugin>
<!-- [END endpoints-frameworks-plugin] -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<version>2.3</version>
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>display-dependency-updates</goal>
<goal>display-plugin-updates</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
谢谢!