使用Maven在保存的Netbeans企业项目上自动部署 [英] Auto deploy on save Netbeans entreprise project using maven

查看:117
本文介绍了使用Maven在保存的Netbeans企业项目上自动部署的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个NetBeans精心策划的项目容器:

I have a NetBeans mavenized project Contaning:

  1. 网络项目(war)

ejb项目(jar)

父项目

Maven项目

每次更改后,我必须清理一个构建maven项目并运行父项目

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 ?

配置文件(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>

推荐答案

右键单击您的项目,然后选择属性".现在,单击运行"选项,在此处选择保存时部署".希望对您有所帮助.

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

这篇关于使用Maven在保存的Netbeans企业项目上自动部署的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆