小编Flo*_*ion的帖子

使用谷歌appengine maven插件来部署Jax-RS战争

我正在尝试创建一个简单的基础项目,将我使用Jax-RS库进行的服务部署到我的Google应用引擎云空间.问题是我不知道如何正确配置插件以不继续查看目标文件夹下的webapp目录.Jax-rs项目的结构将web.xml和所有其他WEB-INF文件放在resources目录下而不是webapp目录下.有没有办法配置maven插件来部署我已经构建和压缩的war文件?

这是我看到的错误

[INFO]更新Google App Engine应用程序无法找到webapp目录C:\ dev\gameTrunk\server\target\HOMMTG-server-1.0用法:AppCfg [options] [] []

操作必须是以下之一:help:打印特定操作的帮助.
download_app:下载以前上传的应用版本.
request_logs:以Apache通用日志格式写入请求日志.
rollback:回滚正在进行的更新.start:启动指定的服务器版本.

它继续所有的appengine插件目标...

这是我的pom

<plugins>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <version>2.5.1</version>
            <artifactId>maven-compiler-plugin</artifactId>
            <configuration>
                <source>1.6</source>
                <target>1.6</target>
            </configuration>
        </plugin>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-war-plugin</artifactId>
            <version>2.3</version>
            <configuration>
                <archiveClasses>true</archiveClasses>
                <webResources>
                    <!-- in order to interpolate version from pom into appengine-web.xml -->
                    <resource>
                        <directory>${basedir}/src/main/resources/WEB-INF</directory>
                        <filtering>true</filtering>
                        <targetPath>WEB-INF</targetPath>
                    </resource>
                </webResources>
            </configuration>
        </plugin>
        <plugin>
            <groupId>com.google.appengine</groupId>
            <artifactId>appengine-maven-plugin</artifactId>
            <version>${appengine.target.version}</version>
        </plugin>
    </plugins>
Run Code Online (Sandbox Code Playgroud)

这只是插件部分,但它与guestbook示例项目几乎完全相同,除了WEB-INF目录的路径

google-app-engine jax-rs web-inf web-deployment maven

5
推荐指数
1
解决办法
1504
查看次数