Access the full course here: javabrains.io/courses/spring_bootquickstart
Learn how to package and run your Spring Boot application as a JAR file, and also if necessary, as a WAR file.
16 Comments on "Spring Boot Quick Start 32 – Packaging and running a Spring Boot app"
mvn clean install doesn't work if you don't have Maven installed on your system and added to the PATH variable, but you have a Maven wrapper in your project so just do: mvnw clean install and it should work
Worked for me
while running an spring boot application i want to kill tom cat gracefully. let me know how it is possible
Error – No manifest attribute in jar.
As a side noteTo package with Maven it would be enough to execute:> mvn clean packageExecuting "mvn install" it of course makes a package too, but also after packaging installs the artifact to the local Maven repository ( ~/.m2 by default), which is kind of unnecessary in this case.P.S.Very nice course by the way ))
Thank you !
this is sexy
Thanks Amogh! It didn't work for me. I get this error after trying so many commands[WARNING] The requested profile "dev1" could not be activated because it does not exist.
I had a similar issue…I was starting in the wrong path. Try searching on your computer for "course-api-data" look for the one with the shortest path -> Looks like this in my computer -> C:UsersGrumpyworkspacecourse-api-data …change directory to get to the correct path…then run your mvn clean installGood luck on the build, a SNAPSHOT.jar should now be in your target folder
Everything worked fine until video number 31 but i could not run these commands on terminal
In CodeChannels.com, you can learn to code by watching videos and stay up to date with latest code shows, events and tutorials aggregated from various leading developer communities.
Copyright 2016 By CodeChannels.com All rights reserved.