【问题标题】:Auto deploy on save Netbeans entreprise project using maven使用 maven 自动部署保存 Netbeans 企业项目
【发布时间】:2014-03-09 06:32:40
【问题描述】:

我有一个NetBeans mavenized 项目包含:

  1. 网络项目 (war)

  2. ejb 项目 (jar)

  3. 父项目

  4. maven 项目

    每次更改后,我必须清理构建 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-3 netbeans-7 netbeans-plugins jrebel


    【解决方案1】:

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

    【讨论】:

    • 尝试在 netbeans conf 文件中添加“false”。
    【解决方案2】:

    有时,重新启动 NetBeans 和服务器有助于解决自动保存问题。这确实很奇怪,但在我的情况下它有所帮助。

    【讨论】:

      猜你喜欢
      • 2014-08-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-10-29
      • 1970-01-01
      • 1970-01-01
      • 2014-12-13
      相关资源
      最近更新 更多