An Interest In:
Web News this Week
- March 22, 2024
- March 21, 2024
- March 20, 2024
- March 19, 2024
- March 18, 2024
- March 17, 2024
- March 16, 2024
April 19, 2022 09:25 pm GMT
Original Link: https://dev.to/caglarcercinli1/how-to-create-a-jar-file-on-a-springmaven-project-iba
HOW TO CREATE A JAR FILE ON A SPRING/MAVEN PROJECT
A jar file is in fact a server-runnable code.
On terminal execute this command:mvn package
This command will build the project, run the tests and create a jar file. So be sure that all tests are passing.
After that, check the target folder, jar file will be there.
Now it is time to run this jar file. Command:java -jar <name>.jar
With this command, the application will be running on the specified localhost port (default 8080). You can test it.
Happy coding with no errors!
Original Link: https://dev.to/caglarcercinli1/how-to-create-a-jar-file-on-a-springmaven-project-iba
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To