View Javadoc
1   /*
2    * SPDX-FileCopyrightText: Copyright (c) 2011-2026 Yegor Bugayenko
3    * SPDX-License-Identifier: MIT
4    */
5   package com.qulice.maven;
6   
7   import com.qulice.spi.ValidationException;
8   
9   /**
10   * Validator inside Maven.
11   *
12   * @since 0.3
13   */
14  @FunctionalInterface
15  interface MavenValidator {
16  
17      /**
18       * Validate this environment.
19       *
20       * @param env The environment
21       * @throws ValidationException In case of violations
22       */
23      void validate(MavenEnvironment env) throws ValidationException;
24  }