Skip to content

Commit

Permalink
CopyDependenciesMojo
Browse files Browse the repository at this point in the history
  • Loading branch information
elharo committed Nov 19, 2024
1 parent 97bfb84 commit 8cfc02c
Showing 1 changed file with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
*/
package org.apache.maven.plugins.dependency.fromDependencies;

import javax.inject.Inject;

import java.io.File;
import java.io.IOException;
import java.util.Collections;
Expand All @@ -28,7 +30,6 @@
import org.apache.maven.artifact.Artifact;
import org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugins.annotations.Component;
import org.apache.maven.plugins.annotations.LifecyclePhase;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.Parameter;
Expand Down Expand Up @@ -66,21 +67,20 @@ public class CopyDependenciesMojo extends AbstractFromDependenciesMojo {
@Parameter(property = "mdep.copyPom", defaultValue = "false")
protected boolean copyPom;

@Component
private CopyUtil copyUtil;

/**
*
*/
@Component
private ArtifactInstaller installer;

/**
*
*/
@Component(role = ArtifactRepositoryLayout.class)
private Map<String, ArtifactRepositoryLayout> repositoryLayouts;

@Inject
public CopyDependenciesMojo(
CopyUtil copyUtil, ArtifactInstaller installer, Map<String, ArtifactRepositoryLayout> repositoryLayouts) {
this.copyUtil = copyUtil;
this.installer = installer;
this.repositoryLayouts = repositoryLayouts;
}

/**
* Either append the artifact's baseVersion or uniqueVersion to the filename. Will only be used if
* {@link #isStripVersion()} is {@code false}.
Expand Down

0 comments on commit 8cfc02c

Please sign in to comment.