Fix core pom.xml
Fix sonar issues