Fixed stubs generation part in pom.

Fixed stubs generation and associated with correct life cycle in maven
source generation
Maven target folders ignored
Increase version to java 1.7
Increase version to 1.7