String targetAssemblyPath = targetBasePath + artifactId+"-"+version;
String targetArchivePath = targetBasePath;
try {
DownloadResults downloadResults = pluginInstaller.installPluginList("repository", targetAssemblyPath, installList);
archiver.archive(targetAssemblyPath, targetArchivePath, new Artifact(groupId, artifactId, version, format));
} catch (Exception e) {
throw new PortletException("Could not assemble server", e);
}
response.setRenderParameter("assemblyFileLocation", targetBasePath);