Автоматическое развертывание при сохранении проекта Netbeans Entreprise с использованием Maven

У меня есть NetBeans проект mavenized

  1. веб-проект (war)

  2. проект ejb (jar)

  3. родительский проект

  4. проект 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>

2 ответа

Решение

Щелкните правой кнопкой мыши по вашему проекту и выберите "Свойства". Теперь, нажмите здесь кнопку "Выполнить" и выберите "Сохранить при сохранении". Надеюсь, поможет.

Попробуйте перезапустить NetBeans и сервер. Для меня это решает проблему автосохранения.

Другие вопросы по тегам