Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 489 for problem (0.08 sec)

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

    /**
     * Describes a problem that was encountered during project building. A problem can either be an exception that was
     * thrown or a simple string message. In addition, a problem carries a hint about its source.
     *
     * @since 4.0.0
     */
    @Experimental
    @Immutable
    public interface BuilderProblem {
    
        /**
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Thu Mar 23 05:29:39 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  2. compat/maven-settings-builder/src/main/java/org/apache/maven/settings/building/DefaultSettingsProblem.java

     * under the License.
     */
    package org.apache.maven.settings.building;
    
    /**
     * Describes a problem that was encountered during settings building. A problem can either be an exception that was
     * thrown or a simple string message. In addition, a problem carries a hint about its source, e.g. the settings file
     * that exhibits the problem.
     *
     * @deprecated since 4.0.0, use {@link org.apache.maven.api.services.SettingsBuilder} instead
     */
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  3. compat/maven-builder-support/src/test/java/org/apache/maven/building/DefaultProblemCollectorTest.java

            DefaultProblemCollector collector = new DefaultProblemCollector(null);
    
            collector.add(null, "PROBLEM1", -1, -1, null);
    
            collector.setSource("SOURCE_PROBLEM2");
            collector.add(null, "PROBLEM2", -1, -1, null);
    
            collector.setSource("SOURCE_PROBLEM3");
            collector.add(null, "PROBLEM3", -1, -1, null);
    
            assertEquals("", collector.getProblems().get(0).getSource());
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  4. api/maven-api-core/src/main/java/org/apache/maven/api/services/ModelProblem.java

    package org.apache.maven.api.services;
    
    import org.apache.maven.api.annotations.Nonnull;
    
    /**
     * Describes a problem that was encountered during model building. A problem can either be an exception that was thrown
     * or a simple string message. In addition, a problem carries a hint about its source, e.g. the POM file that exhibits
     * the problem.
     *
     */
    public interface ModelProblem extends BuilderProblem {
    
        /**
         * Version
         */
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Sat Sep 28 09:03:24 UTC 2024
    - 2K bytes
    - Viewed (0)
  5. compat/maven-settings-builder/src/main/java/org/apache/maven/settings/building/SettingsProblemCollector.java

         * @param line The one-based index of the line containing the problem or {@code -1} if unknown.
         * @param column The one-based index of the column containing the problem or {@code -1} if unknown.
         * @param cause The cause of the problem, may be {@code null}.
         */
        void add(SettingsProblem.Severity severity, String message, int line, int column, Exception cause);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  6. compat/maven-settings-builder/src/main/java/org/apache/maven/settings/validation/DefaultSettingsValidator.java

        public void validate(Settings settings, SettingsProblemCollector problems) {
            validate(settings, false, problems);
        }
    
        @Override
        public void validate(Settings settings, boolean isProjectSettings, SettingsProblemCollector problems) {
            List<BuilderProblem> list = settingsBuilder.validate(settings.getDelegate(), isProjectSettings);
            for (BuilderProblem problem : list) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  7. compat/maven-settings-builder/src/main/java/org/apache/maven/settings/building/DefaultSettingsBuilder.java

        private List<SettingsProblem> convert(List<BuilderProblem> problems) {
            return problems.stream().map(this::convert).toList();
        }
    
        private SettingsProblem convert(BuilderProblem problem) {
            return new DefaultSettingsProblem(
                    problem.getMessage(),
                    SettingsProblem.Severity.valueOf(problem.getSeverity().name()),
                    problem.getSource(),
                    problem.getLineNumber(),
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  8. compat/maven-toolchain-builder/src/test/java/org/apache/maven/toolchain/building/ToolchainsBuildingExceptionTest.java

            assertEquals("0 problems were encountered while building the effective toolchains" + LS, e.getMessage());
        }
    
        @Test
        void testOneProblem() {
            ProblemCollector problemCollector = ProblemCollectorFactory.newInstance(null);
            problemCollector.add(Problem.Severity.ERROR, "MESSAGE", 3, 5, new Exception());
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  9. compat/maven-builder-support/src/main/java/org/apache/maven/building/DefaultProblem.java

     */
    package org.apache.maven.building;
    
    /**
     * Describes a problem that was encountered during settings building. A problem can either be an exception that was
     * thrown or a simple string message. In addition, a problem carries a hint about its source, e.g. the settings file
     * that exhibits the problem.
     *
     */
    class DefaultProblem implements Problem {
    
        private final String source;
    
        private final int lineNumber;
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  10. compat/maven-toolchain-builder/src/main/java/org/apache/maven/toolchain/building/DefaultToolchainsBuildingResult.java

        private List<Problem> problems;
    
        /**
         * Default constructor
         *
         * @param effectiveToolchains the merged toolchains, may not be {@code null}
         * @param problems the problems while building the effectiveToolchains, if any.
         */
        public DefaultToolchainsBuildingResult(PersistedToolchains effectiveToolchains, List<Problem> problems) {
            this.effectiveToolchains = effectiveToolchains;
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2K bytes
    - Viewed (0)
Back to top