Package com.caucho.loader.maven

Examples of com.caucho.loader.maven.MavenProject


  private Artifact readPom(Path jarPath, String key)
  {
    JarPath jar = JarPath.create(jarPath);

    try {
      MavenProject project = new MavenProject();

      new Config().configure(project, jar.lookup(key));

      Artifact artifact = project.toArtifact(jarPath);

      return artifact;
    } catch (IOException e) {
      log.log(Level.WARNING, e.toString(), e);
View Full Code Here


  private Artifact readPom(Path jarPath, String key)
  {
    JarPath jar = JarPath.create(jarPath);

    try {
      MavenProject project = new MavenProject();

      new Config().configure(project, jar.lookup(key));

      Artifact artifact = project.toArtifact(jarPath);

      return artifact;
    } catch (IOException e) {
      log.log(Level.WARNING, e.toString(), e);
View Full Code Here

    loader.addDependency(new Depend(_path));

    if (_path.canRead()) {
      try {
  MavenProject project = new MavenProject();

  new Config().configure(project, _path);

  Artifact artifact = project.toArtifact(_path);

  for (ArtifactDependency dependency : artifact.getDependencies())  {
    loader.createArtifactManager().addDependency(dependency);
  }
      } catch (Exception e) {
View Full Code Here

TOP

Related Classes of com.caucho.loader.maven.MavenProject

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.