Skip to content
Advertisement

Using Spring Boot without Maven

I am trying to write a simple Java program that displays Hello World as a microservice. I am using Spring Boot, but due to security reasons at my company, I am unable to use Maven. Therefore, I have no option but to download the jar files and add them to my project. I have done so, and made sure I am using the latest jar versions. When I run my program, it shows no errors BUT Tomcat server is not starting and I do not see the “Hello World” message. Below is my code:

JavaScript

and below is the output:

JavaScript

and below is the jar files I am using:

enter image description here

Why Tomcat is not starting and what dependencies I am missing here? Thanks.

Advertisement

Answer

The dependency tree for spring-boot-starter-web 2.2.2 is:

JavaScript

But as mentioned in the comments you should try to make the usage of build tools (Maven/Gradle) and a company-wide repository manager (Nexus/Artifactory) possible.

Advertisement