Package org.sonatype.nexus.proxy.maven.gav

Examples of org.sonatype.nexus.proxy.maven.gav.Gav


    private void groupVersions(final Map<Gav, Map<Version, List<StorageFileItem>>> groupArtifactToVersions,
                               final Map<Version, List<StorageFileItem>> versionsAndFiles,
                               final Gav gav)
    {
      //ga only coordinates
      Gav ga = new Gav(gav.getGroupId(), gav.getArtifactId(), "");
      if (!groupArtifactToVersions.containsKey(ga)) {
        groupArtifactToVersions.put(ga, Maps.newHashMap(versionsAndFiles));
      }
      groupArtifactToVersions.get(ga).putAll(versionsAndFiles);
    }
View Full Code Here


        if (repoId != null && itemPath != null) {
          try {
            final MavenRepository repository = repositoryRegistry
                .getRepositoryWithFacet(repoId, MavenRepository.class);
            if (repository != null) {
              final Gav gav = repository.getGavCalculator().pathToGav(itemPath);
              if (gav != null && !gav.isSignature() && !gav.isHash()) {
                // Hack: we mutate the entry, but putting in gav for reuse
                if (!Strings.isNullOrEmpty(gav.getClassifier())) {
                  input.getData().put("itemGav", String
                      .format("%s:%s:%s:%s:%s", gav.getGroupId(), gav.getArtifactId(), gav.getVersion(),
                          gav.getExtension(), gav.getClassifier()));
                }
                else {
                  input.getData().put("itemGav", String
                      .format("%s:%s:%s:%s", gav.getGroupId(), gav.getArtifactId(), gav.getVersion(),
                          gav.getExtension()));
                }
                return true;
              }
            }
          }
View Full Code Here

    /** force include */
    if (includePattern.matcher(path).matches()) {
      return false;
    }

    /** permit only valid artifact */
    final Gav gav = calculator.pathToGav(path);
    if (gav == null) {
      return true;
    } else {
      return false;
View Full Code Here

      if (excludePattern.matcher(path).matches()) {
        return true;
      }
    }

    /** GAV */

    final Gav gav = calculator.pathToGav(path);

    if (gav == null) {
      return true;
    }

    if (gav.isSnapshot()) {
      if (configBean.publishSnapshots()) {
        return false;
      }
    } else {
      if (configBean.publishReleases()) {
View Full Code Here

    if (excludePattern.matcher(path).matches()) {
      return true;
    }

    /** GAV */

    final Gav gav = calculator.pathToGav(path);

    if (gav == null) {
      return true;
    }

    if (gav.isSnapshot()) {
      if (configBean.publishSnapshots()) {
        return false;
      }
    } else {
      if (configBean.publishReleases()) {
View Full Code Here

TOP

Related Classes of org.sonatype.nexus.proxy.maven.gav.Gav

Copyright © 2018 www.massapicom. 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.