現在,這是徹頭徹尾的怪異:我有很多的文件夾/文件我想複製到我的抗戰,這裏的POM的相關部分:maven WAR插件跳過資源?
<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]
您是否嘗試刪除fitering標籤? – Javabeginner 2011-05-16 08:58:07
是的 - 沒有區別 – 2011-05-16 10:06:40