cd.setGroupId( d.getChild( "groupId" ).getValue() );
cd.setGroupId( d.getChild( "groupId" ).getValue() );
public static ComponentSetDescriptor buildComponentSet( PlexusConfiguration c, ClassRealm realm ) throws PlexusConfigurationException { ComponentSetDescriptor csd = new ComponentSetDescriptor(); // ---------------------------------------------------------------------- // Components // ---------------------------------------------------------------------- PlexusConfiguration[] components = c.getChild( "components" ).getChildren( "component" ); for (PlexusConfiguration component : components) { csd.addComponentDescriptor(buildComponentDescriptorImpl(component, realm)); } // ---------------------------------------------------------------------- // Dependencies // ---------------------------------------------------------------------- PlexusConfiguration[] dependencies = c.getChild( "dependencies" ).getChildren( "dependency" ); for (PlexusConfiguration d : dependencies) { ComponentDependency cd = new ComponentDependency(); cd.setArtifactId(d.getChild("artifact-id").getValue()); cd.setGroupId(d.getChild("group-id").getValue()); String type = d.getChild("type").getValue(); if (type != null) { cd.setType(type); } cd.setVersion(d.getChild("version").getValue()); csd.addDependency(cd); } return csd; }
/** * @param dependencies not null list of <code>Dependency</code> * @return list of component dependencies */ public static List toComponentDependencies( List dependencies ) { List componentDeps = new LinkedList(); for ( Iterator it = dependencies.iterator(); it.hasNext(); ) { Dependency dependency = (Dependency) it.next(); ComponentDependency cd = new ComponentDependency(); cd.setArtifactId( dependency.getArtifactId() ); cd.setGroupId( dependency.getGroupId() ); cd.setVersion( dependency.getVersion() ); cd.setType( dependency.getType() ); componentDeps.add( cd ); } return componentDeps; }
/** * @param dependencies not null list of <code>Dependency</code> * @return list of component dependencies */ public static List toComponentDependencies( List dependencies ) { List componentDeps = new LinkedList(); for ( Iterator it = dependencies.iterator(); it.hasNext(); ) { Dependency dependency = (Dependency) it.next(); ComponentDependency cd = new ComponentDependency(); cd.setArtifactId( dependency.getArtifactId() ); cd.setGroupId( dependency.getGroupId() ); cd.setVersion( dependency.getVersion() ); cd.setType( dependency.getType() ); componentDeps.add( cd ); } return componentDeps; }
/** * @param dependencies not null list of <code>Dependency</code> * @return list of component dependencies */ public static List<ComponentDependency> toComponentDependencies( List<Dependency> dependencies ) { List<ComponentDependency> componentDeps = new LinkedList<>(); for ( Dependency dependency : dependencies ) { ComponentDependency cd = new ComponentDependency(); cd.setArtifactId( dependency.getArtifactId() ); cd.setGroupId( dependency.getGroupId() ); cd.setVersion( dependency.getVersion() ); cd.setType( dependency.getType() ); componentDeps.add( cd ); } return componentDeps; }
private File getThisPluginAsDependency() { ComponentDependency dep = new ComponentDependency(); dep.setGroupId(plugin.getGroupId()); dep.setArtifactId(plugin.getArtifactId()); dep.setVersion(plugin.getVersion()); return getDependencyFile(dep); }
cd.setGroupId( d.getChild( "groupId" ).getValue() );
cd.setGroupId( d.getChild( "groupId" ).getValue() );
cd.setGroupId( d.getChild( "group-id" ).getValue() );