src/main/webappの一部のリソースをWARから除外したい2
昨日の続き。
こうするとindex.jspがWARにコピーされるようになってしまった。
<groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <configuration> <excludes>index.jsp</excludes> <webResources> <resource> <directory>src/override/webapp</directory> </resource> <resource> <directory>src/main/webapp</directory> </resource> </webResources> </configuration>
これでもコピーされてしまう。
<groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <configuration> <webResources> <resource> <directory>src/development/webapp</directory> </resource> <resource> <directory>src/main/webapp</directory> <excludes> <exclude>index.jsp</exclude> </excludes> </resource> </webResources> </configuration>
これなら大丈夫だった。
<groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <configuration> <excludes>index.jsp</excludes> <webResources> <resource> <directory>src/development/webapp</directory> </resource> <resource> <directory>src/main/webapp</directory> <excludes> <exclude>index.jsp</exclude> </excludes> </resource> </webResources> </configuration>