} else {
if (targetRepository.exists() && targetRepository.isDirectory()) {
Maven2Repository targetRepo = new Maven2Repository(targetRepository);
ConfigurationStore configStore = new RepositoryConfigurationStore(targetRepo);
Artifact pluginArtifact = PluginInstallerGBean.toArtifact(instance.getModuleId());
ConfigurationData data = configStore.loadConfiguration(pluginArtifact);
PluginInstallerGBean.addGeronimoDependencies(data, instance.getDependency(), useMavenDependencies.isIncludeVersion());
} else {
List<org.apache.maven.model.Dependency> includedDependencies = project.getOriginalModel().getDependencies();
List<org.apache.maven.model.Dependency> artifacts = project.getDependencies();
for (org.apache.maven.model.Dependency dependency : includedDependencies) {