Browse Source

add some comments about areas that can be improved when proxy sits behind the repository API


git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1151737 13f79535-47bb-0310-9956-ffa450edef68
tags/archiva-1.4-M1
Brett Porter 13 years ago
parent
commit
1e8ff1265f

+ 2
- 0
archiva-modules/plugins/maven2-repository/src/main/java/org/apache/archiva/dependency/tree/maven2/DefaultDependencyTreeBuilder.java View File

@@ -180,6 +180,8 @@ public class DefaultDependencyTreeBuilder
try
{
// MRM-1411
// TODO: this is a workaround for a lack of proxy capability in the resolvers - replace when it can all be
// handled there. It doesn't cache anything locally!
List< RemoteRepositoryConfiguration > remoteRepositories = new ArrayList<RemoteRepositoryConfiguration>();
Map<String, ProxyInfo > networkProxies = new HashMap<String, ProxyInfo>();


+ 2
- 0
archiva-modules/plugins/maven2-repository/src/main/java/org/apache/archiva/metadata/repository/storage/maven2/Maven2RepositoryStorage.java View File

@@ -174,6 +174,8 @@ public class Maven2RepositoryStorage
"The artifact's POM file '" + file.getAbsolutePath() + "' was missing" );
}

// TODO: this is a workaround until we can properly resolve using proxies as well - this doesn't cache
// anything locally!
List<RemoteRepositoryConfiguration> remoteRepositories = new ArrayList<RemoteRepositoryConfiguration>();
Map<String, ProxyInfo> networkProxies = new HashMap<String, ProxyInfo>();


+ 2
- 2
archiva-modules/plugins/maven2-repository/src/main/java/org/apache/archiva/metadata/repository/storage/maven2/RepositoryModelResolver.java View File

@@ -139,7 +139,7 @@ public class RepositoryModelResolver
return new RepositoryModelResolver( basedir, pathTranslator );
}

// TODO: we need to do some refactoring, we cannot re-use the proxy components of archiva-proxy in maven2-repository
// FIXME: we need to do some refactoring, we cannot re-use the proxy components of archiva-proxy in maven2-repository
// because it's causing a cyclic dependency
private boolean getModelFromProxy( RemoteRepositoryConfiguration remoteRepository, String groupId,
String artifactId, String version, String filename )
@@ -398,4 +398,4 @@ public class RepositoryModelResolver
}
}
}
}
}

Loading…
Cancel
Save