Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for setValidationLevel (0.14 sec)

  1. compat/maven-compat/src/main/java/org/apache/maven/project/DefaultMavenProjectBuilder.java

        private ProjectBuildingRequest toRequest(ProjectBuilderConfiguration configuration) {
            DefaultProjectBuildingRequest request = new DefaultProjectBuildingRequest();
    
            request.setValidationLevel(ModelBuildingRequest.VALIDATION_LEVEL_MAVEN_2_0);
            request.setResolveDependencies(false);
    
            request.setLocalRepository(configuration.getLocalRepository());
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  2. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/FilterModelBuildingRequest.java

        }
    
        @Override
        public int getValidationLevel() {
            return request.getValidationLevel();
        }
    
        @Override
        public FilterModelBuildingRequest setValidationLevel(int validationLevel) {
            request.setValidationLevel(validationLevel);
    
            return this;
        }
    
        @Override
        public boolean isProcessPlugins() {
            return request.isProcessPlugins();
        }
    
        @Override
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  3. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelBuildingRequest.java

         */
        public DefaultModelBuildingRequest(ModelBuildingRequest request) {
            setPomPath(request.getPomPath());
            setModelSource(request.getModelSource());
            setValidationLevel(request.getValidationLevel());
            setProcessPlugins(request.isProcessPlugins());
            setTwoPhaseBuilding(request.isTwoPhaseBuilding());
            setLocationTracking(request.isLocationTracking());
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  4. compat/maven-compat/src/main/java/org/apache/maven/project/validation/DefaultModelValidator.java

        public ModelValidationResult validate(Model model) {
            ModelValidationResult result = new ModelValidationResult();
    
            ModelBuildingRequest request =
                    new DefaultModelBuildingRequest().setValidationLevel(ModelBuildingRequest.VALIDATION_LEVEL_MAVEN_2_0);
    
            SimpleModelProblemCollector problems = new SimpleModelProblemCollector(result);
    
            modelValidator.validateEffectiveModel(model, request, problems);
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  5. compat/maven-model-builder/src/test/java/org/apache/maven/model/interpolation/AbstractModelInterpolatorTest.java

            Model out = interpolator.interpolateModel(
                    model,
                    (Path) null,
                    createModelBuildingRequest(context).setValidationLevel(ModelBuildingRequest.VALIDATION_LEVEL_MAVEN_4_0),
                    collector);
    
            assertCollectorState(0, 0, 0, collector);
            assertEquals(interpolatedName, out.getName());
        }
    
        @Test
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 22.2K bytes
    - Viewed (0)
  6. compat/maven-model-builder/src/test/java/org/apache/maven/model/validation/DefaultModelValidatorTest.java

            return validateRaw(pom, UnaryOperator.identity());
        }
    
        private SimpleProblemCollector validateEffective(String pom, int level) throws Exception {
            return validateEffective(pom, mbr -> mbr.setValidationLevel(level));
        }
    
        private SimpleProblemCollector validateEffective(String pom, UnaryOperator<ModelBuildingRequest> requestConfigurer)
                throws Exception {
            Model model = read(pom);
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 32.8K bytes
    - Viewed (0)
  7. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/DefaultArtifactDescriptorReader.java

                        return model;
                    }
                }
    
                try {
                    ModelBuildingRequest modelRequest = new DefaultModelBuildingRequest();
                    modelRequest.setValidationLevel(ModelBuildingRequest.VALIDATION_LEVEL_MINIMAL);
                    modelRequest.setProcessPlugins(false);
                    modelRequest.setTwoPhaseBuilding(false);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 17K bytes
    - Viewed (0)
  8. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelBuilder.java

                Path pomFile, int validationLevel, boolean locationTracking, TransformerContext context) {
            final ModelBuildingRequest request = new DefaultModelBuildingRequest()
                    .setValidationLevel(validationLevel)
                    .setLocationTracking(locationTracking)
                    .setModelSource(new FileModelSource(pomFile));
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 83.6K bytes
    - Viewed (0)
  9. compat/maven-compat/src/main/java/org/apache/maven/project/artifact/MavenMetadataSource.java

                        configuration.setLocalRepository(repositoryRequest.getLocalRepository());
                        configuration.setRemoteRepositories(repositoryRequest.getRemoteRepositories());
                        configuration.setValidationLevel(ModelBuildingRequest.VALIDATION_LEVEL_MINIMAL);
                        configuration.setProcessPlugins(false);
                        configuration.setRepositoryMerging(ProjectBuildingRequest.RepositoryMerging.REQUEST_DOMINANT);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  10. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/ModelBuildingRequest.java

         *
         * @param validationLevel The level of validation to perform on processed models.
         * @return This request, never {@code null}.
         */
        ModelBuildingRequest setValidationLevel(int validationLevel);
    
        /**
         * Indicates whether plugin executions and configurations should be processed. If enabled, lifecycle-induced plugin
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 14.9K bytes
    - Viewed (0)
Back to top