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.
11 Comments on "Spring Boot Quick Start 32 – Packaging and running a Spring Boot app"
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 install
Good 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
i get the message mvn command not found on mac
You can install maven via brew, that worked for me
it's because you don't have maven added to your profile. just do a google search and should be able to add. It's same way java and javac needs to be in your classpath. Hope this helps
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.