Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 25 for getProfiles (0.86 seconds)

  1. compat/maven-model-builder/src/test/java/org/apache/maven/model/building/DefaultModelBuilderFactoryTest.java

                    readPom(pom).getProfiles().get(1).getActivation().getFile().getExists();
    
            DefaultModelBuildingRequest request = new DefaultModelBuildingRequest();
            request.setProcessPlugins(true);
            request.setPomFile(pom);
            ModelBuildingResult result = builder.build(request);
            String resultExists = result.getRawModel()
                    .getProfiles()
                    .get(1)
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Jan 10 07:09:12 GMT 2025
    - 3.7K bytes
    - Click Count (0)
  2. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/FilterModelBuildingRequest.java

            return this;
        }
    
        @Override
        public List<Profile> getProfiles() {
            return request.getProfiles();
        }
    
        @Override
        public FilterModelBuildingRequest setProfiles(List<Profile> profiles) {
            request.setProfiles(profiles);
    
            return this;
        }
    
        @Override
        public List<String> getActiveProfileIds() {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Feb 25 08:27:34 GMT 2025
    - 6.3K bytes
    - Click Count (0)
  3. 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();
    
        /**
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Oct 10 07:30:49 GMT 2025
    - 16.3K bytes
    - Click Count (0)
  4. impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultProject.java

        @Nonnull
        public List<Profile> getDeclaredProfiles() {
            return getModel().getProfiles();
        }
    
        @Override
        @Nonnull
        public List<Profile> getEffectiveProfiles() {
            return Stream.iterate(this.project, Objects::nonNull, MavenProject::getParent)
                    .flatMap(project -> project.getModel().getDelegate().getProfiles().stream())
                    .toList();
        }
    
        @Override
        @Nonnull
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Mon Mar 24 22:23:23 GMT 2025
    - 8.7K bytes
    - Click Count (0)
  5. impl/maven-core/src/main/java/org/apache/maven/execution/DefaultMavenExecutionRequest.java

            Objects.requireNonNull(profile, "profile cannot be null");
    
            for (Profile p : getProfiles()) {
                if (p.getId() != null && p.getId().equals(profile.getId())) {
                    return this;
                }
            }
    
            getProfiles().add(profile);
    
            return this;
        }
    
        @Override
        public RepositoryCache getRepositoryCache() {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Thu Dec 12 11:02:17 GMT 2024
    - 32.1K bytes
    - Click Count (0)
  6. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelBuildingRequest.java

    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Feb 25 08:27:34 GMT 2025
    - 9.2K bytes
    - Click Count (0)
  7. api/maven-api-core/src/main/java/org/apache/maven/api/services/ModelBuilderResult.java

        /**
         * Gets the external profiles that were active during model building. External profiles are those that were
         * contributed by {@link ModelBuilderRequest#getProfiles()}.
         *
         * @return The active external profiles or an empty list if none, never {@code null}.
         */
        @Nonnull
        List<Profile> getActiveExternalProfiles();
    
        /**
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Nov 18 17:20:31 GMT 2025
    - 4.2K bytes
    - Click Count (0)
  8. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/ModelBuildingResult.java

        List<Profile> getActivePomProfiles(String modelId);
    
        /**
         * Gets the external profiles that were active during model building. External profiles are those that were
         * contributed by {@link ModelBuildingRequest#getProfiles()}.
         *
         * @return The active external profiles or an empty list if none, never {@code null}.
         */
        List<Profile> getActiveExternalProfiles();
    
        /**
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Feb 25 08:27:34 GMT 2025
    - 4.2K bytes
    - Click Count (0)
  9. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelBuilder.java

                inheritanceAssembler.assembleModelInheritance(child, parent, request, problems);
            }
        }
    
        private List<Profile> getProfiles(Model model) {
            ArrayList<Profile> profiles = new ArrayList<>();
            for (Profile profile : model.getProfiles()) {
                profile = profile.clone();
                profiles.add(profile);
            }
            return profiles;
        }
    
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Sun Mar 30 23:08:08 GMT 2025
    - 55.3K bytes
    - Click Count (0)
  10. 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);
    
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Mon Dec 29 10:43:38 GMT 2025
    - 28.8K bytes
    - Click Count (1)
Back to Top