Package org.codehaus.cargo.maven3.util
Class EmbeddedContainerArtifactResolver
- java.lang.Object
-
- org.codehaus.cargo.maven3.util.EmbeddedContainerArtifactResolver
-
public class EmbeddedContainerArtifactResolver extends Object
Dynamically load embedded container dependencies.
-
-
Constructor Summary
Constructors Constructor Description EmbeddedContainerArtifactResolver(org.apache.maven.shared.transfer.artifact.resolve.ArtifactResolver artifactResolver, org.apache.maven.project.ProjectBuildingRequest projectBuildingRequest)
Save all attributes.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClassLoader
resolveDependencies(String containerId, ClassLoader parent)
Resolve dependencies.
-
-
-
Constructor Detail
-
EmbeddedContainerArtifactResolver
public EmbeddedContainerArtifactResolver(org.apache.maven.shared.transfer.artifact.resolve.ArtifactResolver artifactResolver, org.apache.maven.project.ProjectBuildingRequest projectBuildingRequest)
Save all attributes.- Parameters:
artifactResolver
- Artifact resolver.projectBuildingRequest
- Maven project building request.
-
-
Method Detail
-
resolveDependencies
public ClassLoader resolveDependencies(String containerId, ClassLoader parent) throws org.apache.maven.plugin.MojoExecutionException
Resolve dependencies.- Parameters:
containerId
- Container id.parent
- ParentClassLoader
.- Returns:
ClassLoader
with the resolved dependencies and givenparent
.- Throws:
org.apache.maven.plugin.MojoExecutionException
- If dependencies cannot be resolved.
-
-