Auto deploy on save Netbeans entreprise project using maven
Asked Answered
Z

2

9

I have a NetBeans mavenized project contaning:

  1. web project (war) enter image description here

  2. ejb project (jar) enter image description here

  3. parent project enter image description here

  4. maven project enter image description here

    After every change I must clean an build the maven project and run the parent project

How can I 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>
Zany answered 11/2, 2014 at 12:53 Comment(0)
G
11

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

Guggle answered 11/2, 2014 at 12:59 Comment(1)
try adding "<netbeans.deploy.on.save>false</netbeans.deploy.on.save>" in netbeans conf file.Guggle
T
1

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

Teepee answered 8/1, 2016 at 10:38 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.