Updated pom to create javadoc correctly depending on JDK version