Class EmbeddedContainerArtifactResolver


  • public class EmbeddedContainerArtifactResolver
    extends Object
    Dynamically load embedded container 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 - Parent ClassLoader.
        Returns:
        ClassLoader with the resolved dependencies and given parent.
        Throws:
        org.apache.maven.plugin.MojoExecutionException - If dependencies cannot be resolved.