I have tried to use properties file to read properties to set those values into apk while building using maven.
Pluging i have used ->>>>>>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>properties-maven-plugin</artifactId>
<version>1.0-alpha-1</version>
<executions>
<execution>
<phase>initialize</phase>
<goals>
<goal>read-project-properties</goal>
</goals>
<configuration>
<files>
<file>${basedir}/buildNumber.properties</file>
</files>
</configuration>
</execution>
</executions>
</plugin>
<build>
<sourceDirectory>src</sourceDirectory>
<finalName>myapk.${majorversion}.${minor_version}.${patch_version}.${maven.build.timestamp}</finalName>
File: buildNumber.properties
major_version=01
minor_version=00
patch_version=00
This generating myapk.01.00.00.20120127-2010.jar but apk is myapk.${major_version}.a.${minor_version}.${patch_version}.20120127-2010.apk
Let me know what I am missing here..?