Refactored the main pom and the backend pom