Class EmbeddedContainerArtifactResolver


  • public class EmbeddedContainerArtifactResolver
    extends Object
    Dynamically load embedded container dependencies.
    • Constructor Detail

      • EmbeddedContainerArtifactResolver

        public EmbeddedContainerArtifactResolver​(org.apache.maven.artifact.resolver.ArtifactResolver artifactResolver,
                                                 org.apache.maven.artifact.repository.ArtifactRepository localRepository,
                                                 List<org.apache.maven.artifact.repository.ArtifactRepository> repositories,
                                                 org.apache.maven.artifact.factory.ArtifactFactory artifactFactory)
        Save all attributes.
        Parameters:
        artifactResolver - Artifact resolver.
        localRepository - Local repository.
        repositories - List of repositories to look in.
        artifactFactory - Artifact factory.
    • 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.