Maven 2 使用maven在save Netbeans Enterprise项目上自动部署

Maven 2 使用maven在save Netbeans Enterprise项目上自动部署,maven-2,maven-3,netbeans-7,netbeans-plugins,jrebel,Maven 2,Maven 3,Netbeans 7,Netbeans Plugins,Jrebel,我有一个NetBeansmavenized项目,包括: web项目(war) ejb项目(jar) 父项目 马文项目 在每次更改之后,我必须清理一个构建maven项目并运行父项目 canI如何配置我的项目以在保存时自动部署 配置文件(nb configuration.xml)如下所示: <?xml version="1.0" encoding="UTF-8"?> <project-shared-configuration>

我有一个
NetBeans
mavenized项目,包括:

  • web项目(
    war

  • ejb项目(
    jar

  • 父项目

  • 马文项目

    在每次更改之后,我必须清理一个构建maven项目并运行父项目

  • canI如何配置我的项目以在保存时自动部署

    配置文件(
    nb configuration.xml
    )如下所示:

    <?xml version="1.0" encoding="UTF-8"?>
    <project-shared-configuration>
        <!--
    This file contains additional configuration written by modules in the NetBeans IDE.
    The configuration is intended to be shared among all the users of project and
    therefore it is assumed to be part of version control checkout.
    Without this configuration present, some functionality in the IDE may be limited or fail altogether.
    -->
        <properties xmlns="http://www.netbeans.org/ns/maven-properties-data/1">
            <!--
    Properties that influence various parts of the IDE, especially code formatting and the like. 
    You can copy and paste the single properties, into the pom.xml file and the IDE will pick them up.
    That way multiple projects can share the same settings (useful for formatting rules for example).
    Any value defined here will override the pom.xml file value but is only applicable to the current project.
    -->
            <netbeans.compile.on.save>all</netbeans.compile.on.save>
        </properties>
    </project-shared-configuration>
    
    
    全部的
    
    右键单击项目,然后选择“属性”。现在,单击此处的“运行”选项,选择保存时部署。希望有帮助。

    有时候,重新启动NetBeans和服务器有助于解决自动保存问题。这确实很奇怪,但在我的例子中,它起到了作用。

    尝试在netbeans conf文件中添加“false”。