*/
import java.io.File;
-import java.util.Iterator;
import org.apache.maven.archiva.configuration.ArchivaConfiguration;
import org.apache.maven.archiva.configuration.Configuration;
private boolean hasDependency( ArchivaProjectModel model, String key )
{
- for ( Iterator i = model.getDependencies().iterator(); i.hasNext(); )
+ for ( Dependency dependency : model.getDependencies() )
{
- Dependency dependency = (Dependency) i.next();
if ( key.equals( Keys.toKey( dependency.getGroupId(), dependency.getArtifactId(), dependency.getVersion() ) ) )
{
return true;