简体   繁体   English

wildfly maven插件域部署

[英]wildfly maven plugin domain deploy

pom.xml pom.xml

<plugin>
            <groupId>org.wildfly.plugins</groupId>
            <artifactId>wildfly-maven-plugin</artifactId>
            <version>1.1.0.Beta1</version>
            <configuration>
                <domain>
                  <server-groups>
                     <server-group>main-server-group</server-group>
                  </server-groups>
                </domain>
            </configuration>
        </plugin>

in eclipse Run configurations is 在Eclipse Run配置中是

org.wildfly.plugins:wildfly-maven-plugin:run -Dwildfly.version=8.0.0.CR1

my question is why the domain path below is empty 我的问题是为什么下面的域路径为空

{$path of pom.xml}\target\wildfly-run\wildfly-8.0.0.CR1\domain\tmp

but the path of standalone 但是独立的道路

{$path of pom.xml}\target\wildfly-run\wildfly-8.0.0.CR1\standalone\tmp\vfs\temp\tempd2a5c6044ecaf908\content-b94122b24d483bc5\***(xxx.war files unzip here)

I mean,the official guide https://docs.jboss.org/wildfly/plugins/maven/latest/examples/deployment-example.html of the pom.xml configurations is to deploy and run the xxx.war to domain servers,why the commands above doesn't work,did I miss something? 我的意思是,pom.xml配置的官方指南https://docs.jboss.org/wildfly/plugins/maven/latest/examples/deployment-example.html是将xxx.war部署并运行到域服务器,为什么上面的命令不起作用,我错过了什么吗?

The run goal only works with a standalone server. run目标仅适用于独立服务器。 It will not launch a domain server. 它不会启动域服务器。 If you want to deploy your application to existing domain server that is already running you need to use the deploy goal. 如果要将应用程序部署到已经在运行的现有域服务器上,则需要使用deploy目标。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM