org.apache.maven.model.resolution.ModelResolver Java Examples
The following examples show how to use
org.apache.maven.model.resolution.ModelResolver.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: VersionSubstitutingModelResolverTest.java From cloud-opensource-java with Apache License 2.0 | 6 votes |
@Test public void testNewCopy() throws UnresolvableModelException { ImmutableMap<String, String> substitution = ImmutableMap.of("com.google.guava:guava", "25.1-jre"); VersionSubstitutingModelResolver resolver = new VersionSubstitutingModelResolver( session, null, repositorySystem, remoteRepositoryManager, ImmutableList.of(CENTRAL), // Needed when parent pom is not locally available substitution); ModelResolver copiedResolver = resolver.newCopy(); Truth.assertThat(copiedResolver).isInstanceOf(VersionSubstitutingModelResolver.class); // request for guava:20.0 is replaced with 25.1-jre Truth.assertThat(copiedResolver.resolveModel( "com.google.guava", "guava", "20.0").getLocation()).contains("guava-25.1-jre.pom"); }
Example #2
Source File: VersionSubstitutingModelResolver.java From cloud-opensource-java with Apache License 2.0 | 4 votes |
@Override public ModelResolver newCopy() { return new VersionSubstitutingModelResolver( session, trace, resolver, remoteRepositoryManager, repositories, versionSubstitution); }
Example #3
Source File: DefaultModelResolver.java From migration-tooling with Apache License 2.0 | 4 votes |
@Override public ModelResolver newCopy() { return new DefaultModelResolver(aether, repositories, ruleNameToModelSource, modelBuilder); }
Example #4
Source File: NBRepositoryModelResolver.java From netbeans with Apache License 2.0 | 4 votes |
@Override public ModelResolver newCopy() { return new NBRepositoryModelResolver(this); }
Example #5
Source File: SimpleModelResolver.java From gate-core with GNU Lesser General Public License v3.0 | 4 votes |
@Override public ModelResolver newCopy() { return new SimpleModelResolver(this); }
Example #6
Source File: POMParser.java From meghanada-server with GNU General Public License v3.0 | 4 votes |
@Override public ModelResolver newCopy() { return this; }
Example #7
Source File: RepositoryModelResolver.java From repairnator with MIT License | 4 votes |
@Override public ModelResolver newCopy() { return new RepositoryModelResolver(this.localRepository.getAbsolutePath()); }
Example #8
Source File: FlattenModelResolver.java From flatten-maven-plugin with Apache License 2.0 | 4 votes |
/** * {@inheritDoc} */ public ModelResolver newCopy() { return new FlattenModelResolver( this ); }
Example #9
Source File: RepositoryModelResolver.java From archiva with Apache License 2.0 | 4 votes |
@Override public ModelResolver newCopy() { return new RepositoryModelResolver( managedRepository, pathTranslator, wagonFactory, remoteRepositories, networkProxyMap, targetRepository, mavenSystemManager, metadataReader); }
Example #10
Source File: MavenModelResolver.java From furnace with Eclipse Public License 1.0 | 4 votes |
@Override public ModelResolver newCopy() { return new MavenModelResolver(this); }