Leave a Reply

17 Comments on "Spring Boot Quick Start 32 – Packaging and running a Spring Boot app"

Notify of
avatar

Niranjan Vaddi
Guest
Niranjan Vaddi
1 month 2 days ago

May i know from where your running the command "mvn clean install" please…..?

Vivek Denver
Guest
Vivek Denver
1 month 30 days ago

Greatl tutorialsthanks

Dusan Jovanov
Guest
Dusan Jovanov
3 months 9 days ago

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

dheerajkumarreddy kotha
Guest
dheerajkumarreddy kotha
3 months 7 days ago

Worked for me

Kevin Boger
Guest
Kevin Boger
3 months 19 days ago
Great Tutorial! I can deploy my springboot (1.5.3) to Tomcat 8.5 but I noticed when I reference a another spring application as a dependency, there's an error at startup. java.lang.ClassNotFoundException: com.product.pc.model.PersonIt's just a simple java model class. Everything works in my workspace and when I run the project as a spring boot app. but when I create the WAR and drop in the webapps directory of a new instance of Tomcat. I get the error. Is there a problem with my classpath or the way Tomcat see a deployable War file? Here's my POM entry of the main project. <dependency><groupId>com.swisher</groupId><artifactId>product-common</artifactId><version>0.0.1-SNAPSHOT</version></dependency>
Muthu Prasanna
Guest
Muthu Prasanna
4 months 7 hours ago

while running an spring boot application i want to kill tom cat gracefully. let me know how it is possible

Amit Tanwani
Guest
Amit Tanwani
4 months 11 days ago

Error – No manifest attribute in jar.

Levan Kekelidze
Guest
Levan Kekelidze
5 months 22 days ago

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 ))

Nhật Hoàng Minh Phạm
Guest
Nhật Hoàng Minh Phạm
6 months 29 days ago

Thank you !

Michael Hopkins
Guest
Michael Hopkins
7 months 12 days ago

this is sexy

Peace
Guest
Peace
8 months 2 days ago

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.

Will Ruiz
Guest
Will Ruiz
4 months 2 days ago

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

wpDiscuz