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 {
|
public class EarGoal extends AbstractDeploymentGoal {
|
||||||
|
|
||||||
private DeploymentXmlBuilder deploymentXmlBuilder;
|
private DeploymentXmlBuilder deploymentXmlBuilder;
|
||||||
private File libDirectory;
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void executePre() throws MojoExecutionException {
|
protected void executePre() throws MojoExecutionException {
|
||||||
@@ -53,8 +52,6 @@ public class EarGoal extends AbstractDeploymentGoal {
|
|||||||
} catch (ParserConfigurationException pce) {
|
} catch (ParserConfigurationException pce) {
|
||||||
throw new MojoExecutionException("This should never happen", pce);
|
throw new MojoExecutionException("This should never happen", pce);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.libDirectory = this.validateAndInitializeDirectory("lib");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -67,7 +64,7 @@ public class EarGoal extends AbstractDeploymentGoal {
|
|||||||
@Override
|
@Override
|
||||||
protected void handleDependency(Dependency dependency) throws MojoExecutionException {
|
protected void handleDependency(Dependency dependency) throws MojoExecutionException {
|
||||||
try {
|
try {
|
||||||
FileUtils.copyFileToDirectory(dependency.getArtifact().getFile(), this.libDirectory);
|
FileUtils.copyFileToDirectory(dependency.getArtifact().getFile(), this.outputDirectory);
|
||||||
} catch (IOException ie) {
|
} catch (IOException ie) {
|
||||||
throw new MojoExecutionException("An I/O related issue occurred", ie);
|
throw new MojoExecutionException("An I/O related issue occurred", ie);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user