Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for setProfiles (0.17 sec)

  1. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelBuildingRequest.java

    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  2. impl/maven-core/src/main/java/org/apache/maven/execution/DefaultMavenExecutionRequest.java

            copy.setProxies(original.getProxies());
            copy.setServers(original.getServers());
            copy.setMirrors(original.getMirrors());
            copy.setProfiles(original.getProfiles());
            copy.setPluginGroups(original.getPluginGroups());
            copy.setProjectPresent(original.isProjectPresent());
            copy.setUserSettingsFile(original.getUserSettingsFile());
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 31.7K bytes
    - Viewed (0)
  3. compat/maven-model/src/test/java/org/apache/maven/model/merge/MavenMergerTest.java

            profile.setId( "profile" );
    
            Model target = new Model();
            target.setProfiles( Arrays.asList( profile ) );
    
            Model source = new Model();
            source.setProfiles( Arrays.asList( profile ) );
    
            modelMerger.merge( target, source, true, null );
    
            assertThat( target.getProfiles(), contains( profile ) );
        }
    
        @Test
        public void mergeSameReports()
        {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  4. impl/maven-core/src/main/java/org/apache/maven/execution/MavenExecutionRequest.java

         * @since 4.0.0
         */
        MavenExecutionRequest setIgnoreTransitiveRepositories(boolean ignoreTransitiveRepositories);
    
        // Profiles
        List<Profile> getProfiles();
    
        MavenExecutionRequest addProfile(Profile profile);
    
        MavenExecutionRequest setProfiles(List<Profile> profiles);
    
        /**
         * @deprecated Since Maven 4: use {@link #getProfileActivation()}.
         */
        @Deprecated
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  5. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/ModelBuildingRequest.java

         */
        List<Profile> getProfiles();
    
        /**
         * Sets the external profiles that should be considered for model building.
         *
         * @param profiles The external profiles that should be considered for model building, may be {@code null}.
         * @return This request, never {@code null}.
         */
        ModelBuildingRequest setProfiles(List<Profile> profiles);
    
        /**
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  6. impl/maven-core/src/main/java/org/apache/maven/internal/transformation/impl/DefaultConsumerPomBuilder.java

                                .build(null),
                        model);
                builder.packaging(POM_PACKAGING);
                builder.profiles(prune(model.getProfiles()));
    
                model = builder.build();
                String modelVersion = new MavenModelVersion().getModelVersion(model);
                model = model.withModelVersion(modelVersion);
            } else {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 11K bytes
    - Viewed (0)
  7. api/maven-api-core/src/main/java/org/apache/maven/api/services/ModelBuilderRequest.java

        /**
         * Defines external profiles that may be activated for the given model.
         * Those are external profiles usually defined in {@link org.apache.maven.api.settings.Settings#getProfiles()}.
         */
        @Nonnull
        Collection<Profile> getProfiles();
    
        /**
         * List of profile ids that have been explicitly activated by the user.
         */
        @Nonnull
        List<String> getActiveProfileIds();
    
        /**
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Wed Oct 09 11:07:31 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  8. compat/maven-embedder/src/main/java/org/apache/maven/cli/configuration/SettingsXmlConfigurationProcessor.java

                    // do nothing for now
                }
            }
    
            request.setActiveProfiles(settings.getActiveProfiles());
    
            for (Profile rawProfile : settings.getProfiles()) {
                request.addProfile(SettingsUtils.convertFromSettingsProfile(rawProfile));
    
                if (settings.getActiveProfiles().contains(rawProfile.getId())) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  9. impl/maven-core/src/main/java/org/apache/maven/DefaultMaven.java

                    .flatMap(p -> p.getModel().getDelegate().getProfiles().stream())
                    .map(Profile::getId);
            final Stream<String> settingsProfiles =
                    session.getSettings().getProfiles().stream().map(org.apache.maven.settings.Profile::getId);
            final Stream<String> superPomProfiles = superPomModels.values().stream()
                    .flatMap(p -> p.getProfiles().stream())
                    .map(Profile::getId);
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 27.5K bytes
    - Viewed (1)
  10. impl/maven-core/src/main/java/org/apache/maven/internal/aether/DefaultRepositorySystemSessionFactory.java

                    new HashSet<>(request.getProfileActivation().getRequiredActiveProfileIds());
            activeProfileId.addAll(request.getProfileActivation().getOptionalActiveProfileIds());
    
            return request.getProfiles().stream()
                    .filter(profile -> activeProfileId.contains(profile.getId()))
                    .map(ModelBase::getProperties)
                    .flatMap(properties -> properties.entrySet().stream())
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 25.8K bytes
    - Viewed (0)
Back to top