【发布时间】:2013-12-27 03:27:51
【问题描述】:
我使用 maven-resources-plugin 从不同的项目树复制单个 WSDL 文件,如下所示:
<execution>
<id>copy-wsdl-and-rename-it</id>
<phase>validate</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${basedir}/src/main/wsdl</outputDirectory>
<resources>
<resource>
<directory>${basedir}/../myws/src/main/wsdl</directory>
<filtering>true</filtering>
</resource>
</resources>
</configuration>
</execution>
这很好用,但现在我需要将该 wsdl 目录下的(单个)文件重命名为其他文件(例如,从源目录中的 myws.wsdl 到目标目录中的 my.wsdl)。
有没有办法做到这一点,使用 maven-resources-plugin,无需借助其他插件?
【问题讨论】:
标签: maven maven-resources-plugin