博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
WildFly AS提供的WildFly Maven Plugin插件详解
阅读量:4178 次
发布时间:2019-05-26

本文共 1466 字,大约阅读时间需要 4 分钟。

wildfly-maven-plugin插件主要用于在WildFly AS服务器上对JavaEE应用进行部署、再次部署、运行和取消部署等操作。

wildfly-maven-plugin插件的最新版本是2016.4发布的1.1.0.Alpha8。

1. wildfly-maven-plugin插件的基本信息:

org.wildfly.plugins
wildfly-maven-plugin
1.1.0.Alpha8

2. wildfly-maven-plugin插件提供的goal:

  •  adds a resource.
  •  deploys application to the server.
  •  deploys the application to application server invoking no other goals by default.
  •  deploys an arbitrary artifact to the server.
  •  redeploys the application.
  •  redeploys the application invoking no other goals by default.
  •  undeploys the application.
  •  runs the application server and deploys your application.
  •  starts the application server and leaves the process running. In most cases the shutdown goal be executed to ensure the server is shutdown.
  •  shuts down a running application server.
  •  executes commands on the running server.

3. wildfly-maven-plugin插件可以直接执行其goal如下:

mvn wildfly:deploy

也可以将wildfly-maven-plugin插件提供的goal直接嵌入到Maven内置的生命周期阶段。如下所示,将wildfly:deploy嵌入到Maven的install阶段:
org.wildfly.plugins
wildfly-maven-plugin
1.1.0.Alpha8
install
deploy
这样,在执行mvn install的过程中,将会直接调用wildfly:deploy。

参考文献:

转载地址:http://ojlai.baihongyu.com/

你可能感兴趣的文章
CTF编码
查看>>
万能密码原理和总结
查看>>
缓冲区溢出学习
查看>>
Excel高级使用技巧
查看>>
速算,以后留着教孩子
查看>>
让你变成ps高手
查看>>
在可执行jar中动态载入第三方jar(转贴)
查看>>
考虑体积重量的01背包问题—基于遗传算法
查看>>
K-means 聚类算法
查看>>
带约束的K-means聚类算法
查看>>
约束优化方法
查看>>
VRPTW建模与求解—基于粒子群算法
查看>>
数据结构与算法(1):大O表示法
查看>>
Java学习知识树
查看>>
文科生,你为啥学编程?
查看>>
使用Eclipse时出现Unhandled event loop exception错误的有效解决办法
查看>>
JAVA之路:第一章 JAVA入门初体验
查看>>
菜鸟文科生的java之路:运算符
查看>>
菜鸟文科生的java之路:变量和常量
查看>>
菜鸟文科生的java之路:流程控制语句
查看>>