I have s Spring Boot application which is being compiled into a WAR format and which will be deployed to Amazon's Elastic Beanstalk. This application is being built using mvnw.
In order to utilize logging and certain configuration capabilities on Elastic Beanstalk, I need the ability to include -- in the root folder of the Spring Boot application, a folder called .ebextensions.
Apparently, because this folder is not part of the classpath specified in the Spring Boot configuration, mvnw does not include it when it does the build. Worse, placing it in the resources folder won't work either because Elastic Beanstalk, upon startup, will only look for the folder in the WAR file's root folder.
Is there some way to configure mvnw so that it will put .ebextensions into its proper place? Or is there some deployment procedure that I can use in order to .ebextensions included upon deployment of the WAR file? Or is there a standard way of deploying a Spring Boot application to Elastic Beanstalk that will allow the application to include the .ebextensions file?
.ebextensions
directory insrc/main/webapp
? This is where the root content of a WAR file comes from. – Steve Csrc/main/webapp
are copied to the root of the WAR when maven builds it. For example, I expect that you have asrc/main/webapp/WEB-INF
directory? If you expand your resulting WAR file thatWEB-INF
directory will appear in the root. It is no different for your.ebextensions
directory. – Steve C.ebextensions
insrc/main/webapp
- notsrc/main/webapp/WEB-INF
. The latter was an example. – Steve C