1
(我希望我正確措辭的稱號!)不能在Ant構建使用屬性從引用的POM
我有被引用的Maven POM,像這樣一個Ant構建:
<artifact:dependencies filesetId="dependency.fileset" useScope="compile">
<pom file="pom.xml"/>
</artifact:dependencies>
<copy todir="${jar.location}">
<fileset refid="dependency.fileset" />
<mapper type="flatten" />
</copy>
在pom.xml中,一些依賴項使用屬性代替硬編碼的版本號。但是複製任務似乎沒有解決該屬性 - 它試圖從字面上使用「jarname- {app.version}」。我試着在buildfile中的某處設置「app.version」的值,不起作用。我究竟做錯了什麼??
感謝您的任何意見!