Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * Copyright 2012 Red Hat, Inc. and/or its affiliates.
  *
  * Licensed under the Eclipse Public License version 1.0, available at
  * http://www.eclipse.org/legal/epl-v10.html
  */
 package org.jboss.forge.maven.dependencies;
 

Author(s):
Lincoln Baxter, III
public class DependencyMetadataImpl implements DependencyMetadata
   private final Dependency dependency;
   private final List<DependencyRepositoryrepositories;
   private final List<DependencymanagedDependencies;
   private final List<Dependencydependencies;
   {
      this. = query;
      this. = new ArrayList<DependencyRepository>();
      for (RemoteRepository r : descriptor.getRepositories())
      {
         .add(new DependencyRepositoryImpl(r.getId(), r.getUrl()));
      }
       = new ArrayList<Dependency>();
      for (org.sonatype.aether.graph.Dependency d : descriptor.getManagedDependencies())
      {
      }
       = new ArrayList<Dependency>();
      for (org.sonatype.aether.graph.Dependency d : descriptor.getDependencies())
      {
         .add(convertToForge(d));
      }
   }
   {
      Artifact a = d.getArtifact();
      Dependency dep = DependencyBuilder.create()
               .setArtifactId(a.getArtifactId())
               .setGroupId(a.getGroupId())
               .setVersion(a.getBaseVersion());
      return dep;
   }
   @Override
   public String toString()
   {
      return "[dependency=" +  + ", repositories=" + 
               + ", managedDependencies=" +  + ", dependencies=" +  + "]";
   }
   @Override
   public Dependency getDependency()
   {
      return ;
   }
   @Override
   {
      return ;
   }
   @Override
   {
      return ;
   }
   @Override
   {
      return ;
   }
New to GrepCode? Check out our FAQ X