mirror of
https://github.com/apache/archiva.git
synced 2025-02-06 10:09:32 +00:00
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
This commit is contained in:
parent
4e18b216a5
commit
1e8ff1265f
@ -180,6 +180,8 @@ public void buildDependencyTree( List<String> repositoryIds, String groupId, Str
|
||||
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>();
|
||||
|
||||
|
@ -174,6 +174,8 @@ public ProjectVersionMetadata readProjectVersionMetadata( String repoId, String
|
||||
"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>();
|
||||
|
||||
|
@ -139,7 +139,7 @@ public ModelResolver newCopy()
|
||||
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 @@ private void moveFileIfExists( File fileToMove, File directory )
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user