Package org.eclipse.aether

Examples of org.eclipse.aether.RepositorySystemSession


        try
        {
            ProjectBuildingRequest projectBuildingRequest =
                (ProjectBuildingRequest) invoke( project.getClass(), project, "getProjectBuildingRequest" );

            RepositorySystemSession session =
                (RepositorySystemSession) invoke( ProjectBuildingRequest.class, projectBuildingRequest,
                                                  "getRepositorySession" );

            /*if ( Boolean.TRUE != ( (Boolean) session.getConfigProperties().get( DependencyManagerUtils.NODE_DATA_PREMANAGED_VERSION ) ) )
            {
View Full Code Here


    @Requirement
    private LegacySupport legacySupport;

    private void injectSession( MetadataResolutionRequest request )
    {
        RepositorySystemSession session = legacySupport.getRepositorySession();

        if ( session != null )
        {
            request.setOffline( session.isOffline() );
            request.setForceUpdate( RepositoryPolicy.UPDATE_POLICY_ALWAYS.equals( session.getUpdatePolicy() ) );
        }
    }
View Full Code Here

        throws DependencyGraphBuilderException
    {
        ProjectBuildingRequest projectBuildingRequest =
            (ProjectBuildingRequest) Invoker.invoke( project, "getProjectBuildingRequest" );

        RepositorySystemSession session =
            (RepositorySystemSession) Invoker.invoke( projectBuildingRequest, "getRepositorySession" );

        /*
         * if ( Boolean.TRUE != ( (Boolean) session.getConfigProperties().get(
         * DependencyManagerUtils.NODE_DATA_PREMANAGED_VERSION ) ) ) { DefaultRepositorySystemSession newSession = new
View Full Code Here

        Set<Artifact> artifacts = request.getArtifactDependencies();
        Map<String, Artifact> managedVersions = request.getManagedVersionMap();
        List<ResolutionListener> listeners = request.getListeners();
        ArtifactFilter collectionFilter = request.getCollectionFilter();                      
        ArtifactFilter resolutionFilter = request.getResolutionFilter();
        RepositorySystemSession session = getSession( request.getLocalRepository() );
       
        //TODO: hack because metadata isn't generated in m2e correctly and i want to run the maven i have in the workspace
        if ( source == null )
        {
            try
View Full Code Here

    @Requirement
    private LegacySupport legacySupport;

    private void injectSession( MetadataResolutionRequest request )
    {
        RepositorySystemSession session = legacySupport.getRepositorySession();

        if ( session != null )
        {
            request.setOffline( session.isOffline() );
            request.setForceUpdate( RepositoryPolicy.UPDATE_POLICY_ALWAYS.equals( session.getUpdatePolicy() ) );
        }
    }
View Full Code Here

                                    final String version,
                                    final List<RemoteRepository> repositories) throws DependencyCollectionException,
                                                                                      DependencyResolutionException,
                                                                                      SettingsBuildingException {

        RepositorySystemSession session = newSession(repositorySystem,
                                                     workspaceReader,
                                                     SettingsUtil.getLocalRepositoryLocation(effectiveSettings));

        DefaultArtifact artifact = new DefaultArtifact(groupId, artifactId, classifier, extension, version);
        Dependency dependency = new Dependency(artifact, JavaScopes.RUNTIME);
View Full Code Here

            deployRequest = deployRequest.addArtifact(pomArtifact);
        }

        RemoteRepository repository = new RemoteRepository.Builder(repositoryId, "default", repositoryURL).build();

        RepositorySystemSession session = getRepositorySystemSession();
        setMirrorSelector(asList(repository) , (DefaultRepositorySystemSession) session);
        List<RemoteRepository> applied = applyAuthentication(asList(repository));
        deployRequest.setRepository(applied.get(0));

        repositorySystem.deploy(session, deployRequest);
View Full Code Here

            } else {
                builder.append("<no provided repositories>");
            }
            logger.debug("Get location of {} using repositories {}", artifactCoordinates, builder.toString());
        }
        RepositorySystemSession session = newSession(repositorySystem,
                                                     workspaceReader,
                                                     SettingsUtil.getLocalRepositoryLocation(effectiveSettings));
        setMirrorSelector(myRepositories, (DefaultRepositorySystemSession) session);
        List<RemoteRepository> repositoriesToUse = applyAuthentication(myRepositories);
View Full Code Here

TOP

Related Classes of org.eclipse.aether.RepositorySystemSession

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.