• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

wildfly-extras/wildfly-jar-maven-plugin: WildFly Bootable JAR

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

wildfly-extras/wildfly-jar-maven-plugin

开源软件地址(OpenSource Url):

https://github.com/wildfly-extras/wildfly-jar-maven-plugin

开源编程语言(OpenSource Language):

Java 100.0%

开源软件介绍(OpenSource Introduction):

WildFly bootable JAR Maven plugin

This project defines a Maven plugin to build WildFly bootable JAR (starting version 20.0.0.Final). A WildFly bootable JAR contains both the server and your packaged application (a JAR, an EAR or a WAR). Once the application has been built and packaged as a bootable JAR, you can start the application using the following command:

java -jar target/myapp-bootable.jar

To get the list of the startup arguments:

java -jar target/myapp-bootable.jar --help

A WildFly bootable JAR behave in a way that is similar to a WildFly server installed on file system:

  • It supports the main standalone server startup arguments.
  • It can be administered/monitored using WildFly CLI.

Some limitations exist:

  • The server can't be re-started automatically during a shutdown. The bootable JAR process will exit without restarting.
  • Management model changes (eg: using WildFly CLI) are not persisted. Once the server is killed, management updates are lost.
  • Server can't be started in admin mode.

NB: When started, the bootable JAR installs a WildFly server in the TEMP directory. The bootable JAR displayed traces contain the actual path to this transient installation. This installation is deleted when the bootable JAR process exits.

Examples

The examples directory contains Maven example projects that highlight various usages of the WildFly bootable JAR. Build and run these projects to familiarize yourself with the Maven plugin. A good example to start with is the jaxrs example.

Some examples are targeting OpenShift deployment, for example:

  • The jkube example shows how to make use of the Eclipse JKube Maven plugin.

  • The microprofile-config and postgresql examples show how to use the OpenShift 'oc' command to deploy a bootable JAR on OpenShift.

  • jib example shows how to deploy a bootable JAR inside a JIB container.

Building the project

  • Clone this repository project.
  • Call: mvn clean install -DskipTests



鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
galenframework/galen-sample-java-tests: A showcase of Maven + TestNG + Galen usa ...发布时间:2022-08-17
下一篇:
jelmerk/maven-settings-decoder发布时间:2022-08-17
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap