aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-core
diff options
context:
space:
mode:
authorBrett Porter <brett@apache.org>2006-08-26 14:46:23 +0000
committerBrett Porter <brett@apache.org>2006-08-26 14:46:23 +0000
commit88b4ca99fd1e941e0bae58d1e890db176df2aae4 (patch)
tree4198d59dbc5068e56d01187ac80867d536ef4960 /archiva-core
parent90b48267d7b1d9f293faa0230384d8f4413f65c5 (diff)
downloadarchiva-88b4ca99fd1e941e0bae58d1e890db176df2aae4.tar.gz
archiva-88b4ca99fd1e941e0bae58d1e890db176df2aae4.zip
fix the plexus requirement
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@437170 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-core')
-rw-r--r--archiva-core/src/main/java/org/apache/maven/archiva/configuration/DefaultConfiguredRepositoryFactory.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/archiva-core/src/main/java/org/apache/maven/archiva/configuration/DefaultConfiguredRepositoryFactory.java b/archiva-core/src/main/java/org/apache/maven/archiva/configuration/DefaultConfiguredRepositoryFactory.java
index 6485c52b6..3ba777715 100644
--- a/archiva-core/src/main/java/org/apache/maven/archiva/configuration/DefaultConfiguredRepositoryFactory.java
+++ b/archiva-core/src/main/java/org/apache/maven/archiva/configuration/DefaultConfiguredRepositoryFactory.java
@@ -38,7 +38,7 @@ public class DefaultConfiguredRepositoryFactory
implements ConfiguredRepositoryFactory
{
/**
- * @plexus.requirement role="org.apache.maven.artifact.archiva.layout.ArtifactRepositoryLayout"
+ * @plexus.requirement role="org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout"
*/
private Map repositoryLayouts;
@@ -70,6 +70,12 @@ public class DefaultConfiguredRepositoryFactory
new ArtifactRepositoryPolicy( enabled, updatePolicy, ArtifactRepositoryPolicy.CHECKSUM_POLICY_FAIL );
ArtifactRepositoryLayout layout = (ArtifactRepositoryLayout) repositoryLayouts.get( configuration.getLayout() );
+
+ if ( layout == null )
+ {
+ throw new IllegalArgumentException( "Invalid layout: " + configuration.getLayout() );
+ }
+
ArtifactRepository artifactRepository = repoFactory.createArtifactRepository( configuration.getId(),
configuration.getUrl(), layout,
snapshotsPolicy, releasesPolicy );