Leave a Reply

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

Notify of
avatar

David Diz Oya
Guest
David Diz Oya
14 days 18 hours ago

Thanks a lot. It's so helpful.

Niranjan Vaddi
Guest
Niranjan Vaddi
2 months 27 days ago

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

Aarold Aaroldson
Guest
Aarold Aaroldson
6 days 9 hours ago

from command line

Vivek Denver
Guest
Vivek Denver
3 months 24 days ago

Greatl tutorialsthanks

Dusan Jovanov
Guest
Dusan Jovanov
5 months 2 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
5 months 1 day ago

Worked for me

Kevin Boger
Guest
Kevin Boger
5 months 13 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
5 months 24 days 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
6 months 4 days ago

Error – No manifest attribute in jar.

Will Mitchell
Guest
Will Mitchell
1 month 7 days ago

Thanks Sajid

Sajid Ali Khan
Guest
Sajid Ali Khan
1 month 19 days ago

Amit Tanwani try with command mvn package spring-boot:repackage in target folder. This worked for me.

Levan Kekelidze
Guest
Levan Kekelidze
7 months 16 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 ))

jsbamboo
Guest
jsbamboo
8 months 22 days ago

Thank you !

Michael Hopkins
Guest
Michael Hopkins
9 months 6 days ago

this is sexy

wpDiscuz