【发布时间】:2014-10-10 07:02:00
【问题描述】:
每当部署捆绑包时,我想将 cfg 文件移动到 karaf 的 etc 文件夹中。 cfg 文件位于 src/main/resource 下。我在 pom 中尝试了以下操作,但它不起作用。
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.1</version>
<executions>
<execution>
<phase>deploy</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<tasks>
<echo>Using env.test.properties</echo>
<copy file="src/main/resources/test.cfg" tofile="${env.KARAF_HOME}/etc/test.cfg"/>
</tasks>
</configuration>
</execution>
</executions>
</plugin>
我该怎么做?
【问题讨论】:
标签: maven pom.xml apache-karaf