【问题标题】:Netbeans undeploys when using netbeans.deploy使用 netbeans.deploy 时,Netbeans 取消部署
【发布时间】:2015-10-18 15:00:34
【问题描述】:

我使用下面的 xml 创建了一个自定义 netbeans 操作。

<action>
    <actionName>CUSTOM-mvn redeploy</actionName>
    <displayName>mvn redeploy</displayName>
    <properties>
        <netbeans.deploy>true</netbeans.deploy>
        <netbeans.deploy.debugmode>true</netbeans.deploy.debugmode>
    </properties>
    <goals>
        <goal>compile</goal>
        <goal>war:exploded</goal>
        <goal>tomcat7:redeploy</goal>
    </goals>
</action>

问题是使用 netbeans.deploy 元素时取消部署战争。

tomcatManager status code:200, ReasonPhrase:OK
OK - Deployed application at context path /myservice
------------------------------------------------------------------------
BUILD SUCCESS
------------------------------------------------------------------------
Total time: 25.510 s
Finished at: 2015-07-28T14:51:21+08:00
Final Memory: 37M/367M
------------------------------------------------------------------------
NetBeans: Deploying on Apache Tomcat or TomEE
    profile mode: false
    debug mode: true
    force redeploy: true
<b>Undeploying ...
undeploy?path=/myservice
OK - Undeployed application at context path /myservice

【问题讨论】:

    标签: java maven tomcat netbeans


    【解决方案1】:

    不确定作者使用的是哪个版本的 Netbeans,但从 Netbeans 12.2 开始,请参阅:https://issues.apache.org/jira/browse/NETBEANS-5143

    【讨论】:

      【解决方案2】:

      对于任何可能需要这个的人。通过在您的 pom.xml 中添加配置文件,我以某种方式解决了这个问题。您添加的配置文件将成为配置。将您的自定义操作添加到该配置中

      <profiles>
          <profile>
          <id>dev</id>
          <build>
              <finalName>myservice</finalName>
          </build>
      </profile>
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2021-02-25
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多