Ошибка Maven: выполнение плагина не охватывается конфигурацией жизненного цикла - PullRequest
0 голосов
/ 18 марта 2019

Здравствуйте, я новичок в Maven. Я начал с того, что пытался следовать этому руководству, связанному, чтобы найти [Решение] Вот фрагмент моего pom.xml для плагина, вызывающего проблемы ...

ниже приведен фрагмент

<build>
  <pluginManagement>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>${maven-compiler-plugin.version}</version>
        <configuration>
          <source>1.8</source>
          <target>1.8</target>
          <compilerArgument>-Xlint:unchecked</compilerArgument>
          <!-- Checks to see if there are deprecated Methods -->
          <excludes>
            <!--  				<exclude>com/microsoft/schemas/win/_2004/_08/events/*.java</exclude> -->
            <exclude>gov/nyc/cyber/multithreading/parser/*.java</exclude>
            <exclude>gov/nyc/cyber/multithreading/utils/*.java</exclude>
          </excludes>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-assembly-plugin</artifactId>
        <configuration>
          <archive>
            <manifest>
              <mainClass>fully.qualified.MainClass</mainClass>
            </manifest>
          </archive>
          <descriptorRefs>
            <descriptorRef>jar-with-dependencies</descriptorRef>
          </descriptorRefs>
        </configuration>
      </plugin>
    </plugins>
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>org.codehaus.mojo</groupId>
          <artifactId>exec-maven-plugin</artifactId>
          <version>${maven-exec-plugin.version}</version>
          <configuration>
            <cleanupDaemonThreads>false</cleanupDaemonThreads>
          </configuration>
        </plugin>
      </plugins>
    </pluginManagement>
  </pluginManagement>
</build>

Вот моя ошибка: - Выполнение плагина не охватывается конфигурацией жизненного цикла: org.apache.maven.plugins: maven-compiler-plugin: 3.6.2: compile (выполнение: default-compile, phase: compile) - Выполнение плагина, не охваченное конфигурацией жизненного цикла: org.apache.maven.plugins: maven-compiler-plugin: 3.6.2: testCompile (выполнение: default-testCompile, фаза: test-compile)

...