@Override protected String getVersion() { return Version.readVersion("org.lilyproject", "lily-repository-admin-cli"); }
@Override protected String getVersion() { return Version.readVersion("org.lilyproject", "lily-clientmetrics"); }
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"); }
@Override protected String getVersion() { return Version.readVersion("org.lilyproject", "lily-hadoop-test-fw"); }
@Override protected String getVersion() { return Version.readVersion("org.lilyproject", "lily-repository-admin-cli"); }
@Override protected String getVersion() { return org.lilyproject.util.Version.readVersion("org.lilyproject", "lily-doc-tools"); }
@Override protected String getVersion() { return Version.readVersion("org.lilyproject", "lily-import"); }
@Override protected String getVersion() { return Version.readVersion("org.lilyproject", "lily-print-host"); }
@Override protected String getVersion() { return Version.readVersion("org.lilyproject", "lily-generate-split-keys"); }
@Override protected String getVersion() { return Version.readVersion("org.lilyproject", "lily-record-row-visualizer"); }
public static String getVersion() { return Version.readVersion("org.lilyproject", "lily-runtime"); }
@Override protected String getVersion() { return Version.readVersion("org.lilyproject", getCmdName()); }
@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); } }
@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); } }