Class Dependency


  • public class Dependency
    extends AbstractDependency
    Allow users to add classpath entries to the classpath used to start the container. This is the configuration class for passing LocalContainer.addExtraClasspath() information.
    • Constructor Detail

      • Dependency

        public Dependency()
    • Method Detail

      • getClasspath

        public String getClasspath()
        Returns:
        The Dependency target classpath.
      • setClasspath

        public void setClasspath​(String classpath)
        Parameters:
        classpath - the Dependency target classpath.
      • isOnClasspath

        public boolean isOnClasspath​(String classpath)
        Evaluates if the Dependency is targeted for a classpath type.
        Parameters:
        classpath - a classpath type to compare with
        Returns:
        true if this Dependency is targeted for the classpath type.
      • getDependencyPath

        public String getDependencyPath​(CargoProject project)
                                 throws org.apache.maven.plugin.MojoExecutionException
        Get the path of this dependency.
        Parameters:
        project - Cargo project.
        Returns:
        Path of this dependency.
        Throws:
        org.apache.maven.plugin.MojoExecutionException - If the artifact is incorrect.