diff options
author | Maria Odea B. Ching <oching@apache.org> | 2008-02-25 07:38:31 +0000 |
---|---|---|
committer | Maria Odea B. Ching <oching@apache.org> | 2008-02-25 07:38:31 +0000 |
commit | 79947feead7b500a49014df828e7fda28c97741a (patch) | |
tree | 5e24001124af6a52c08748a613100061c4b7d096 /archiva-base/archiva-repository-layer/src | |
parent | 64cd5a74559b0c26513d765362faa0be5be75bc4 (diff) | |
download | archiva-79947feead7b500a49014df828e7fda28c97741a.tar.gz archiva-79947feead7b500a49014df828e7fda28c97741a.zip |
-merge changes from archiva-1.0.x branch -r630722
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@630750 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-base/archiva-repository-layer/src')
-rw-r--r-- | archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/project/filters/EffectiveProjectModelFilter.java | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/project/filters/EffectiveProjectModelFilter.java b/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/project/filters/EffectiveProjectModelFilter.java index 76225b8fd..24a22f90c 100644 --- a/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/project/filters/EffectiveProjectModelFilter.java +++ b/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/project/filters/EffectiveProjectModelFilter.java @@ -111,10 +111,15 @@ public class EffectiveProjectModelFilter // Resolve dependency versions from dependency management. applyDependencyManagement( effectiveProject ); - synchronized ( effectiveProjectCache ) + // Do not add project into cache if it contains no groupId and + // version information + if ( project.getGroupId() != null && project.getVersion() != null ) { - DEBUG( "Putting (to cache/projectKey): " + projectKey ); - effectiveProjectCache.put( projectKey, effectiveProject ); + synchronized ( effectiveProjectCache ) + { + DEBUG( "Putting (to cache/projectKey): " + projectKey ); + effectiveProjectCache.put( projectKey, effectiveProject ); + } } // Return what we got. |