add maven resource filter & mongo configuration.