java_gen/pom.xml: Bump version to 0.4.0

Snapshotting/freezing 0.3.8 for fl2 platform release.
Merge into master from pull request #312:
java_gen/pom.xml: Bump version to 0.4.0 (https://github.com/floodlight/loxigen/pull/312)