Examples of ArtifactKey


Examples of fr.openwide.maven.artifact.notifier.core.business.artifact.model.ArtifactKey

    this.versionCount = versionCount;
  }

  @Override
  public ArtifactKey getArtifactKey() {
    return new ArtifactKey(groupId, artifactId);
  }
View Full Code Here

Examples of fr.openwide.maven.artifact.notifier.core.business.artifact.model.ArtifactKey

    }

    @Override
    public Object convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) {
      if (StringUtils.hasText((String) source)) {
        ArtifactKey artifactKey = new ArtifactKey((String) source);
        try {
          return artifactService.getOrCreate(artifactKey);
        } catch (Exception e) {
          LOGGER.error("An error occurred while creating artifact " + artifactKey.getKey(), e);
        }
      }
      return null;
    }
View Full Code Here

Examples of fr.openwide.maven.artifact.notifier.core.business.artifact.model.ArtifactKey

    String groupId = sourceParameters.get(GROUP_ID_PARAMETER).toString();
    String artifactId = sourceParameters.get(ARTIFACT_ID_PARAMETER).toString();
   
    Artifact artifact = null;
    if (groupId != null && artifactId != null) {
      ArtifactKey artifactKey = new ArtifactKey(groupId, artifactId);
     
      try {
        artifact = conversionService.convert(artifactKey, Artifact.class);
      } catch (ConversionException e) {
        throw new LinkParameterExtractionException(e);
View Full Code Here

Examples of org.eclipse.equinox.internal.p2.metadata.ArtifactKey

   
   
    xenRootIU.setTouchpointType(PublisherHelper.TOUCHPOINT_NATIVE);
    ITouchpointData tpd = MetadataFactory.createTouchpointData(touchpointData);
    xenRootIU.addTouchpointData(tpd);
    ArtifactKey xen_image = new ArtifactKey(PublisherHelper.BINARY_ARTIFACT_CLASSIFIER, filename, Version.create("1.0.0"));
    xenRootIU.setArtifacts(new IArtifactKey[] {xen_image});
   
    File f = new File(repofiles + filename);
    IArtifactDescriptor ad = PublisherHelper.createArtifactDescriptor(xen_image, f);
 
View Full Code Here

Examples of org.eclipse.equinox.internal.p2.metadata.ArtifactKey

    touchpointData.put("install", installInstructions);

    ITouchpointData tpd = MetadataFactory.createTouchpointData(touchpointData);
    jvmIU.addTouchpointData(tpd);

    ArtifactKey jvm_rpm = new ArtifactKey(PublisherHelper.BINARY_ARTIFACT_CLASSIFIER, filename , Version.create("1.0.0"));
    jvmIU.setArtifacts(new IArtifactKey[] {jvm_rpm});
   
    File f = new File(repofiles + filename);
    IArtifactDescriptor ad = PublisherHelper.createArtifactDescriptor(jvm_rpm, f);
   
View Full Code Here

Examples of org.eclipse.m2e.core.embedder.ArtifactKey

        Map<String, String> attributes = entry.getClasspathAttributes();
        String g = attributes.get( IClasspathManager.GROUP_ID_ATTRIBUTE );
        String a = attributes.get( IClasspathManager.ARTIFACT_ID_ATTRIBUTE );
        String v = attributes.get( IClasspathManager.VERSION_ATTRIBUTE );
        String c = attributes.get( IClasspathManager.CLASSIFIER_ATTRIBUTE );
        return classpathMap.get( new ArtifactKey( g, a, v, c ) );
    }
View Full Code Here

Examples of org.eclipse.m2e.core.embedder.ArtifactKey

                            String v = me.getAttribute( "v" );
                            String c = me.getAttribute( "c" );

                            if ( g != null && a != null && v != null && path != null )
                            {
                                result.put( new ArtifactKey( g, a, v, c ), path );
                            }
                            else
                            {
                                log.debug( "Malformd Include-Artifacts element paht={};g={};a={};v={};c={}",
                                           new Object[] { path, g, a, v, c } );
View Full Code Here

Examples of org.eclipse.m2e.core.embedder.ArtifactKey

  public static Artifact getArtifact(Collection<Artifact> artifacts, ArtifactKey key) {
    if (artifacts == null || key == null || artifacts.isEmpty()) {
      return null;
    }
    for (Artifact a : artifacts) {
      ArtifactKey ak = toArtifactKey(a);
      if (key.equals(ak)) {
        return a;
      }
    }
    return null;
View Full Code Here

Examples of org.eclipse.m2e.core.embedder.ArtifactKey

  /**
   * Gets an ArtifactKey from an Artifact. This method fixes the flawed ArtifactKey(Artifact a) constructor
   * which doesn't copy the artifact classifier;
   */
  public static ArtifactKey toArtifactKey(Artifact a) {
    return new ArtifactKey(a.getGroupId(), a.getArtifactId(), a.getBaseVersion(), a.getClassifier());
  }
View Full Code Here

Examples of org.eclipse.m2e.core.embedder.ArtifactKey

      }
      MavenProject depMavenProject =  dependency.getMavenProject(monitor);

      IVirtualComponent depComponent = ComponentCore.createComponent(dependency.getProject());
         
      ArtifactKey artifactKey = ArtifactHelper.toArtifactKey(depMavenProject.getArtifact());
      //Get artifact using the proper classifier
      Artifact artifact = ArtifactHelper.getArtifact(mavenProject.getArtifacts(), artifactKey);
      if (artifact == null) {
        //could not map key to artifact
        artifact = depMavenProject.getArtifact();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.