{
if (this.plugins != null && !this.plugins.isEmpty())
{
for (final Iterator iterator = this.plugins.iterator(); iterator.hasNext();)
{
final Plugin plugin = (Plugin)iterator.next();
if (Constants.ARTIFACT_ID.equals(plugin.getArtifactId()))
{
final List dependencies = plugin.getDependencies();
if (dependencies != null)
{
for (final Iterator dependencyIterator = plugin.getDependencies().iterator();
dependencyIterator.hasNext();)
{
final Dependency dependency = (Dependency)dependencyIterator.next();
dependency.setScope(Artifact.SCOPE_RUNTIME);
this.addDependency(dependency);