EAR packaging in root; not lib
This commit is contained in:
@@ -44,7 +44,6 @@ import com.inteligr8.wildfly.maven.xml.DeploymentXmlBuilder;
|
||||
public class EarGoal extends AbstractDeploymentGoal {
|
||||
|
||||
private DeploymentXmlBuilder deploymentXmlBuilder;
|
||||
private File libDirectory;
|
||||
|
||||
@Override
|
||||
protected void executePre() throws MojoExecutionException {
|
||||
@@ -53,8 +52,6 @@ public class EarGoal extends AbstractDeploymentGoal {
|
||||
} catch (ParserConfigurationException pce) {
|
||||
throw new MojoExecutionException("This should never happen", pce);
|
||||
}
|
||||
|
||||
this.libDirectory = this.validateAndInitializeDirectory("lib");
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -67,7 +64,7 @@ public class EarGoal extends AbstractDeploymentGoal {
|
||||
@Override
|
||||
protected void handleDependency(Dependency dependency) throws MojoExecutionException {
|
||||
try {
|
||||
FileUtils.copyFileToDirectory(dependency.getArtifact().getFile(), this.libDirectory);
|
||||
FileUtils.copyFileToDirectory(dependency.getArtifact().getFile(), this.outputDirectory);
|
||||
} catch (IOException ie) {
|
||||
throw new MojoExecutionException("An I/O related issue occurred", ie);
|
||||
}
|
||||
|
Reference in New Issue
Block a user