本文介绍了appengine-maven-plugin配置选项,如jvm标志的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

自1.7.4版本以来。 Google App Engine的官方appengine-maven插件是由Google发布的。
它有一个任务appengine:devserver来启动本地开发服务器。



这个插件似乎没有任何Maven配置选项。



我想知道如何使用
a)provider jvm flags
b)来禁用新的版本检查(离线工作时)


< groupId> net.kindleit< / groupId>
< artifactId> maven-gae-plugin< / artifactId>
< version> 0.9.4< / version>
<配置>
< disableUpdateCheck> true< / disableUpdateCheck>
< javaAgent> $ {env.REBEL_HOME} /jrebel.jar</javaAgent>
< jvmFlags>
< jvmFlag> -noverify< / jvmFlag>
< jvmFlag> -Ddatastore.backing_store = $ {project.basedir} /local_db.bin</jvmFlag>
< jvmFlag> -Ddatastore.default_high_rep_job_policy_unapplied_job_pct = 20< / jvmFlag>
< jvmFlag> -Drebel.spring_data_plugin = true< / jvmFlag>
< / jvmFlags>
<等待>真< /等待>
< / configuration>
<依赖关系>
< dependency>
< groupId> com.google.appengine< / groupId>
< artifactId> appengine-tools-sdk< / artifactId>
< version> $ {com.google.appengine.version}< / version>
< /依赖关系>
< dependency>
< groupId> com.google.appengine< / groupId>
< artifactId> appengine-api-1.0-sdk< / artifactId>
< version> $ {com.google.appengine.version}< / version>
< /依赖关系>
< /依赖关系>
< / plugin>


解决方案

我自己也有这个问题。检查插件的实际源代码后,DevAppServerRunner对将任何类型的额外参数传递给dev服务器的支持为零。看起来目前最好的方法是使用非官方插件。




Since version 1.7.4. of Google App Engine the official appengine-maven-plugin is released by Google.It has a task appengine:devserver to start the local development server.

This plugin seems not to have any Maven configuration options.

I wonder how I cana) provider jvm flagsb) to disable new version check (when working offline)

Note that until now I was using the unofficial net.kindleit maven-gae-plugin like:

<plugin>
    <groupId>net.kindleit</groupId>
    <artifactId>maven-gae-plugin</artifactId>
    <version>0.9.4</version>
    <configuration>
        <disableUpdateCheck>true</disableUpdateCheck>
        <javaAgent>${env.REBEL_HOME}/jrebel.jar</javaAgent>
        <jvmFlags>
            <jvmFlag>-noverify</jvmFlag>
            <jvmFlag>-Ddatastore.backing_store=${project.basedir}/local_db.bin</jvmFlag>
            <jvmFlag>-Ddatastore.default_high_rep_job_policy_unapplied_job_pct=20</jvmFlag>
            <jvmFlag>-Drebel.spring_data_plugin=true</jvmFlag>
        </jvmFlags>
        <wait>true</wait>
    </configuration>
    <dependencies>
        <dependency>
            <groupId>com.google.appengine</groupId>
            <artifactId>appengine-tools-sdk</artifactId>
            <version>${com.google.appengine.version}</version>
        </dependency>
        <dependency>
            <groupId>com.google.appengine</groupId>
            <artifactId>appengine-api-1.0-sdk</artifactId>
            <version>${com.google.appengine.version}</version>
        </dependency>
    </dependencies>
</plugin>
解决方案

Having exactly that issue myself. Checking the actual sources for the plugin, the DevAppServerRunner has zero support for passing extra arguments of any kind to the dev server. It looks like the best way to do it at the moment is to use the unofficial plugin.

source for DevAppServerRunner.java

这篇关于appengine-maven-plugin配置选项,如jvm标志的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-28 19:15