wildfly-jar-maven-plugin | WildFly Bootable JAR | Continuous Deployment library
kandi X-RAY | wildfly-jar-maven-plugin Summary
kandi X-RAY | wildfly-jar-maven-plugin Summary
WildFly Bootable JAR
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Trigger a rebootable jar
- Start the server .
- Checks to see if there are any overlays in the overlays that have been removed .
- Updates the configuration .
- Parse an expression .
- Generate the configuration .
- Handles CloudConfig command .
- Fork a class .
- Process module template .
- Enrich the configured repositories .
wildfly-jar-maven-plugin Key Features
wildfly-jar-maven-plugin Examples and Code Snippets
Community Discussions
Trending Discussions on wildfly-jar-maven-plugin
QUESTION
So normally you could use the standalone.xml to do this, but the wildfly bootable JAR seems not to have a standalone.xml since it's all within a single JAR.
The examples that JBoss provides assume you'll only ever use OpenShift for some reason and uses some arcane OpenShift CLI command (below) that just somehow creates the right file in the right spot. https://github.com/wildfly-extras/wildfly-jar-maven-plugin/tree/4.0.0.Final/examples/postgresql
...ANSWER
Answered 2021-Apr-09 at 15:24Figured this out on my own with some experimentation. WildFly documentation on bootable jars is still really minimal and lacking lots of detail that required lots of guessing / experimenting.
While there is an overlay that lets you specify DB info via environment variables, that's a bit hacky and doesn't allow you to define more than one datasource nor can you specify the JNDI name. Instead, I used a CLI script which gets fed into the jar builder plugin.
datasource.cli
QUESTION
I'm deploying a bootable JAR on Wildfly 21.0.1.Final. The JAR is built with the wildfly-jar-maven-plugin. Here is the plugin configuration:
...ANSWER
Answered 2021-Mar-12 at 18:26Answering my own question. It appears that simply defining the h2 dependency as follows:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install wildfly-jar-maven-plugin
You can use wildfly-jar-maven-plugin like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the wildfly-jar-maven-plugin component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page