您好,我是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(执行:默认编译,阶段:编译) -生命周期配置未涵盖的插件执行:org.apache.maven.plugins:maven-compiler-plugin:3.6.2:testCompile(执行:default-testCompile,阶段:test-compile)