How to make SBT to not-ignore .ebextensions folder

2019-04-22 05:15发布

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!

1条回答
叛逆
2楼-- · 2019-04-22 06:06

The web plugin appears to respect excludeFilter, which is by default:

excludeFilter := HiddenFileFilter

You can redefine it to allow .ebextensions:

excludeFilter := HiddenFileFilter -- ".ebextensions"
查看更多
登录 后发表回答