[英]Deploy a jar to a wildfly server?
I want to deploy an application packaged in a jar to a wildfly server after maven package phase, and before maven install.我想在 maven package 阶段之后和 Z071402C5D9AFZEAB74 之前将打包在 jar 中的应用程序部署到 Wildfly 服务器。
I am using the following plugin in the project pom.xml:我在项目 pom.xml 中使用以下插件:
<plugin>
<groupId>org.wildfly.plugins</groupId>
<artifactId>wildfly-maven-plugin</artifactId>
<version>2.1.0.Beta1</version>
<configuration>
<hostname>127.0.0.1</hostname>
<port>9990</port>
</configuration>
</plugin>
how to configure this plugin execution?如何配置此插件执行?
You need the deploy
goal of that plugin.您需要该插件的
deploy
目标。 It accepts a filename
parameter which you could use to specify the application archive that you want to deploy.它接受一个
filename
参数,您可以使用该参数来指定要部署的应用程序存档。
Binding this goal to the deploy
phase of Maven will not override other goals being invoked in that phase of the Maven lifecycle.将此目标绑定到 Maven 的
deploy
阶段不会覆盖在 Maven 生命周期的该阶段调用的其他目标。 They will continue to run.他们将继续运行。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.