I'm a little lost. Based on your description I don't know where sample.xsd is located. Could you please give the full path (relative to the project's base directory) for sample.xsd. If it is multiple places at the time the build fails, lists every location.
It would also help if you posted the full error message you got from
Maven. I think I understand what the error is, but I'm not sure.