private boolean fetchArtifact(Set<String> expectedDirs, Artifact artifact) throws IOException {
Repository repository = artifact.getOrigin();
boolean isUpdated = isUpdated(artifact);
if (!isUpdated) {
File destination = new File(util.getDepsFolder(), artifact.getName());
repository.fetch(artifact, destination);
}
// store repo temp dir
if (repository.getTmpDir() != null) {
expectedDirs.add(repository.getTmpDir());