org.codehaus.mojo.dependency

Class CopyDependenciesMojo

public class CopyDependenciesMojo extends AbstractFromDependenciesMojo

Goal that copies the project dependencies from the repository to a defined location.

Author: brianf

UNKNOWN: copy-dependencies compile process-sources

Method Summary
protected voidcopyArtifact(Artifact artifact, boolean removeVersion)
Copies the Artifact after building the destination file name if overridden.
voidexecute()
Main entry into mojo.

Method Detail

copyArtifact

protected void copyArtifact(Artifact artifact, boolean removeVersion)
Copies the Artifact after building the destination file name if overridden. This method also checks if the classifier is set and adds it to the destination file name if needed.

Parameters: artifact representing the object to be copied. removeVersion specifies if the version should be removed from the file name when copying.

Throws: MojoExecutionException with a message if an error occurs.

See Also: DependencyUtil DependencyUtil

execute

public void execute()
Main entry into mojo. Gets the list of dependencies and iterates through calling copyArtifact.

Throws: MojoExecutionException with a message if an error occurs.

See Also: CopyDependenciesMojo CopyDependenciesMojo

Copyright © {inceptionYear}-2007 null. All Rights Reserved.