fixed support for EJB client libraries
This commit is contained in:
@@ -108,6 +108,7 @@ public class WildflyArtifactExtractor {
|
|||||||
if (this.getLog().isDebugEnabled())
|
if (this.getLog().isDebugEnabled())
|
||||||
this.getLog().debug("Formulated artifact effective POM [" + artifact + "]: " + model.getId());
|
this.getLog().debug("Formulated artifact effective POM [" + artifact + "]: " + model.getId());
|
||||||
|
|
||||||
|
if (!"client".equals(artifact.getClassifier())) {
|
||||||
switch (model.getPackaging().toLowerCase()) {
|
switch (model.getPackaging().toLowerCase()) {
|
||||||
case "ear":
|
case "ear":
|
||||||
case "war":
|
case "war":
|
||||||
@@ -128,6 +129,7 @@ public class WildflyArtifactExtractor {
|
|||||||
return deployable;
|
return deployable;
|
||||||
default:
|
default:
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Properties modelProps = model.getProperties();
|
Properties modelProps = model.getProperties();
|
||||||
String moduleId = modelProps.getProperty("wildfly.module.id");
|
String moduleId = modelProps.getProperty("wildfly.module.id");
|
||||||
|
@@ -18,6 +18,7 @@ import java.io.File;
|
|||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
|
||||||
import org.apache.maven.plugin.MojoExecutionException;
|
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.LifecyclePhase;
|
||||||
import org.apache.maven.plugins.annotations.Mojo;
|
import org.apache.maven.plugins.annotations.Mojo;
|
||||||
import org.apache.maven.plugins.annotations.Parameter;
|
import org.apache.maven.plugins.annotations.Parameter;
|
||||||
@@ -49,6 +50,23 @@ 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
|
@Override
|
||||||
protected void handleDependency(Dependency dependency) throws MojoExecutionException {
|
protected void handleDependency(Dependency dependency) throws MojoExecutionException {
|
||||||
try {
|
try {
|
||||||
|
Reference in New Issue
Block a user