Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 39 for getModel (0.07 sec)

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

        private List<String> fatals = new ArrayList<>();
    
        public SimpleProblemCollector() {}
    
        public SimpleProblemCollector(Model model) {
            this.model = model;
        }
    
        public Model getModel() {
            return model;
        }
    
        public List<String> getWarnings() {
            return warnings;
        }
    
        public List<String> getErrors() {
            return errors;
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  2. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/ModelBuildingException.java

            return result;
        }
    
        /**
         * Gets the model that could not be built properly.
         *
         * @return The erroneous model or {@code null} if not available.
         */
        public Model getModel() {
            if (result == null) {
                return null;
            }
            if (result.getEffectiveModel() != null) {
                return result.getEffectiveModel();
            }
            return result.getRawModel();
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  3. impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultSession.java

        public Map<String, String> getEffectiveProperties(@Nullable Project project) {
            HashMap<String, String> result = new HashMap<>(getSystemProperties());
            if (project != null) {
                result.putAll(project.getModel().getProperties());
            }
            result.putAll(getUserProperties());
            return result;
        }
    
        @Nonnull
        @Override
        public Version getMavenVersion() {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  4. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/ModelData.java

        }
    
        public Source getSource() {
            return source;
        }
    
        /**
         * Gets the model being wrapped.
         *
         * @return The model or {@code null} if not set.
         */
        public Model getModel() {
            return model;
        }
    
        /**
         * Gets the effective group identifier of the model.
         *
         * @return The effective group identifier of the model or an empty string if unknown, never {@code null}.
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  5. impl/maven-core/src/main/java/org/apache/maven/DefaultMaven.java

            for (MavenProject mavenProject : projects) {
                if (!"maven-plugin".equals(mavenProject.getPackaging())) {
                    Prerequisites prerequisites =
                            mavenProject.getModel().getDelegate().getPrerequisites();
                    if (prerequisites != null && prerequisites.getMaven() != null) {
                        logger.warn(
                                "The project {} uses prerequisites"
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 27.5K bytes
    - Viewed (1)
  6. compat/maven-compat/src/main/java/org/apache/maven/plugin/internal/DefaultPluginManager.java

        public Plugin getPluginDefinitionForPrefix(String prefix, MavenSession session, MavenProject project) {
            PluginPrefixRequest request = new DefaultPluginPrefixRequest(prefix, session);
            request.setPom(project.getModel());
    
            try {
                PluginPrefixResult result = pluginPrefixResolver.resolve(request);
    
                Plugin plugin = new Plugin();
                plugin.setGroupId(result.getGroupId());
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 10K bytes
    - Viewed (0)
  7. impl/maven-core/src/main/java/org/apache/maven/internal/transformation/impl/DefaultConsumerPomArtifactTransformer.java

                deferDeleteFile(consumer);
    
                project.addAttachedArtifact(createConsumerPomArtifact(project, consumer, session));
            } else if (project.getModel().getDelegate().isRoot()) {
                throw new IllegalStateException(
                        "The use of the root attribute on the model requires the buildconsumer feature to be active");
            }
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 8K bytes
    - Viewed (0)
  8. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvn/ProtoSession.java

        public Map<String, String> getEffectiveProperties(Project project) {
            HashMap<String, String> result = new HashMap<>(getSystemProperties());
            if (project != null) {
                result.putAll(project.getModel().getProperties());
            }
            result.putAll(getUserProperties());
            return result;
        }
    
        @Override
        public Version getMavenVersion() {
            return null;
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  9. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelBuilder.java

                model = model.withPomFile(((FileModelSource) modelSource).getPath());
            }
    
            Model retModel = new Model(model);
    
            problems.setSource(retModel);
    
            modelValidator.validateFileModel(retModel, request, problems);
    
            if (hasFatalErrors(problems)) {
                throw problems.newModelBuildingException();
            }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 83.6K bytes
    - Viewed (0)
  10. impl/maven-core/src/main/java/org/apache/maven/ReactorReader.java

        }
    
        @Override
        public Model findModel(Artifact artifact) {
            MavenProject project = getProject(artifact);
            return project == null ? null : project.getModel().getDelegate();
        }
    
        //
        // Implementation
        //
    
        private File findArtifact(MavenProject project, Artifact artifact, boolean checkUptodate) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 22.3K bytes
    - Viewed (0)
Back to top