fixing issues with maven plugin integration tests and the timing of when artefacts are built