Package org.apache.maven.settings

Examples of org.apache.maven.settings.Profile


        }

        for (String profileName : profileNames) {
            Object obj = settings.getProfilesAsMap().get(profileName);
            if (Profile.class.isAssignableFrom(obj.getClass())) {
                Profile p = (Profile) obj;
                for (Repository repository : p.getRepositories()) {
                    repositories.add(repository);
                }
            }
        }
        return repositories;
View Full Code Here


      Map<String, Profile> profiles = settings.getProfilesAsMap();

      for (String id : activeProfiles)
      {
         Profile profile = profiles.get(id);
         if (profile != null)
         {
            List<Repository> repositories = profile.getRepositories();
            for (Repository repository : repositories)
            {
               settingsRepos.add(new RemoteRepository.Builder(repository.getId(), repository.getLayout(), repository
                        .getUrl()).build());
            }
View Full Code Here

         @SuppressWarnings("unchecked")
         Map<String, Profile> profiles = settings.getProfilesAsMap();

         for (String id : activeProfiles)
         {
            Profile profile = profiles.get(id);
            if(profile != null)
            {
               List<Repository> repositories = profile.getRepositories();
               for (Repository repository : repositories)
               {
                  settingsRepos.add(RepositoryUtils.convertFromMavenSettingsRepository(repository));
               }
            }
View Full Code Here

        Map<String, Profile> profilesAsMap = settings.getProfilesAsMap();
        if ( profileIds != null && !profileIds.isEmpty() )
        {
            for ( String profileId : profileIds )
            {
                Profile profile = profilesAsMap.get( profileId );
                List<Repository> repos = profile.getRepositories();
                if ( repos != null && !repos.isEmpty() )
                {
                    for ( Repository repo : repos )
                    {
                        remoteRepositories.add( artifactRepositoryFactory.createArtifactRepository( repo.getId(), repo
View Full Code Here

     */
    private static void cleanSettings( Settings settings )
    {
        for ( Iterator it = settings.getProfiles().iterator(); it.hasNext(); )
        {
            Profile profile = (Profile) it.next();

            Properties properties = new SortedProperties();
            properties.putAll( profile.getProperties() );
            profile.setProperties( properties );
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.maven.settings.Profile

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.