Examples of GavCalculator


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

  public String retrievePackagingFromPom(ArtifactStoreRequest request)
      throws IOException
  {
    String packaging;

    GavCalculator gavCalculator = request.getMavenRepository().getGavCalculator();

    try {
      Gav pomGav = getPomGav(request);

      if (pomGav == null) {
        return null;
      }

      String pomPath = gavCalculator.gavToPath(pomGav);

      request.setRequestPath(pomPath);

      StorageFileItem pomFile = (StorageFileItem) request.getMavenRepository().retrieveItem(false, request);
View Full Code Here

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

  public void setup() {
    this.locator = mock(MetadataLocator.class);
    this.updater = new DefaultMetadataUpdater(locator);

    this.repo = mock(MavenRepository.class);
    GavCalculator calculator = new M2GavCalculator();
    when(repo.getGavCalculator()).thenReturn(calculator);
  }
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.