出现的错误
解决办法注释掉maven中
<skip>true</skip>标签
原因
<skip>true</skip>
标签的意义是告诉 Maven 在构建项目时跳过特定的模块或子模块。当你的项目中包含多个模块或子模块时,你可以使用这个标签来告诉 Maven 跳过一些模块或子模块的构建,以加快构建的速度或避免不必要的构建。这个标签通常在父pom文件中使用,以控制子模块的构建行为。
例如,如果你的项目包含一个子模块,但你不想在构建项目时构建该子模块,你可以在项目的父pom文件中添加以下内容:
<modules>
<module>module1</module>
<module>module2</module>
<module>module3</module>
<module>module4</module>
<module>module5</module>
<module>module6</module>
<module>module7</module>
<module>module8</module>
<module>module9</module>
<module>module10</module>
<module>module11</module>
<module>module12</module>
<module>module13</module>
<module>module14</module>
<module>module15</module>
<module>module16</module>
<module>module17</module>
<module>module18</module>
<module>module19</module>
<module>module20</module>
<module>module-to-skip</module>
</modules>
在这个示例中,项目包含20个模块和一个名为“module-to-skip”的子模块。如果你想跳过这个子模块的构建,你可以将 <skip>true</skip>
添加到该模块的pom文件中。例如:
<project>
<!-- 其他配置 -->
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<skip>true</skip> <!-- 跳过该模块的构建 -->
</configuration>
</plugin>
</plugins>
</build>
</project>
这样,当你构建整个项目时,Maven 将跳过该子模块的构建。