org.lilyproject.util.Version类的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(4.2k)|赞(0)|评价(0)|浏览(95)

本文整理了Java中org.lilyproject.util.Version类的一些代码示例,展示了Version类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Version类的具体详情如下:
包路径:org.lilyproject.util.Version
类名称:Version

Version介绍

暂无

代码示例

代码示例来源:origin: NGDATA/lilyproject

@Override
protected String getVersion() {
  return Version.readVersion("org.lilyproject", "lily-repository-admin-cli");
}

代码示例来源:origin: NGDATA/lilyproject

@Override
protected String getVersion() {
  return Version.readVersion("org.lilyproject", "lily-clientmetrics");
}

代码示例来源:origin: NGDATA/lilyproject

public LilyRuntimeProjectClasspath(Log log, ArtifactFilter filter, ArtifactFactory artifactFactory,
                  ArtifactResolver resolver, ArtifactRepository localRepository) {
  this.filter = filter;
  this.artifactFactory = artifactFactory;
  this.resolver = resolver;
  this.localRepository = localRepository;
  this.log = log;
  this.lilyVersion = Version.readVersion("org.lilyproject", "lily-runtime-plugin");
}

代码示例来源:origin: NGDATA/lilyproject

@Override
protected String getVersion() {
  return Version.readVersion("org.lilyproject", "lily-hadoop-test-fw");
}

代码示例来源:origin: NGDATA/lilyproject

@Override
protected String getVersion() {
  return Version.readVersion("org.lilyproject", "lily-repository-admin-cli");
}

代码示例来源:origin: NGDATA/lilyproject

@Override
protected String getVersion() {
  return org.lilyproject.util.Version.readVersion("org.lilyproject", "lily-doc-tools");
}

代码示例来源:origin: NGDATA/lilyproject

@Override
protected String getVersion() {
  return Version.readVersion("org.lilyproject", "lily-import");
}

代码示例来源:origin: NGDATA/lilyproject

@Override
protected String getVersion() {
  return Version.readVersion("org.lilyproject", "lily-print-host");
}

代码示例来源:origin: NGDATA/lilyproject

@Override
protected String getVersion() {
  return Version.readVersion("org.lilyproject", "lily-generate-split-keys");
}

代码示例来源:origin: NGDATA/lilyproject

@Override
protected String getVersion() {
  return Version.readVersion("org.lilyproject", "lily-record-row-visualizer");
}

代码示例来源:origin: NGDATA/lilyproject

public static String getVersion() {
  return Version.readVersion("org.lilyproject", "lily-runtime");
}

代码示例来源:origin: NGDATA/lilyproject

@Override
protected String getVersion() {
  return Version.readVersion("org.lilyproject", getCmdName());
}

代码示例来源:origin: NGDATA/lilyproject

@Override
  public void execute() throws MojoExecutionException, MojoFailureException {
    LilyRuntimeProjectClasspath cp = new LilyRuntimeProjectClasspath(getLog(), null,
        artifactFactory, resolver, localRepository);

    String lilyVersion = Version.readVersion("org.lilyproject", "lily-runtime-plugin");

    Artifact runtimeLauncherArtifact = artifactFactory.createArtifact("org.lilyproject", "lily-runtime-launcher",
        lilyVersion, "runtime", "jar");

    try {
      resolver.resolve(runtimeLauncherArtifact, remoteRepositories, localRepository);
    } catch (Exception e) {
      throw new MojoExecutionException("Error resolving artifact: " + runtimeLauncherArtifact, e);
    }

    Set<Artifact> artifacts = cp.getClassPathArtifacts(runtimeLauncherArtifact,
        "org/lilyproject/runtime/launcher/classloader.xml", remoteRepositories);

    artifacts.add(runtimeLauncherArtifact);
  }
}

代码示例来源:origin: NGDATA/lilyproject

@Override
  public void execute() throws MojoExecutionException, MojoFailureException {
    LilyRuntimeProjectClasspath cp = new LilyRuntimeProjectClasspath(getLog(), null,
        artifactFactory, resolver, localRepository);

    String lilyVersion = Version.readVersion("org.lilyproject", "lily-runtime-plugin");

    Artifact runtimeLauncherArtifact = artifactFactory.createArtifact("org.lilyproject", "lily-runtime-launcher",
        lilyVersion, "runtime", "jar");

    try {
      resolver.resolve(runtimeLauncherArtifact, remoteRepositories, localRepository);
    } catch (Exception e) {
      throw new MojoExecutionException("Error resolving artifact: " + runtimeLauncherArtifact, e);
    }

    Set<Artifact> artifacts = cp.getClassPathArtifacts(runtimeLauncherArtifact,
        "org/lilyproject/runtime/launcher/classloader.xml", remoteRepositories);
    artifacts.add(runtimeLauncherArtifact);

    RepositoryWriter.write(artifacts, targetDirectory);
  }
}

相关文章