You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by jv...@apache.org on 2009/03/06 02:33:27 UTC
svn commit: r750741 -
/maven/components/trunk/maven-repository/src/main/java/org/apache/maven/repository/MavenRepositorySystem.java
Author: jvanzyl
Date: Fri Mar 6 01:33:26 2009
New Revision: 750741
URL: http://svn.apache.org/viewvc?rev=750741&view=rev
Log:
o notes on the repository interface
Modified:
maven/components/trunk/maven-repository/src/main/java/org/apache/maven/repository/MavenRepositorySystem.java
Modified: maven/components/trunk/maven-repository/src/main/java/org/apache/maven/repository/MavenRepositorySystem.java
URL: http://svn.apache.org/viewvc/maven/components/trunk/maven-repository/src/main/java/org/apache/maven/repository/MavenRepositorySystem.java?rev=750741&r1=750740&r2=750741&view=diff
==============================================================================
--- maven/components/trunk/maven-repository/src/main/java/org/apache/maven/repository/MavenRepositorySystem.java (original)
+++ maven/components/trunk/maven-repository/src/main/java/org/apache/maven/repository/MavenRepositorySystem.java Fri Mar 6 01:33:26 2009
@@ -73,15 +73,17 @@
ArtifactRepository createLocalRepository( String url, String repositoryId )
throws IOException;
- //MetadataResolutionResult resolveMetadata( MetadataResolutionRequest request );
-
ArtifactResolutionResult resolve( ArtifactResolutionRequest request );
// Metadata
+ //MetadataResolutionResult resolveMetadata( MetadataResolutionRequest request );
+
ResolutionGroup retrieve( Artifact artifact, ArtifactRepository localRepository, List<ArtifactRepository> remoteRepositories )
throws ArtifactMetadataRetrievalException;
-
+
+ // Retrieving available versions is a function of what repositories that you pass in. If you want local and remote versions then you pass
+ // in both those repositories. We don't need two methods here.
List<ArtifactVersion> retrieveAvailableVersions( Artifact artifact, ArtifactRepository localRepository, List<ArtifactRepository> remoteRepositories )
throws ArtifactMetadataRetrievalException;
@@ -89,19 +91,20 @@
public List<ArtifactVersion> retrieveAvailableVersionsFromDeploymentRepository( Artifact artifact, ArtifactRepository localRepository, ArtifactRepository remoteRepository )
throws ArtifactMetadataRetrievalException;
+ // Relocated artifacts are stupid. If you you want to move your shit then too bad. You have to support all your users and leave your stuff
+ // there. This is just so problematic because it makes Maven folk responsible and makes the system complicated.
public Artifact retrieveRelocatedArtifact( Artifact artifact, ArtifactRepository localRepository, List<ArtifactRepository> remoteRepositories )
throws ArtifactMetadataRetrievalException;
- // Network enablement
-
+ // Network enablement: this needs to go as we will know at a higher level from the embedder if the system is offline or not, we should not have to
+ // deal with this here.
void setOnline( boolean online );
-
boolean isOnline();
+ // These should be associated with repositories and the repositories should be examine as part of metadatda and
+ // artifact resolution. So these methods should also not be here.
void addProxy( String protocol, String host, int port, String username, String password, String nonProxyHosts );
-
void addAuthenticationInfo( String repositoryId, String username, String password, String privateKey, String passphrase );
-
void addPermissionInfo( String repositoryId, String filePermissions, String directoryPermissions );
// Mirrors