maven-2 - 使用 maven 自动部署保存 Netbeans 企业项目

标签 maven-2 maven-3 netbeans-7 netbeans-plugins jrebel

我有一个 NetBeans Mavenized项目包含:

  • 网络项目 ( war ) enter image description here
  • ejb 项目 ( jar ) enter image description here
  • 父项目enter image description here
  • Maven 项目 enter image description here
    每次更改后,我必须清理构建 Maven 项目并运行父项目

  • 如何将我的项目配置为在保存时自动部署?
    配置文件( 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>
    

    最佳答案

    右键单击您的项目,然后选择“属性”。现在,单击此处的“运行”选项,选择“保存时部署”。希望能帮助到你。

    关于maven-2 - 使用 maven 自动部署保存 Netbeans 企业项目,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21702422/

    相关文章:

    svn - 无法连接到 Subversion 本地存储库

    layout - 我可以在 Netbeans 7.2 中保存我的窗口布局吗?

    java - Maven 可以生成 exe 文件和 mac os x 应用程序吗?

    java - Maven : How to include jars, 在代表 J2EE 项目中不可用?

    apache-flex - 应该使用哪个版本的 flexmojos?

    Maven 原型(prototype) - 可选属性,默认为空

    java - 解决 IVY ANT 的 Oracle JDBC 依赖性

    java - Java 中清理或修复 pom.xml 的工具 - Maven 项目

    maven-3 - Maven 3 - 值得吗?

    java - Netbeans 上的 CDI @Target 警告消息