I have a webapp that is built via SBT and is deployed into Amazon Elastic Beanstalk. In order to configure Beanstalk instance, one needs to put .ebextensions
folder with config files into root of WAR file. However, putting this folder into src/main/webapp
doesn't help, because SBT by default ignores all hidden folders, so resulting WAR doesn't contain the folder.
Is there some way to configure SBT to include this folder into the build, besides it's hidden? Or how can I put this folder into the build some other way? I'm using jenkins to automate build and deploy so unpack - add folder - pack again isn't really an option, unless it can be somehow scripted. Thanks!
The web plugin appears to respect excludeFilter
, which is by default:
excludeFilter := HiddenFileFilter
You can redefine it to allow .ebextensions
:
excludeFilter := HiddenFileFilter -- ".ebextensions"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With