Examples of GAV


Examples of org.ebayopensource.nexus.plugins.artifactusage.store.GAV

          .getRepositorySystem().readArtifactDescriptor(
              this.getRepositorySession(), descriptorRequest);
      for (org.sonatype.aether.graph.Dependency dependency : descriptorResult
          .getDependencies()) {
        getLogger().debug("{} depends on {}", artifact, dependency.getArtifact());
        artifactDependencies.add(new GAV(dependency.getArtifact()
            .getGroupId(),
            dependency.getArtifact().getArtifactId(), dependency
                .getArtifact().getVersion()));
      }
    } catch (ArtifactDescriptorException e) {
View Full Code Here

Examples of org.ebayopensource.nexus.plugins.artifactusage.store.GAV

        .getRepositoryItemUid().getPath(), item.getModified())) {
      return;
    }

    // convert to a Maven project
    GAV artifact = getArtifactForStorageItem(item);
    if (artifact != null) {
      artifactUsageStore.addDependencies(artifact, dependencyResolver
          .resolveDependencies(artifact), item.getRepositoryItemUid()
          .getPath());
    }
View Full Code Here

Examples of org.ebayopensource.nexus.plugins.artifactusage.store.GAV

      getLogger().debug(
          "Removing artifact usage data for "
              + item.getRepositoryItemUid().getPath());
    }

    GAV artifact = getArtifactForStorageItem(item);
    if (artifact != null) {
      artifactUsageStore.removeArtifact(artifact);
    }
  }
View Full Code Here

Examples of org.ebayopensource.nexus.plugins.artifactusage.store.GAV

    try {
      PomArtifactManager mgr = new PomArtifactManager(
          this.nexusConfig.getTemporaryDirectory());
      mgr.storeTempPomFile(item.getInputStream());
      ArtifactCoordinate ac = mgr.getArtifactCoordinateFromTempPomFile();
      return new GAV(ac.getGroupId(), ac.getArtifactId(), ac.getVersion());
    } catch (Exception e) {
      getLogger().warn(
              "Error processing POM file for artifact usage data.", ExceptionUtils.getRootCause(e));
      return null;
    }
View Full Code Here

Examples of org.ebayopensource.nexus.plugins.artifactusage.store.GAV

      getLogger().debug(
          "getting usage of "
              + request.getResourceRef().getLastSegment());
    }
    Collection<ArtifactUser> artifactList = artifactUsageStore
        .getArtifactUsers(new GAV(request.getResourceRef()
            .getLastSegment()));
    // limiting depth of the data to n levels so that we don't stall out
    String jsonText = "{" + ArtifactUsageSerializer.toJson(artifactList, 5)
        + "}";
View Full Code Here

Examples of org.ebayopensource.nexus.plugins.artifactusage.store.GAV

      getLogger().debug(
          "getting usage of "
              + request.getResourceRef().getLastSegment());
    }
    Collection<ArtifactUser> artifactList = artifactUsageStore
        .getArtifactUsers(new GAV(request.getResourceRef()
            .getLastSegment()));

    Set<GAV> artifacts = new TreeSet<GAV>();
    collectArtifacts(artifacts, artifactList);
    String jsonText = "{" + ArtifactUsageSerializer.toJson(artifacts) + "}";
View Full Code Here

Examples of org.ebayopensource.nexus.plugins.artifactusage.store.GAV

  }

  protected void collectArtifacts(Set<GAV> artifacts,
      Collection<ArtifactUser> users) {
    for (ArtifactUser user : users) {
      GAV userGav = user.getGav();
      if (artifacts.add(userGav)) {
        collectArtifacts(artifacts, user.getArtifactUsers());
      }
    }
  }
View Full Code Here

Examples of org.eclipse.tycho.p2.repository.GAV

                 * Since the p2artifacts.xml exists on disk, we can add the artifact to the (global)
                 * p2 artifact repository view of local Maven repository. Then, the artifact is
                 * available in the build.
                 */
                // TODO this should happen in resolution context
                p2ArtifactsInLocalRepo.addProject(new GAV(artifact.getGroupId(), artifact.getArtifactId(), artifact
                        .getVersion()));

            } else if (!p2Data.p2MetadataXml.isAvailable() && !p2Data.p2ArtifactsXml.isAvailable()) {
                /*
                 * The POM dependency has not been built by Tycho. If the dependency is a bundle,
View Full Code Here

Examples of org.guvnor.common.services.project.model.GAV

            jobResultEvent.fire( result );
        }
    }

    private List<String> deployResultToDetailedStringMessages( final BuildResults deployResult ) {
        GAV gav = deployResult.getGAV();
        List<String> result = buildResultsToDetailedStringMessages( deployResult.getMessages() );
        String detailedStringMessage = "artifactID:" + gav.getArtifactId() +
                ", groupId:" + gav.getGroupId() +
                ", version:" + gav.getVersion();
        result.add( detailedStringMessage );
        return result;
    }
View Full Code Here

Examples of org.guvnor.common.services.project.model.GAV

    @Ignore("Fails - ignored for Beta3")
    public void testDeployArtifact() throws Exception {
        GuvnorM2Repository repo = new GuvnorM2Repository();
        repo.init();

        GAV gav = new GAV( "org.kie.guvnor",
                           "guvnor-m2repo-editor-backend",
                           "0.0.1-SNAPSHOT" );

        InputStream is = this.getClass().getResourceAsStream( "guvnor-m2repo-editor-backend-test.jar" );
        repo.deployArtifact( is,
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.