我在 pom.xml 中有这个依赖项:
<dependency>
<groupId>com.google.appengine</groupId>
<artifactId>appengine-testing</artifactId>
<version>${appengine.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.google.appengine</groupId>
<artifactId>appengine-api-stubs</artifactId>
<version>${appengine.version}</version>
<scope>test</scope>
</dependency>
但是,尽管范围是“测试”,但 jar 仍会复制到WEB-INF\lib
文件夹中:
src\main\webapp\WEB-INF\lib