NOTE: Do not try these instructions yet since they require not-yet-merged personal branches of the ci.maven plugin
This is a prototype Maven plugin to package a Spring Boot application with Liberty
When added to your pom.xml, the plugin will
- Install Open Liberty
- Create an Open Liberty server
- Thin the Spring Boot project application
- Install the application to the server
- Install and add the springBoot-1.5 feature to the server configuration
- Package the server and application into a runnable jar
- git clone [email protected]:OpenLiberty/boost.git
- cd boost
- mvn clean install
-
Add the following to your project pom.xml
<plugin> <groupId>boost.project</groupId> <artifactId>boost-maven-plugin</artifactId> <version>1.0-SNAPSHOT</version> <executions> <execution> <phase>package</phase> <goals> <goal>package-app</goal> </goals> </execution> </executions> </plugin>
-
Run mvn clean package
-
Run the produced jar file: java -jar <application_name>.jar"