Question

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 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>
Était-ce utile?

La solution

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

Autres conseils

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

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top