Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/maven/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google app engine GWT 2.7+;GAE应用程序在部署时查找codeserver 为什么appengine尝试使用超级开发模式?_Google App Engine_Maven_Gwt_Gwt Maven Plugin_Gwt Super Dev Mode - Fatal编程技术网

Google app engine GWT 2.7+;GAE应用程序在部署时查找codeserver 为什么appengine尝试使用超级开发模式?

Google app engine GWT 2.7+;GAE应用程序在部署时查找codeserver 为什么appengine尝试使用超级开发模式?,google-app-engine,maven,gwt,gwt-maven-plugin,gwt-super-dev-mode,Google App Engine,Maven,Gwt,Gwt Maven Plugin,Gwt Super Dev Mode,每次我将我的GWT应用程序部署到appengine并尝试访问它时,我都会看到白色的加载屏幕,大约20-30秒后,我会收到以下消息: 我将maven与and一起使用。使用部署会得到相同的结果 如果我切换回使用2.6.1版本的gwt和它部署的GWTMaven插件,那么这似乎与自动开发模式启动器有关 我的一些pom.xml ${webappDirectory}/WEB-INF/classes src/main/resources src/main/super ${project.build.dir

每次我将我的GWT应用程序部署到appengine并尝试访问它时,我都会看到白色的加载屏幕,大约20-30秒后,我会收到以下消息:

我将maven与and一起使用。使用部署会得到相同的结果

如果我切换回使用2.6.1版本的gwt和它部署的GWTMaven插件,那么这似乎与自动开发模式启动器有关

我的一些pom.xml

${webappDirectory}/WEB-INF/classes
src/main/resources
src/main/super
${project.build.directory}/generated sources/apt
${project.build.directory}/generated sources/gwt
org.apache.maven.plugins
maven编译器插件
${maven编译器plugin.version}
${target.jdk}
${target.jdk}
${project.build.sourceEncoding}
没有一个
org.apache.maven.plugins
maven surefire插件
${maven surefire plugin.version}
**/*Test.java
**/*GwtTest.java
**/*JUnitTest.java
org.codehaus.mojo
GWTMaven插件
${gwt maven plugin.version}
真的
180
**/*GwtTest.java
htmlunit
-Xss1024k-Xmx2048M-XX:MaxPermSize=512M
信息
漂亮的
真的
${webappDirectory}
com.google.appengine.tools.development.gwt.AppEngineLauncher
${gae.version}
${gae.home}
-Dappengine.sdk.root=${gae.home}
-Ddatastore.default\u high\u rep\u job\u policy\u unapplied\u job\u pct=20
8888
Project.html
com.utilities savings.usavappv7.Project
编译
测试
com.google.appengine
appengine maven插件
${gae.version}
真的
com.google.gwt
gwt用户
${gwt.version}
假如
com.google.gwt
gwt servlet
${gwt.version}
运行时
com.google.appengine
appengine-api-1.0-sdk
${gae.version}
com.google.appengine
阿彭金api实验室
${gae.version}
com.google.appengine
appengine api存根
${gae.version}
测试
com.google.appengine
阿彭金试验
${gae.version}
测试
javax.persistence
持久性api
${persistence api.version}
com.googlecode.objectify
客观化
${objectify.version}
javax.validation
验证api
${javax.validation.version}
javax.servlet
servlet api
${servlet api.version}
运行时
jstl
jstl
1.2
在my Project.gwt.xml中

(尝试删除此行,但仍然得到相同的结果)

环境 月食月神(4.4.1)

Maven 3.2.3(3.2.1嵌入式)


M2Eclipse1.5.0

gwt:compile
通过比较nocache.js文件的时间戳与源文件的时间戳来尝试“增量”工作,如果认为输出是最新的,则跳过gwt编译这是易碎的
gwt:run
(不带
false
;和
gwt:run codeserver
launcherDir
)将使用特定于SuperDevMode的版本覆盖nocache.js,这可能导致
gwt:compile
跳过编译


要点是:在部署或“释放”时,确保首先运行
mvn clean
force
gwt:compile
通过将
-Dgwt.compiler.force
传递给Maven来运行。

仅供参考,我也遇到了同样的问题,这是由使用非标准项目结构引起的

Maven在不同于
/target/
的目录中复制
.nocache
文件,这阻止了
清理
插件清理生成的文件


在复制文件的目录中添加一个新的目录可以解决问题。

谢谢,但我总是先运行“mvn clean”,每次尝试都会出现这种情况。会这样吗?(但是使用由SuperDevMode而不是经典DevMode生成的nocache.js,因此行为有所不同)
    <build>
        <outputDirectory>${webappDirectory}/WEB-INF/classes</outputDirectory>

        <resources>
            <resource>
                <directory>src/main/resources</directory>
            </resource>
            <resource>
                <directory>src/main/super</directory>
            </resource>
            <resource>
                <directory>${project.build.directory}/generated-sources/apt</directory>
            </resource>
            <resource>
                <directory>${project.build.directory}/generated-sources/gwt</directory>
            </resource>
        </resources>

        <plugins>

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>${maven-compiler-plugin.version}</version>
                <configuration>
                    <source>${target.jdk}</source>
                    <target>${target.jdk}</target>
                    <encoding>${project.build.sourceEncoding}</encoding>
                    <proc>none</proc>
                </configuration>
            </plugin>

            <!-- JUnit Testing - skip *.GwtTest cases -->
            <!-- 'mvn test' - runs the Jukito tests -->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <version>${maven-surefire-plugin.version}</version>
                <configuration>
                    <includes>
                        <include>**/*Test.java</include>
                    </includes>
                    <excludes>
                        <exclude>**/*GwtTest.java</exclude>
                        <exclude>**/*JUnitTest.java</exclude>
                    </excludes>
                </configuration>
            </plugin>

            <!-- GWT -->
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>gwt-maven-plugin</artifactId>
                <version>${gwt-maven-plugin.version}</version>
                <configuration>
                    <strict>true</strict>
                    <testTimeOut>180</testTimeOut>
                    <!-- With multiple tests use GwtTestSuite.java for speed -->
                    <includes>**/*GwtTest.java</includes>
                    <mode>htmlunit</mode>

                    <extraJvmArgs>-Xss1024k -Xmx2048M -XX:MaxPermSize=512M</extraJvmArgs>
                    <logLevel>INFO</logLevel>
                    <style>PRETTY</style>

                    <copyWebapp>true</copyWebapp>
                    <hostedWebapp>${webappDirectory}</hostedWebapp>

                    <server>com.google.appengine.tools.development.gwt.AppEngineLauncher</server>
                    <appEngineVersion>${gae.version}</appEngineVersion>
                    <appEngineHome>${gae.home}</appEngineHome>
                    <extraJvmArgs>-Dappengine.sdk.root=${gae.home}</extraJvmArgs>
                    <extraJvmArgs>-Ddatastore.default_high_rep_job_policy_unapplied_job_pct=20</extraJvmArgs>
                    <port>8888</port>

                    <runTarget>Project.html</runTarget>
                    <modules>
                        <module>com.utilitiessavings.usavappv7.Project</module>
                    </modules>
                </configuration>
                <executions>
                    <execution>
                        <goals>
                            <goal>compile</goal>
                            <goal>test</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

            <!-- Google App Engine Deployment -->
            <plugin>
                <groupId>com.google.appengine</groupId>
                <artifactId>appengine-maven-plugin</artifactId>
                <version>${gae.version}</version>
                <configuration>
                    <enableJarSplitting>true</enableJarSplitting>
                </configuration>
            </plugin>
        </plugins>
    </build>

    <dependencies>

        <!-- Google Web Toolkit dependencies -->
        <dependency>
            <groupId>com.google.gwt</groupId>
            <artifactId>gwt-user</artifactId>
            <version>${gwt.version}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.google.gwt</groupId>
            <artifactId>gwt-servlet</artifactId>
            <version>${gwt.version}</version>
            <scope>runtime</scope>
        </dependency>

        <!-- Google App Engine dependencies -->
        <dependency>
            <groupId>com.google.appengine</groupId>
            <artifactId>appengine-api-1.0-sdk</artifactId>
            <version>${gae.version}</version>
        </dependency>
        <!-- Testing -->
        <dependency>
            <groupId>com.google.appengine</groupId>
            <artifactId>appengine-api-labs</artifactId>
            <version>${gae.version}</version>
        </dependency>
        <dependency>
            <groupId>com.google.appengine</groupId>
            <artifactId>appengine-api-stubs</artifactId>
            <version>${gae.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.google.appengine</groupId>
            <artifactId>appengine-testing</artifactId>
            <version>${gae.version}</version>
            <scope>test</scope>
        </dependency>

        <!-- Persistence dependencies -->
        <dependency>
            <groupId>javax.persistence</groupId>
            <artifactId>persistence-api</artifactId>
            <version>${persistence-api.version}</version>
        </dependency>
        <dependency>
            <groupId>com.googlecode.objectify</groupId>
            <artifactId>objectify</artifactId>
            <version>${objectify.version}</version>
        </dependency>
        <dependency>
            <groupId>javax.validation</groupId>
            <artifactId>validation-api</artifactId>
            <version>${javax.validation.version}</version>
        </dependency>

        <!-- Other dependencies -->
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>servlet-api</artifactId>
            <version>${servlet-api.version}</version>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>jstl</groupId>
            <artifactId>jstl</artifactId>
            <version>1.2</version>
        </dependency>

    </dependencies>
<add-linker name="xsiframe" />