Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Auto deploy on save Netbeans entreprise project using maven

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>
like image 579
CHHIBI AMOR Avatar asked Feb 11 '14 12:02

CHHIBI AMOR


People also ask

How to deploy Maven project in NetBeans?

Right click on your project in the Netbeans 'Projects' view and select the Custom / Goals … in the drop down menu as shown below. Type 'deploy' in the field 'Goals' in the following dialog. Then, click Ok and your project should be deployed!

How configure Maven settings XML in NetBeans?

Check your Maven settingsOpen the Options window in the IDE (Tools > Options; NetBeans > Preferences on Mac). Select the Java category in the Options window and click the Maven tab. Confirm that a Maven Home is specified.

Where is POM XML in NetBeans?

For all Maven projects, the pom. xml file (POM) is located under the Project Files node in the Projects window. If you look at the POM for the NetBeans Platform Application project, you can see that the two other modules created by the wizard are listed as modules in the application.


1 Answers

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

like image 178
Arbind Avatar answered Sep 19 '22 20:09

Arbind