this.factory.createArtifact( artifact.getGroupId(), artifact.getArtifactId(), artifact.getBaseVersion(),
artifact.getScope(), artifact.getType() );
installer.install( artifact.getFile(), baseArtifact, targetRepository );
}
}
<BUG>protected void copyArtifact( Artifact artifact, boolean removeVersion, boolean prependGroupId )

throws MojoExecutionException
{
String destFileName = DependencyUtil.getFormattedFileName( artifact, removeVersion, prependGroupId );

File destDir;</BUG>
destDir = DependencyUtil.getFormattedOutputDirectory( useSubDirectoryPerScope, useSubDirectoryPerType,

this.factory.createArtifact( artifact.getGroupId(), artifact.getArtifactId(), artifact.getBaseVersion(),
artifact.getScope(), artifact.getType() );
installer.install( artifact.getFile(), baseArtifact, targetRepository );
}
}
protected void copyArtifact( Artifact artifact, boolean removeVersion, boolean prependGroupId,
boolean useBaseVersion ) throws MojoExecutionException
{
String destFileName = DependencyUtil.getFormattedFileName( artifact, removeVersion, prependGroupId,
useBaseVersion );
File destDir;
destDir = DependencyUtil.getFormattedOutputDirectory( useSubDirectoryPerScope, useSubDirectoryPerType,
