我想使用maven程序集插件來過濾我的shell腳本。其他屬性和xml文件正在過濾正確。但是,我在shell腳本的日誌中收到以下消息。如何使用maven程序集插件過濾shell腳本
相關組件描述符。
<file>
<source>src/main/config/default/buildcron.csh</source>
<outputDirectory>/bin</outputDirectory>
<filtered>true</filtered>
</file>
這裏是沒有過濾日誌腳本的消息。 file buildcron.csh has a filtered file extension
。有什麼方法可以改變這種默認行爲嗎?
PS:我看到與txt文件類似的行爲。
編輯:下面是pom.xml中
正在使用的插件<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>make-assembly</id>
<phase>install</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
<configuration>
<filters>
<filter>env/${env}.properties</filter>
</filters>
<descriptors>
<descriptor>src/main/assembly/myapp-server.xml</descriptor>
</descriptors>
</configuration>
</plugin>
</plugins>
</build>
感謝, Prabhjot
你能多給點輸出嗎? POM片段?你正在使用哪個Assembly插件版本?你能給完整的描述符嗎? – khmarbaise 2011-03-24 07:08:54
已添加POM的相關部分。 – Prabhjot 2011-03-24 07:29:41
您錯過了maven assembly插件版本?你爲什麼在安裝階段配置你的程序集?您是否嘗試過使用fileSet而不是單個文件在描述符中配置過濾? – khmarbaise 2011-03-24 07:42:40