java_gen/pom.xml: Bump version to 0.4.0

Reviewer: @rlane 
CC: @vishnu-emmadi @brajneesh 

Snapshotting/freezing 0.3.* for fl2 platform release. This should go in before any OF1.4 related changes.