mvn clean install command

As @mksd highlighted, clean install leans your target folder and recompiles. If you are handling any faulty artefacts, you need to manually handle those as you have done

1 Like