Collection<ConfigurationStore> configurationStores,
ArtifactResolver artifactResolver,
ConfigurationStore targetConfigurationStore)
throws IOException, DeploymentException {
GeronimoApplicationManager appManager = installer.getGeronimoApplicationManager();
File ebaFile = new File(jarFile.getName());
AriesApplication app = null;
try {
if (inPlaceDeployment) {
app = appManager.createApplication(jarFile);
} else {
app = appManager.createApplication(FileSystem.getFSRoot(ebaFile));
}
} catch (Exception e) {
throw new DeploymentException("Error creating Aries Application", e);
}
if (!app.isResolved() && getResolveOnDeploy()) {
try {
app = appManager.resolve(app);
} catch (Exception e) {
throw new DeploymentException("Error resolving Aries Application", e);
}
}