From d6c69768de5099e73100a7b980cb00403418266a Mon Sep 17 00:00:00 2001 From: "Brian M. Long" Date: Mon, 11 Mar 2024 22:46:14 -0400 Subject: [PATCH] removed deployable copy --- .../goal/CopyDeploymentResourcesGoal.java | 24 +++++-------------- 1 file changed, 6 insertions(+), 18 deletions(-) diff --git a/src/main/java/com/inteligr8/wildfly/maven/goal/CopyDeploymentResourcesGoal.java b/src/main/java/com/inteligr8/wildfly/maven/goal/CopyDeploymentResourcesGoal.java index 2fb3c01..3e65f31 100644 --- a/src/main/java/com/inteligr8/wildfly/maven/goal/CopyDeploymentResourcesGoal.java +++ b/src/main/java/com/inteligr8/wildfly/maven/goal/CopyDeploymentResourcesGoal.java @@ -16,9 +16,10 @@ package com.inteligr8.wildfly.maven.goal; import java.io.File; import java.io.IOException; +import java.util.LinkedList; +import java.util.List; import org.apache.maven.plugin.MojoExecutionException; -import org.apache.maven.plugin.MojoFailureException; import org.apache.maven.plugins.annotations.LifecyclePhase; import org.apache.maven.plugins.annotations.Mojo; import org.apache.maven.plugins.annotations.Parameter; @@ -40,6 +41,8 @@ public class CopyDeploymentResourcesGoal extends AbstractDeploymentGoal { private File libDirectory; + private List manifestClassPath = new LinkedList<>(); + @Override protected void executePre() throws MojoExecutionException { if (this.isWebApp()) { @@ -50,27 +53,11 @@ public class CopyDeploymentResourcesGoal extends AbstractDeploymentGoal { } } - @Override - protected void handleDeployableDependency(Dependency dependency) throws MojoExecutionException, MojoFailureException { - String type = dependency.getArtifact().getProperties().get("type"); - if ("ejb".equals(type)) { - - } - - try { - FileUtils.copyFileToDirectory(dependency.getArtifact().getFile(), this.libDirectory); - } catch (IOException ie) { - throw new MojoExecutionException("An I/O related issue occurred", ie); - } - - if (this.getLog().isInfoEnabled()) - this.getLog().info("Copied resource artifact: " + dependency.getArtifact()); - } - @Override protected void handleDependency(Dependency dependency) throws MojoExecutionException { try { FileUtils.copyFileToDirectory(dependency.getArtifact().getFile(), this.libDirectory); + this.manifestClassPath.add(this.libPath + "/" + dependency.getArtifact().getFile().getName()); } catch (IOException ie) { throw new MojoExecutionException("An I/O related issue occurred", ie); } @@ -85,6 +72,7 @@ public class CopyDeploymentResourcesGoal extends AbstractDeploymentGoal { @Override public void executePost() throws MojoExecutionException { + } }