for(File jar: getJars(resource)) {
Artifact a = artifactFactory.createArtifact(project.getGroupId(), project.getArtifactId()+"-"+jar.getName(), project.getVersion(), resource.getScope(), "jar");
File stamp = new File(workdir, a.getArtifactId());
if(jar.lastModified() > stamp.lastModified()) {
a.addMetadata(new ProjectArtifactMetadata(a, createArtifactPom(a)));
artifactInstaller.install(jar, a, null);
stamp.createNewFile();
stamp.setLastModified(jar.lastModified());
}