Auto deploy on save Netbeans entreprise project using maven

久未见 提交于 2019-12-07 02:02:28

问题


I have a NetBeans mavenized project Contaning:

  1. web project (war)

  2. ejb project (jar)

  3. parent project

  4. maven project

    After every change I must clean an build the maven project and Run the Parent project

How canI configure my projects to auto deploy on save ?

the configuration file(nb-configuration.xml) is as follows :

<?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>

回答1:


right click on your project then select 'properties'. Now, click on 'run' option here select deploy on save. Hope it helps.




回答2:


Sometimes, restarting NetBeans and server helps to solve autosave problem. It's truly strange, but in my case it helped.



来源:https://stackoverflow.com/questions/21702422/auto-deploy-on-save-netbeans-entreprise-project-using-maven

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!