现在这真是太奇怪了:我有许多想要复制到WAR中的文件夹/文件,以下是POM的相关部分:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<webResources>
<resource><directory>../common-web-content/src/main/resources</directory></resource>
<resource><directory>../pqm-web-content/src/main/resources</directory><filtering>true</filtering></resource>
<resource><directory>../common-presentation/src/main/webapp</directory></resource>
<resource>
<directory>${project.basedir}/src/main/webapp/WEB-INF</directory>
<includes><include>web.xml</include></includes>
<filtering>true</filtering>
<targetPath>WEB-INF</targetPath>
</resource>
</webResources>
</configuration>
</plugin>
路径都是正确的并且经过了双重检查。然而,第二个资源文件夹未被复制 - 在这种情况下是pqm-web-content,但即使我改变顺序,缺失的总是第二个。但是没有错误消息:
[INFO] Processing war project
[INFO] Copy webapp webResources[D:\pqmGF\pqm\pqm-war\../common-web-content/src/main/resources] to[D:\pqmGF\pqm\pqm-war\target\pqm-war-3.3.5.0-SNAPSHOT]
[INFO] Copy webapp webResources[D:\pqmGF\pqm\pqm-war\../pqm-web-content/src/main/resources] to[D:\pqmGF\pqm\pqm-war\target\pqm-war-3.3.5.0-SNAPSHOT]
[INFO] Copy webapp webResources[D:\pqmGF\pqm\pqm-war\../common-presentation/src/main/webapp] to[D:\pqmGF\pqm\pqm-war\target\pqm-war-3.3.5.0-SNAPSHOT]
[INFO] Copy webapp webResources[D:\pqmGF\pqm\pqm-war/src/main/webapp/WEB-INF] to [D:\pqmGF\pqm\pqm-war\target\pqm-war-3.3.5.0-SNAPSHOT]
[INFO] Webapp assembled in[7891 msecs]