I found this answer https://serverfault.com/a/822596/123651
I need to include a random file \.ebextensions\nginx\conf.d\elasticbeanstalk\force-https.conf
in my WAR to be deployed on the AWS ElasticBeanstalk console. How do I include this file in the mvn package
command? How will ElasticBeanstalk read this file inside of the WAR?
I tried to use this guide and added to my pom.xml
<build>
...
<resources>
<resource>
<directory>.ebextensions/nginx/conf.d/elasticbeanstalk/</directory>
<includes>
<include>force-https.conf</include>
</includes>
</resource>
</resources>
</build>
Then ran mvn package -DskipTests
and tar tvf target\app-0.0.3-SNAPSHOT.war | less
but it put the file in the wrong place!
-rw-rw-r-- 0 0 0 94 Nov 14 12:40 WEB-INF/classes/force-https.conf