Package org.sonatype.nexus.proxy.maven

Examples of org.sonatype.nexus.proxy.maven.MavenRepository.list()


    private long getLastRequested(final StorageCollectionItem coll, final StorageItem item, final Gav gav)
        throws Exception
    {
      long lastRequested = item.getLastRequested();
      final MavenRepository repository = (MavenRepository) coll.getRepositoryItemUid().getRepository();
      final Collection<StorageItem> items = repository.list(false, coll);
      for (final StorageItem listedItem : items) {
        final Gav listedItemGav = repository.getGavCalculator().pathToGav(listedItem.getPath());
        // NEXUS-6230: returned GAV might be null, if file does not obey layout or is metadata
        if (listedItemGav != null && gav.getSnapshotBuildNumber().equals(listedItemGav.getSnapshotBuildNumber())
            && gav.getSnapshotTimeStamp().equals(listedItemGav.getSnapshotTimeStamp())) {
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.