0
我想从属性文件读取属性,然后使用此值获取另一个属性文件的路径来读取它。Maven,使用属性文件读取另一个属性文件
我使用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>
我使用了两次执行,它工作正常。感谢您的回答。 – XZen
很高兴它工作:) – wemu