In the MANIFEST.MF file in the ear, you will need to set the follwing property
Implementation-Version: 4.23.0.1
In ANT you can use this
<manifest file="MANIFEST.MF">
<attribute name="Implementation-Version" value="${version} ${TODAY}"/>
</manifest>
If you use Hudson/Jenkins, then you can place the build version from Hudson/Jenkins with this
<manifest file="MANIFEST.MF">
<attribute name="Implementation-Version" value="${BUILD_NUMBER}"/>
</manifest>