mirror of https://github.com/apache/maven.git
no need for the manager - it is stored in the artifact
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@225315 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2d666f57a7
commit
3c68ec366c
|
@ -112,14 +112,6 @@ public class AssemblyMojo
|
|||
*/
|
||||
private File workDirectory;
|
||||
|
||||
/**
|
||||
* Handler to get the file extension matching a given artifactType
|
||||
*
|
||||
* @parameter expression="${component.org.apache.maven.artifact.handler.manager.ArtifactHandlerManager}"
|
||||
* @required
|
||||
*/
|
||||
private ArtifactHandlerManager artifactHandlerManager;
|
||||
|
||||
public void execute()
|
||||
throws MojoExecutionException
|
||||
{
|
||||
|
@ -275,7 +267,7 @@ public class AssemblyMojo
|
|||
// probe for magic word
|
||||
if ( mat.group( 2 ).trim().equals( "extension" ) )
|
||||
{
|
||||
ArtifactHandler artifactHandler = artifactHandlerManager.getArtifactHandler( artifact.getType() );
|
||||
ArtifactHandler artifactHandler = artifact.getArtifactHandler();
|
||||
middle = artifactHandler.getExtension();
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue