I\'m trying to add an .ebextensions folder to the root level of my jar to be deployed to AWS elastic beanstalk.
My folder structure is:
main:
--src
--re
This works for me, is the cleanest way (in maven) I found to solve this:
Add .ebextensions in the root of your project and add this snippet at the end in the plugins section:
org.apache.maven.plugins
maven-antrun-plugin
1.6
prepare
package
run
This plugin use ant to unzip the final jar generated by spring boot, copy the .ebextensions in the root and zip (jar) again with the same name. Tested and working in production :)
Works with Spring 1.5.3.RELEASE