maven warプラグインの「外部Webリソースの追加とフィルタリング」を参照してください。
<configuration>
<webResources>
<resource>
<!-- this is relative to the pom.xml directory -->
<directory>TheFolderYouHavedecided<directory>
</resource>
</webResources>
</configuration>
かを定義することです他の方法:ご使用の構成に次の
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>3.0.0</version>
<configuration>
<webResources>
<resource>
<!-- this is relative to the pom.xml directory -->
<directory>src/main/texts</directory>
<!-- the default value is ** -->
<includes>
<include>**/*.txt</include>
</includes>
<targetPath>war/files</targetPath>
</resource>
</webResources>
</configuration>
</plugin>