Examples of Aether


Examples of com.chaschev.install.jcabi.Aether

        System.out.println( "------------------------------------------------------------" );
        System.out.println( FindAvailableVersions.class.getSimpleName() );

        Artifact artifact = new DefaultArtifact( "com.chaschev:chutils:[0,)" );

        VersionRangeResult rangeResult = new Aether(Lists.newArrayList(
            Booter.newCentralRepository(), Booter.newSonatypeRepository()
        ), repositoryFile).getVersions(artifact);

        List<Version> versions = rangeResult.getVersions();
View Full Code Here

Examples of com.chaschev.install.jcabi.Aether

        Preconditions.checkArgument(repositoryFile.exists(), "could not find local repo at: %s", repositoryFile.getAbsolutePath());

        repositories = new RepositoryParser().parse(remoteRepositories);

        aether = new Aether(Lists.newArrayList(
            repositories
        ), repositoryFile);

        if ("LATEST".equals(artifactVersion)) {
            Artifact artifact = new DefaultArtifact(artifactName + ":[0,)");
View Full Code Here

Examples of com.jcabi.aether.Aether

            final MavenProject project = (MavenProject) expressionEvaluator.evaluate("${project}");
            final RepositorySystemSession session = (RepositorySystemSession) expressionEvaluator.evaluate("${repositorySystemSession}");
            if (session != null) {
                try {
                    final File repo = session.getLocalRepository().getBasedir();
                    return new Aether(project, repo).resolve(
                            getServerArtifact(serverType),
                            JavaScopes.RUNTIME);
                } catch (final DependencyResolutionException e) {
                    final String message = new StringBuilder("Could not resolve dependencies for server type: ")
                            .append(serverType)
View Full Code Here

Examples of io.fabric8.insight.maven.aether.Aether

        indexer.setCacheDirectory(new File(targetDir(), "mavenIndexer"));
        indexer.start();

        List<Repository> repos = Aether.defaultRepositories();
        repos.add(new Repository("ea.repository.jboss.org", "http://repository.jboss.org/nexus/content/groups/ea"));
        aether = new Aether(Aether.USER_REPOSITORY, repos);
    }
View Full Code Here

Examples of io.fabric8.insight.maven.aether.Aether

    public LocalBuildTestSupport() {
        List<Repository> repositories = new LinkedList<Repository>();
        repositories.add(new Repository("local-repo", Aether.USER_REPOSITORY));
        repositories.addAll(Aether.defaultRepositories());

        aether = new Aether(Aether.USER_REPOSITORY, repositories);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.