I'm working on a Spring Boot application using IntelliJ IDEA. I can run the application locally with a Maven run configuration using the goal spring-boot:run, and it works as expected, I have also colleagues that are running the application with the Spring Boot plugin configuration and it works perfectly.
The problem is that when I launch the application with the Application configuration:
it gives me the following errors:
-- [ main] o.a.c.c.StandardService : Stopping service [Tomcat]
2025-11-21 12:46:19.030 INFO 77224 --- [ main] .s.b.a.l.ConditionEvaluationReportLogger :
Error starting ApplicationContext. To display the condition evaluation report re-run your application with 'debug' enabled.
2025-11-21 12:46:19.203 ERROR 77224 --- [ main] o.s.b.SpringApplication : Application run failed
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 's3ServiceImpl': Unsatisfied dependency expressed through field 's3Client': Error creating bean with name 's3client' defined in class path resource [com....configuration/S3Configuration.class]: Failed to instantiate [com.amazonaws.services.s3.AmazonS3]: Factory method 's3client' threw exception with message: org/apache/http/protocol/HttpRequestExecutor
...
Caused by: java.lang.ClassNotFoundException: org.apache.http.protocol.HttpRequestExecutor...
Why am I having errors depending on the configuration? How can the Application Configuration run be fixed?


ClassNotFoundExceptionlooks like a dependency issue.