change java version to 1.7
add distributionManagement to POM
update url of nexus repository