File logFile = new File(getBuild().getRootDir(),"maven-deployment."+records.size()+".log");
final Record record = new Record(repositoryUrl, logFile.getName());
records.add(record);
new TaskThread(this,ListenerAndText.forFile(logFile,this)) {
protected void perform(TaskListener listener) throws Exception {
try {
MavenEmbedder embedder = MavenUtil.createEmbedder(listener,getBuild());
ArtifactRepositoryLayout layout =
embedder.lookup( ArtifactRepositoryLayout.class,"default");