官术网_书友最值得收藏!

JBoss as maven plugin

The jboss-as-maven-plugin can be used to manage the application life cycle on the JBoss Application Server: it can deploy, undeploy, and redeploy applications. The jboss-as maven plugin works in the standalone and domain mode. This plugin uses the JBoss remoting protocol to perform deployments.
Update your POM file to use this plugin. In the build plugins list, add the following:

<plugin>
<groupId>org.jboss.as.plugins</groupId>
<artifactId>jboss-as-maven-plugin</artifactId>
<version>7.9.Final</version>
<configuration>
<hostname>127.0.0.1</hostname>
<port>9999</port>
<domain>
<server-groups>
<server-group>dev03</server-group>
</server-groups>
</domain>
</configuration>
</plugin>

Use the domain controller hostname (default to localhost) and port (default value=9999), specify the target deployment server group, and then run the jboss-as deploy goal to deploy your application:

$mvn jboss-as:deploy
[INFO] -------------------------------------------------------------------[INFO] Building beosbank-web Transfer Webapp 1.0-SNAPSHOT
[INFO] -------------------------------------------------------------------[INFO]
[INFO] >>> jboss-as-maven-plugin:7.9.Final:deploy (default-cli) > package @ beosbank-web >>>
…..
[INFO]
[INFO] --- jboss-as-maven-plugin:7.9.Final:deploy (default-cli) @ beosbank-web ---
mars 19, 2017 5:29:10 PM org.xnio.Xnio <clinit>
INFO: XNIO Version 3.0.7.GA
mars 19, 2017 5:29:10 PM org.xnio.nio.NioXnio <clinit>
INFO: XNIO NIO Implementation Version 3.0.7.GA
mars 19, 2017 5:29:10 PM org.jboss.remoting3.EndpointImpl <clinit>
INFO: JBoss Remoting version 3.2.12.GA
[INFO] -------------------------------------------------------------------[INFO] BUILD SUCCESS
[INFO] -------------------------------------------------------------------[INFO] Total time: 4.668 s
[INFO] Finished at: 2017-03-19T17:29:12+01:00
[INFO] Final Memory: 17M/190M
[INFO] -------------------------------------------------------------------
Full documentation of the plugin is available at https://docs.jboss.org/jbossas/7/plugins/maven/latest/index.html.
主站蜘蛛池模板: 辛集市| 黄平县| 南京市| 五莲县| 木兰县| 庐江县| 仁怀市| 贵溪市| 厦门市| 仙桃市| 通河县| 基隆市| 集贤县| 宁蒗| 洛浦县| 浦东新区| 兰溪市| 巴塘县| 牟定县| 黄浦区| 无棣县| 进贤县| 六安市| 肇州县| 渝中区| 金溪县| 灌阳县| 克什克腾旗| 白水县| 利辛县| 离岛区| 茶陵县| 平度市| 德格县| 唐海县| 勃利县| 琼中| 喀喇沁旗| 启东市| 富平县| 杭锦旗|