Я пытаюсь отфильтровать свои сценарии оболочки с помощью плагина сборки maven. Другие свойства и XML-файлы фильтруются правильно. Однако я получаю следующее сообщение в журнале для сценариев оболочки.
Соответствующий дескриптор сборки.
<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>
Спасибо, Прабхьот.
[INFO] ------------------------------------------------------------------------ [ERROR] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] : org.apache.maven.plugin.assembly.model.Assembly@f942c4 Assembly is incorrectly configured: null Assembly: null is not configured correctly: Assembly ID must be present and non-empty.
- person Prabhjot   schedule 24.03.2011