EAR packaging in root; not lib

This commit is contained in:
2024-02-28 09:19:56 -05:00
parent 35a630c2d8
commit 119c5a54b5

View File

@@ -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);
} }