public MavenResolver( String name, URI rootUri, RepositoryTransport transport, LocallyAvailableResourceFinder<ArtifactRevisionId> locallyAvailableResourceFinder, MetaDataParser metaDataParser, ModuleMetadataProcessor metadataProcessor) { super( name, transport.getRepository(), new ChainedVersionLister( new MavenVersionLister(transport.getRepository()), new ResourceVersionLister(transport.getRepository())), locallyAvailableResourceFinder, metaDataParser, metadataProcessor); transport.configureCacheManager(this); this.mavenMetaDataLoader = new MavenMetadataLoader(transport.getRepository()); this.transport = transport; this.root = transport.convertToPath(rootUri); super.setM2compatible(true); // SNAPSHOT revisions are changing revisions setChangingMatcher(PatternMatcher.REGEXP); setChangingPattern(".*-SNAPSHOT"); updatePatterns(); }
public void addArtifactLocation(URI baseUri, String pattern) { if (pattern != null && pattern.length() > 0) { throw new IllegalArgumentException( "Maven Resolver only supports a single pattern. It cannot be provided on a per-location basis."); } artifactRoots.add(transport.convertToPath(baseUri)); updatePatterns(); }
public void addDescriptorLocation(URI baseUri, String pattern) { String descriptorPattern = transport.convertToPath(baseUri) + pattern; addIvyPattern(descriptorPattern); }
public void addArtifactLocation(URI baseUri, String pattern) { String artifactPattern = transport.convertToPath(baseUri) + pattern; addArtifactPattern(artifactPattern); }