maven-clean-plugin

clean:clean

清理之前的build文件。
这会尝试清除项目在构建时生成的文件。默认情况下,它会发现并删除在project.build.directoryproject.build.outputDirectoryproject.build.testOutputDirectoryproject.reporting.outputDirectory中配置的目录 。

也可以通过配置filesets删除默认值以外的文件。

可选参数

NameTypeSinceDescriptionDefault valueUser propertyRequired
<excludeDefaultDirectories>boolean2.3clean时只删除filesets中的文件。从3.0.0开始,该属性已从clean.excludeDefaultDirectories重命名为maven.clean.excludeDefaultDirectoriesfalsemaven.clean.excludeDefaultDirectories
<failOnError>boolean2.2clean时发生error,build是否仍将继续。truemaven.clean.failOnError
<filesets>Fileset[]2.1除默认目录外,要删除的文件列表。
<filesets>
<fileset>
<directory>src/main/generated</directory>
<followSymlinks>false</followSymlinks>
<useDefaultExcludes>true</useDefaultExcludes>
<includes>
<include>*.java</include>
</includes>
<excludes>
<exclude>Template*</exclude>
</excludes>
</fileset>
</filesets>
<followSymLinks>boolean2.1Sets whether the plugin should follow symbolic links while deleting files from the default output directories of the project.无论符号链接是否实际存在,不遵循符号链接需要更多的IO操作和堆内存。因此,具有巨大输出目录的项目有意识地不包含符号链接,可以通过将此参数设置为true来提高性能。从3.0.0开始,该属性已从clean.followSymLinks重命名 为maven.clean.followSymLinksfalsemaven.clean.followSymLinks
<retryOnError>boolean2.4.2是否应在第一次删除失败时进行额外尝试(在短暂延迟之后)删除文件。这有助于删除由病毒扫描程序或搜索索引等第三方工具暂时锁定的文件。truemaven.clean.retryOnError
<skip>boolean2.2禁用本插件。从3.0.0开始,该属性已从clean.skip重命名为maven.clean.skipfalsemaven.clean.skip
<verbose>Boolean2.1设置插件是否以详细模式运行。从插件版本2.3开始,默认值来自Maven的全局调试标志(compare command line switch -X)。从3.0.0开始,该属性已从clean.verbose重命名为maven.clean.verbosemaven.clean.verbose
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值