且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用SBT将隐藏文件夹打包在WAR文件的根目录中?

更新时间:2023-01-15 20:56:27

将文件夹放置在src/main/webapp中.

Place the folder in src/main/webapp.

更新10/23 正如Richard Dallaway在下面指出的那样,这似乎不再起作用,并且SBT的作者对这里的原因进行了很好的解释:

Update 10/23 As Richard Dallaway pointed out below, this no longer seems to work and there is a good explanation by SBT's author of why here: How to make SBT to not-ignore .ebextensions folder?. The short answer is to add this:

excludeFilter := HiddenFileFilter -- ".ebextensions" //or whatever your hidden folder name is

到您的build.sbt文件.

To your build.sbt file.