Fix packaging

Fixed errors when packaging with mvn pacakge command.