2014-02-11 34 views
4

我有一個NetBeans Maven化項目Contaning:自動部署上保存的Netbeans企業公司項目使用maven

  1. web項目(warenter image description here

  2. EJB項目(jarenter image description here

  3. 父項目enter image description here

  4. 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> 
+0

沒有如何ü解決它 –

回答

8

右擊你的項目,然後選擇 '屬性'。現在,點擊'運行'選項,在這裏選擇部署保存。希望能幫助到你。

+1

@Aribind 我已經做到了 –

+1

嘗試添加 「」 在NetBeans的conf文件。 – Arbind

0

嘗試重新啓動NetBeans和服務器。對我來說,這解決了自動保存問題。