[NPANDAY-629] Unable to build dist projects with Maven 3 Avoid NullPointerException by removing metadata from the output