【发布时间】:2013-01-07 05:07:51
【问题描述】:
我在根 pom.xml 文件中有一个属性:gecko1_8。我想把它放到 gwt.xml 文件中。
所以我把这个属性放到gwt.xml中:
我在构建部分添加了以下内容:
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
<excludes>
<exclude>VAADIN.themes/*</exclude>
</excludes>
</resource>
</resources>
但最终构建失败并出现错误:
错误:无效的属性值“${gwt.user.agents}”
错误:解析 XML 失败
如何通过属性将 pom.xml 中的值放置到 gwt.xml 文件中?
更新
有趣的事情。当我使用“mvn resources:resources”时,属性的值会正确写入 gwt.xml 文件,但如果我运行“mvn clean install -pl com.myproject.module:submodule”,它会因“无效的属性值”而失败。
【问题讨论】: