o Added some more delegates to real local repo to prevents plugins from NPEs or unexpected data

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@785410 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2009-06-16 21:22:42 +00:00
parent 0852f8d21d
commit 1b80f29418
1 changed files with 34 additions and 1 deletions

View File

@ -3,7 +3,9 @@ package org.apache.maven.repository;
import org.apache.maven.artifact.Artifact; import org.apache.maven.artifact.Artifact;
import org.apache.maven.artifact.metadata.ArtifactMetadata; import org.apache.maven.artifact.metadata.ArtifactMetadata;
import org.apache.maven.artifact.repository.ArtifactRepository; import org.apache.maven.artifact.repository.ArtifactRepository;
import org.apache.maven.artifact.repository.ArtifactRepositoryPolicy;
import org.apache.maven.artifact.repository.DefaultArtifactRepository; import org.apache.maven.artifact.repository.DefaultArtifactRepository;
import org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout;
/** /**
* Delegating local artifact repository chains the reactor, IDE workspace * Delegating local artifact repository chains the reactor, IDE workspace
@ -66,7 +68,7 @@ public class DelegatingLocalArtifactRepository
public String getId() public String getId()
{ {
return "local"; return userLocalArtifactRepository.getId();
} }
@Override @Override
@ -80,4 +82,35 @@ public class DelegatingLocalArtifactRepository
{ {
return userLocalArtifactRepository.getBasedir(); return userLocalArtifactRepository.getBasedir();
} }
@Override
public ArtifactRepositoryLayout getLayout()
{
return userLocalArtifactRepository.getLayout();
}
@Override
public ArtifactRepositoryPolicy getReleases()
{
return userLocalArtifactRepository.getReleases();
}
@Override
public ArtifactRepositoryPolicy getSnapshots()
{
return userLocalArtifactRepository.getSnapshots();
}
@Override
public String getKey()
{
return userLocalArtifactRepository.getKey();
}
@Override
public String getUrl()
{
return userLocalArtifactRepository.getUrl();
}
} }