相关疑难解决方法(0)

什么是nbactions.xml用于?

在搜索了一会儿之后,我认为它与使用maven和net bean构建应用程序有关,但我似乎无法找到关于它的好文档.使用nbaction.xml可以实现哪个目标?对于Eclipse来说,哪一个是相同的,如果有的话呢?

java xml netbeans

21
推荐指数
1
解决办法
1万
查看次数

每次更改源文件(GWT)时都会调用Maven Project Builder

最近我将我的GWT网络应用程序(GWT 2.4.0)转换为maven项目.
我正在使用maven 2.2.1,gwt-maven插件(2.4.0),Eclipse Indigo(3.7)和m2eclipse插件.

依赖关系和一般配置看起来很好,因为web-app编译时没有任何问题,也可以在生产模式下工作.
这同样适用于托管模式.

但是我有一个奇怪的行为:当我更改Java/GWT源文件中的单行时,Maven Project Builder会调用此行并且此步骤需要很长时间(大约10秒),并且在此期间eclipse有时会变得无法使用.

这是m2eclipse的正常行为吗?

如果是的话,有什么方法可以加快速度吗?

注意:我必须为m2eclipse配置生命周期插件.这是pom文件的重要部分:

<build>
        <!-- Generate compiled stuff in the folder used for developing mode -->
        <outputDirectory>${webappDirectory}/WEB-INF/classes</outputDirectory>

        <plugins>

            <!-- GWT Maven Plugin -->
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>gwt-maven-plugin</artifactId>
                <version>2.4.0</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>compile</goal>
                            <goal>test</goal>
                        </goals>
                    </execution>
                </executions>
                <!-- Plugin configuration. There are many available options, see gwt-maven-plugin 
                    documentation at codehaus.org -->
                <configuration>
                    <runTarget>index.html</runTarget>
                    <hostedWebapp>${webappDirectory}</hostedWebapp>
                    <i18nMessagesBundle>com.gmi.nordborglab.testapp.client.Messages</i18nMessagesBundle>
                </configuration>
            </plugin>

            <!-- Copy static web files before executing gwt:run --> …
Run Code Online (Sandbox Code Playgroud)

eclipse gwt m2eclipse maven

6
推荐指数
3
解决办法
1万
查看次数

标签 统计

eclipse ×1

gwt ×1

java ×1

m2eclipse ×1

maven ×1

netbeans ×1

xml ×1