插件是否像 Maven 项目的依赖项一样下载文件?
Do plugins download the files like dependencies do for Maven projects?
我正在尝试使用在线可用的 PIT 工具进行突变测试,我注意到它使用了一个插件标签用于 Maven 项目的 pom.xml 文件。我查看了 Maven 存储库,但他们从未提及插件是否将文件下载到您的系统。插件是否像依赖项一样下载文件?或者它不下载文件?
如果不行,有什么办法吗?我需要编辑一些文件以允许 class 项目的其他突变。
您可能正在寻找 pom.xml
中的汤姆介绍:-
<build>
<plugins>
<plugin>
<groupId>org.pitest</groupId>
<artifactId>pitest-maven</artifactId>
<version>1.2.3</version>
</plugin>
.... other plugins
</plugins>
</build>
Do plugins download the files like the dependencies? Or does it not download the files?
是,插件也可以从默认的 Maven 中心下载,如您 settings.xml
中指定的,类似于如何在构建期间下载依赖项。
此外,他们的 quick-start 可以帮助您精确指定额外的突变或排除。
我正在尝试使用在线可用的 PIT 工具进行突变测试,我注意到它使用了一个插件标签用于 Maven 项目的 pom.xml 文件。我查看了 Maven 存储库,但他们从未提及插件是否将文件下载到您的系统。插件是否像依赖项一样下载文件?或者它不下载文件?
如果不行,有什么办法吗?我需要编辑一些文件以允许 class 项目的其他突变。
您可能正在寻找 pom.xml
中的汤姆介绍:-
<build>
<plugins>
<plugin>
<groupId>org.pitest</groupId>
<artifactId>pitest-maven</artifactId>
<version>1.2.3</version>
</plugin>
.... other plugins
</plugins>
</build>
Do plugins download the files like the dependencies? Or does it not download the files?
是,插件也可以从默认的 Maven 中心下载,如您 settings.xml
中指定的,类似于如何在构建期间下载依赖项。
此外,他们的 quick-start 可以帮助您精确指定额外的突变或排除。