aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules/plugins
diff options
context:
space:
mode:
authorOlivier Lamy <olamy@apache.org>2014-03-27 06:01:50 +0000
committerOlivier Lamy <olamy@apache.org>2014-03-27 06:01:50 +0000
commitbb79c82aabfc7f6624ff6b97bddd654b02dabe7d (patch)
tree1dba6e3984db08d58a7762810849536280c0acd5 /archiva-modules/plugins
parent5719fa8827456c108d32a5f403b984e53ee4bdf1 (diff)
downloadarchiva-bb79c82aabfc7f6624ff6b97bddd654b02dabe7d.tar.gz
archiva-bb79c82aabfc7f6624ff6b97bddd654b02dabe7d.zip
fix facet creation
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1582198 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/plugins')
-rw-r--r--archiva-modules/plugins/metadata-store-cassandra/src/main/java/org/apache/archiva/metadata/repository/cassandra/CassandraMetadataRepository.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/archiva-modules/plugins/metadata-store-cassandra/src/main/java/org/apache/archiva/metadata/repository/cassandra/CassandraMetadataRepository.java b/archiva-modules/plugins/metadata-store-cassandra/src/main/java/org/apache/archiva/metadata/repository/cassandra/CassandraMetadataRepository.java
index 246651e33..da38d0e8e 100644
--- a/archiva-modules/plugins/metadata-store-cassandra/src/main/java/org/apache/archiva/metadata/repository/cassandra/CassandraMetadataRepository.java
+++ b/archiva-modules/plugins/metadata-store-cassandra/src/main/java/org/apache/archiva/metadata/repository/cassandra/CassandraMetadataRepository.java
@@ -1061,7 +1061,7 @@ public class CassandraMetadataRepository
MetadataFacetFactory metadataFacetFactory = metadataFacetFactories.get( entry.getKey() );
if ( metadataFacetFactory != null )
{
- MetadataFacet metadataFacet = metadataFacetFactory.createMetadataFacet( repoId, entry.getKey() );
+ MetadataFacet metadataFacet = metadataFacetFactory.createMetadataFacet( );
metadataFacet.fromProperties( entry.getValue() );
projectVersionMetadata.addFacet( metadataFacet );
}
@@ -2113,8 +2113,7 @@ public class CassandraMetadataRepository
List<MetadataFacetModel> facetModels = entry.getValue();
if ( !facetModels.isEmpty() )
{
- MetadataFacet metadataFacet =
- metadataFacetFactory.createMetadataFacet( repoId, facetModels.get( 0 ).getName() );
+ MetadataFacet metadataFacet = metadataFacetFactory.createMetadataFacet();
Map<String, String> props = new HashMap<String, String>( facetModels.size() );
for ( MetadataFacetModel metadataFacetModel : facetModels )
{