Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for getModelIds (0.19 sec)

  1. api/maven-api-core/src/main/java/org/apache/maven/api/services/ModelBuilderResult.java

         * an empty string that by definition denotes the super POM.
         *
         * @return The model identifiers from the lineage of models, never {@code null}.
         */
        @Nonnull
        List<String> getModelIds();
    
        /**
         * Gets the file model.
         *
         * @return the file model, never {@code null}.
         */
        @Nonnull
        Model getFileModel();
    
        /**
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 4.5K bytes
    - Viewed (0)
  2. api/maven-api-core/src/main/java/org/apache/maven/api/services/ModelBuilderException.java

         *
         * @return The identifier of the POM or an empty string if not known, never {@code null}.
         */
        public String getModelId() {
            if (result == null || result.getModelIds().isEmpty()) {
                return "";
            }
            return result.getModelIds().get(0);
        }
    
        /**
         * Gets the problems that caused this exception.
         *
         * @return The problems that caused this exception, never {@code null}.
         */
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 2.7K bytes
    - Viewed (0)
  3. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelBuilderResult.java

            this.effectiveModel = result.getEffectiveModel();
            this.fileModel = result.getFileModel();
            this.problems.addAll(result.getProblems());
    
            for (String modelId : result.getModelIds()) {
                this.modelIds.add(modelId);
                this.rawModels.put(modelId, result.getRawModel(modelId).orElseThrow());
                this.activePomProfiles.put(modelId, result.getActivePomProfiles(modelId));
            }
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 7.1K bytes
    - Viewed (0)
  4. maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuilder.java

            private void initParent(MavenProject project, Map<File, MavenProject> projects, ModelBuilderResult result) {
                Model parentModel = result.getModelIds().size() > 1
                                && !result.getModelIds().get(1).isEmpty()
                        ? result.getRawModel(result.getModelIds().get(1)).orElse(null)
                        : null;
    
                if (parentModel != null) {
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Thu Apr 25 14:13:36 GMT 2024
    - 55.2K bytes
    - Viewed (0)
  5. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelProblemCollector.java

            add(problem);
        }
    
        public ModelBuilderException newModelBuilderException() {
            ModelBuilderResult result = this.result;
            if (result.getModelIds().isEmpty()) {
                DefaultModelBuilderResult tmp = new DefaultModelBuilderResult();
                tmp.setEffectiveModel(result.getEffectiveModel());
                tmp.setProblems(getProblems());
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 6.3K bytes
    - Viewed (0)
Back to top