CPD Results
The following document contains the results of PMD's CPD 6.49.0.
Duplications
File |
Line |
org\apache\maven\plugins\dependency\GetMojo.java |
58 |
org\apache\maven\plugins\dependency\ListClassesMojo.java |
61 |
public class GetMojo extends AbstractMojo {
private static final Pattern ALT_REPO_SYNTAX_PATTERN = Pattern.compile("(.+)::(.*)::(.+)");
@Parameter(defaultValue = "${session}", required = true, readonly = true)
private MavenSession session;
@Component
private ArtifactResolver artifactResolver;
@Component
private DependencyResolver dependencyResolver;
@Component
private ArtifactHandlerManager artifactHandlerManager;
/**
* Map that contains the layouts.
*/
@Component(role = ArtifactRepositoryLayout.class)
private Map<String, ArtifactRepositoryLayout> repositoryLayouts;
/**
* The repository system.
*/
@Component
private RepositorySystem repositorySystem;
private DefaultDependableCoordinate coordinate = new DefaultDependableCoordinate();
/**
* The groupId of the artifact to download. Ignored if {@link #artifact} is used.
*/
@Parameter(property = "groupId")
private String groupId;
/**
* The artifactId of the artifact to download. Ignored if {@link #artifact} is used.
*/
@Parameter(property = "artifactId")
private String artifactId;
/**
* The version of the artifact to download. Ignored if {@link #artifact} is used.
*/
@Parameter(property = "version")
private String version;
/**
* The classifier of the artifact to download. Ignored if {@link #artifact} is used.
*
* @since 2.3
*/
@Parameter(property = "classifier")
private String classifier;
/**
* The packaging of the artifact to download. Ignored if {@link #artifact} is used.
*/
@Parameter(property = "packaging", defaultValue = "jar")
private String packaging = "jar";
/**
* Repositories in the format id::[layout]::url or just url, separated by comma. ie.
* central::default::https://repo.maven.apache.org/maven2,myrepo::::https://repo.acme.com,https://repo.acme2.com
*/
@Parameter(property = "remoteRepositories")
private String remoteRepositories;
/**
* A string of the form groupId:artifactId:version[:packaging[:classifier]].
*/
@Parameter(property = "artifact")
private String artifact;
/**
*
*/
@Parameter(defaultValue = "${project.remoteArtifactRepositories}", readonly = true, required = true)
private List<ArtifactRepository> pomRemoteRepositories;
/**
* Download transitively, retrieving the specified artifact and all of its dependencies.
*/
@Parameter(property = "transitive", defaultValue = "true") |
File |
Line |
org\apache\maven\plugins\dependency\fromDependencies\AbstractDependencyFilterMojo.java |
295 |
org\apache\maven\plugins\dependency\resolvers\AbstractResolveMojo.java |
88 |
+ "read parameters documentation for detailed explanations");
}
filter.addFilter(new ScopeFilter(
DependencyUtil.cleanToBeTokenizedString(this.includeScope),
DependencyUtil.cleanToBeTokenizedString(this.excludeScope)));
filter.addFilter(new TypeFilter(
DependencyUtil.cleanToBeTokenizedString(this.includeTypes),
DependencyUtil.cleanToBeTokenizedString(this.excludeTypes)));
filter.addFilter(new ClassifierFilter(
DependencyUtil.cleanToBeTokenizedString(this.includeClassifiers),
DependencyUtil.cleanToBeTokenizedString(this.excludeClassifiers)));
filter.addFilter(new GroupIdFilter(
DependencyUtil.cleanToBeTokenizedString(this.includeGroupIds),
DependencyUtil.cleanToBeTokenizedString(this.excludeGroupIds)));
filter.addFilter(new ArtifactIdFilter(
DependencyUtil.cleanToBeTokenizedString(this.includeArtifactIds),
DependencyUtil.cleanToBeTokenizedString(this.excludeArtifactIds))); |