【发布时间】:2014-03-09 06:32:40
【问题描述】:
我有一个NetBeans mavenized 项目包含:
-
网络项目 (
war) -
ejb 项目 (
jar) -
父项目
-
maven 项目
每次更改后,我必须清理构建 maven 项目并运行父项目
如何配置我的项目以在保存时自动部署?
配置文件(nb-configuration.xml)如下:
<?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>
【问题讨论】:
标签: maven-2 maven-3 netbeans-7 netbeans-plugins jrebel