Examples of MavenRepository


Examples of org.sonatype.nexus.proxy.maven.MavenRepository

      public boolean apply(final Entry input) {
        final String repoId = input.getData().get("repoId");
        final String itemPath = input.getData().get("itemPath");
        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(),
View Full Code Here

Examples of org.sonatype.nexus.proxy.maven.MavenRepository

      @Override
      public boolean apply(final Entry input) {
        final String repoId = input.getData().get("repoId");
        if (repoId != null) {
          try {
            final MavenRepository repository = repositoryRegistry
                .getRepositoryWithFacet(repoId, MavenRepository.class);
            if (repository != null) {
              return policy == RepositoryPolicy.MIXED || policy == repository.getRepositoryPolicy();
            }
            else {
              return false; // not even a maven repository
            }
          }
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.