Package com.caucho.loader.module

Examples of com.caucho.loader.module.ArtifactDependency


  /**
   * Returns the Artifact corresponding to the project.
   */
  public Artifact toArtifact(Path path)
  {
    ArtifactDependency parent = null;

    if (_parent != null) {
      ArtifactVersion parentVersion = _parent.getVersion();
     
      ArtifactVersionRange parentRange
  = new ArtifactVersionRange(parentVersion, true,
           parentVersion, true);

      parent = new ArtifactDependency(_parent.getGroupId(),
              null,
              _parent.getArtifactId(),
              parentRange);
    }
   
View Full Code Here


  throw new ConfigException(L.l("<groupId> is required in a <dependency> in a Maven pom.xml file"));
     
      if (_artifactId == null)
  throw new ConfigException(L.l("<artifactId> is required in a <dependency> in a Maven pom.xml file"));

      ArtifactDependency dependency
  = new ArtifactDependency(_groupId, null, _artifactId, _version);

      addArtifactDependency(dependency);
    }
View Full Code Here

      ArtifactRepository repository = ArtifactRepository.getCurrent();

      if (repository == null)
  throw new IllegalStateException(L.l("Cannot find dependency because no repositories are configured."));

      ArtifactDependency dependency
  = new ArtifactDependency(_org, null, _name, _version);

      EnvironmentClassLoader loader = Environment.getEnvironmentClassLoader();

      loader.createArtifactManager().addDependency(dependency);
View Full Code Here

  /**
   * Returns the Artifact corresponding to the project.
   */
  public Artifact toArtifact(Path path)
  {
    ArtifactDependency parent = null;

    if (_parent != null) {
      ArtifactVersion parentVersion = _parent.getVersion();
     
      ArtifactVersionRange parentRange
        = new ArtifactVersionRange(parentVersion, true,
                                   parentVersion, true);

      parent = new ArtifactDependency(_parent.getGroupId(),
                                      null,
                                      _parent.getArtifactId(),
                                      parentRange);
    }
   
View Full Code Here

        throw new ConfigException(L.l("<groupId> is required in a <dependency> in a Maven pom.xml file"));
     
      if (_artifactId == null)
        throw new ConfigException(L.l("<artifactId> is required in a <dependency> in a Maven pom.xml file"));

      ArtifactDependency dependency
        = new ArtifactDependency(_groupId, null, _artifactId, _version);

      addArtifactDependency(dependency);
    }
View Full Code Here

      ArtifactRepository repository = ArtifactRepository.getCurrent();

      if (repository == null)
        throw new IllegalStateException(L.l("Cannot find dependency because no repositories are configured."));

      ArtifactDependency dependency
        = new ArtifactDependency(_org, null, _name, _version);

      EnvironmentClassLoader loader = Environment.getEnvironmentClassLoader();

      loader.createArtifactManager().addDependency(dependency);
View Full Code Here

TOP

Related Classes of com.caucho.loader.module.ArtifactDependency

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.