I have a NetBeans
mavenized project Contaning:
web project (war
)
ejb project (jar
)
parent project
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>
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!
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.
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.
right click on your project then select 'properties'. Now, click on 'run' option here select deploy on save. Hope it helps.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With