Properties properties = readOrCreateProperties( directory, PROJECT_VERSION_METADATA_KEY );
// remove properties that are not references or artifacts
- for ( Object key : properties.keySet() )
+ for ( Object key : new ArrayList( properties.keySet() ) )
{
String name = (String) key;
if ( !name.contains( ":" ) && !name.equals( "facetIds" ) )
{
metadataFacet = metadataFacetFactory.createMetadataFacet( repositoryId, name );
Map<String, String> map = new HashMap<String, String>();
- for ( Object key : properties.keySet() )
+ for ( Object key : new ArrayList( properties.keySet() ) )
{
String property = (String) key;
map.put( property, properties.getProperty( property ) );
{
MetadataFacet facet = factory.createMetadataFacet();
Map<String, String> map = new HashMap<String, String>();
- for ( Object key : properties.keySet() )
+ for ( Object key : new ArrayList( properties.keySet() ) )
{
String property = (String) key;
if ( property.startsWith( facet.getFacetId() ) )