Update pom.xml. Fix exception when clicking on Window