mirror of https://github.com/apache/maven.git
Removed catch of IOException - not thrown anymode by UnArchiver
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@463285 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
7d41a258a2
commit
a315b8e83e
|
@ -1,31 +1,30 @@
|
|||
package org.apache.maven.script.ant;
|
||||
|
||||
import org.apache.maven.artifact.Artifact;
|
||||
import org.apache.maven.artifact.DependencyResolutionRequiredException;
|
||||
import org.apache.maven.plugin.AbstractMojo;
|
||||
import org.apache.maven.plugin.ContextEnabled;
|
||||
import org.apache.maven.plugin.MojoExecutionException;
|
||||
import org.apache.maven.plugin.descriptor.PluginDescriptor;
|
||||
import org.apache.maven.project.MavenProject;
|
||||
import org.apache.maven.artifact.Artifact;
|
||||
import org.apache.maven.artifact.DependencyResolutionRequiredException;
|
||||
import org.apache.tools.ant.types.Path;
|
||||
import org.apache.tools.ant.Project;
|
||||
import org.apache.tools.ant.types.Path;
|
||||
import org.codehaus.plexus.archiver.ArchiverException;
|
||||
import org.codehaus.plexus.archiver.UnArchiver;
|
||||
import org.codehaus.plexus.archiver.zip.ZipUnArchiver;
|
||||
import org.codehaus.plexus.component.MapOrientedComponent;
|
||||
import org.codehaus.plexus.component.configurator.ComponentConfigurationException;
|
||||
import org.codehaus.plexus.component.factory.ant.AntComponentExecutionException;
|
||||
import org.codehaus.plexus.component.factory.ant.AntScriptInvoker;
|
||||
import org.codehaus.plexus.component.repository.ComponentRequirement;
|
||||
import org.codehaus.plexus.archiver.UnArchiver;
|
||||
import org.codehaus.plexus.archiver.ArchiverException;
|
||||
import org.codehaus.plexus.archiver.zip.ZipUnArchiver;
|
||||
import org.codehaus.plexus.util.StringUtils;
|
||||
|
||||
import java.util.Map;
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Iterator;
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
|
||||
/**
|
||||
|
@ -102,7 +101,7 @@ public class AntMojoWrapper
|
|||
private void unpackFileBasedResources()
|
||||
throws MojoExecutionException
|
||||
{
|
||||
// What we need to write out any resources in the plugin to the target directory of the
|
||||
// What we need to write out any resources in the plugin to the target directory of the
|
||||
// mavenProject using the Ant-based plugin:
|
||||
//
|
||||
// 1. Need a reference to the plugin JAR itself
|
||||
|
@ -124,10 +123,6 @@ public class AntMojoWrapper
|
|||
{
|
||||
throw new MojoExecutionException( "Error extracting resources from your Ant-based plugin.", e );
|
||||
}
|
||||
catch( IOException e )
|
||||
{
|
||||
throw new MojoExecutionException( "Error extracting resources from your Ant-based plugin.", e );
|
||||
}
|
||||
}
|
||||
|
||||
private void addClasspathReferences()
|
||||
|
|
Loading…
Reference in New Issue