Hi,
I am able to write the properties to the external file using properties-maven-plugin but not able to read the properties from the files.
My properties file(app.properties) looks like:
hibernate-version=3.2.1.ga
spring-version=2.5.6
The plugin entry in the pom.xml is as follows:
<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>${basedir}/app.properties</file>
</files>
</configuration>
</execution>
</executions>
</plugin>
The file is present in the same directory as the pom.xml. But when i try to do a "mvn install", it does not take the value of ${spring-version}.
Any help would be highly appreciated.