#packagingmaventojar #createexecutablejarwithmaven #jarmaven #executablejarmaven
Example project which I use to build executable jar, you can download in this repository (https://github.com/AminTurmudiYusup/m...)
HOW to Packaging maven project into an executable Jar file
prerequisite
1. maven already installed on your laptop
2. intellij idea, eclipse idea and other idea
3. project which create using maven
Let's jump right into tutorial
1. open pom.xml
2. add plugin maven-assembly-plugin
3. define your application name
4. define your main class
5. build your app with dependencies(StringUtils)
6. run this command = mvn clean compile assembly:single
7. open folder which jar already builded
8. run jar with this command = java -jar yourjarapplication.jar
Succes, Happy learning and happy sharing!!!
Смотрите видео How to Create an Executable JAR with Maven онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Programming Tutorial 07 Март 2022, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 602 раз и оно понравилось like людям.