}
public void execute() {
Build build = getBuild();
Pom pom = build.getPom(tags);
if (!StringUtils.isEmpty(name)) {
pom.name = name;
}
if (!StringUtils.isEmpty(description)) {
pom.description = description;
}
if (!StringUtils.isEmpty(artifactId)) {
pom.artifactId = artifactId;
}
if (!allowSnapshots && pom.isSnapshot()) {
// do not deploy snapshots into the repository
return;
}
Dependency asDependency = new Dependency(pom.getCoordinates());
IMavenCache artifactCache = getArtifactCache(pom.isSnapshot());
File cacheRoot = artifactCache.getRootFolder();
File artifactFile = artifactCache.getArtifact(asDependency, asDependency.extension);
File artifactDir = artifactFile.getParentFile();
File sourceDir = build.getConfig().getTargetDirectory();