【发布时间】:2013-11-20 10:18:53
【问题描述】:
我想从属性文件中读取属性,然后使用这个值来获取另一个属性文件的路径来读取它。
我使用properties-maven-plugin,但它似乎无法做到这一点,或者我使用不当。
我想要这样的东西:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>properties-maven-plugin</artifactId>
<version>1.0-alpha-2</version>
<executions>
<execution>
<phase>initialize</phase>
<goals>
<goal>read-project-properties</goal>
</goals>
<configuration>
<files>
<file>${*value from another property file*}/prop.properties</file>
</files>
</configuration>
</execution>
</executions>
</plugin>
【问题讨论】:
标签: maven