When launching mvn clean package , you'll be able to launch the generated executable JAR directly with: When launching mvn clean package , you'll be able to launch the generated executable JAR directly with:. By using our site, you acknowledge that you have read and understand our Cookie Policy , Privacy Policy , and our Terms of Service. Improving the question-asking experience. Active 2 years, 11 months ago.
Uploader: | Maugor |
Date Added: | 13 July 2008 |
File Size: | 66.63 Mb |
Operating Systems: | Windows NT/2000/XP/2003/2003/7/8/10 MacOS 10/X |
Downloads: | 41070 |
Price: | Free* [*Free Regsitration Required] |
Unicorn Meta Zoo 9: Then, when running mvn clean packageyou'll be able to start your application using the scripts generated by the Appassembler:. I have a basic spring-boot application with only one class:.
Asked 2 years, 11 months ago. Improving the question-asking experience. I have a problem with the start script that I generate with appassembler-maven-plugin.
Stack Overflow works best with JavaScript enabled. Package and scripts are generated but when I try to run. When launching mvn clean packageyou'll be able to launch the appasaembler-maven-plugin executable JAR directly with:. So remove the spring-boot-maven-plugin plugin declaration, and have in your POM:.
Maven Application Assembler – Mojo Appassembler
The difference with your current POM is that the Appassembler is bound to the package phase, so that the execution is launched without invoking appassembler: So remove the spring-boot-maven-plugin plugin declaration, and have in your POM: Active 2 years, 11 months ago. By using our site, you acknowledge that you have read and understand our Cookie PolicyPrivacy Policyand our Terms of Service. Since Spring Boot creates an executable JAR for you, generating scripts with the Appassembler plugin is not necessary.
Post as a guest Name.
Remove the plugin declaration for appassembler-maven-plugin and have: How apassembler-maven-plugin we handle problem users? Sign up or log in Sign up using Google. Could not find or load main class org.
Email Required, but never shown. Sign up using Facebook.
Maven Repository: » appassembler-maven-plugin
When launching mvn clean packageyou'll be able appassembler-mafen-plugin launch the generated executable JAR directly with: ScriptDemoApplication I tested generated packages and I can start the application without problems with: If the version 0.
I've decided to get rid of spring-boot-maven-plugin. Then, when running mvn clean packageyou'll be able to start your application using the appassembler-maven-pluyin generated by the Appassembler: Remove the plugin declaration for appassembler-maven-plugin and have:. So you have 2 solutions: I have a basic spring-boot application with only one class: Sign up using Email and Password.
Maven Repository - POM file for Build appassembler-maven-plugin 1.0-beta-1 1.0-beta-1
This apassembler-maven-plugin that they cannot be found when the executable jar is used as a dependency. Stack Overflow for Teams is a private, secure spot for you and your coworkers to find and share information. Script generated via appassembler-maven-plugin is not able to find main class in Spring Boot application Ask Question.
No comments:
Post a Comment