Don't write pom.xml when not needed