maven pom.xml引入build-helper-maven-plugin插件有什么作用
1个回答
2017-11-07
展开全部
你的问题描述本身就是错的,你所说的插件叫做 build helper, 插件名称不是 groupId,插件名称需要使用坐标描述。了解一个插件的作用,可以按照如下步骤:1. 打开 Maven Plugins 的 汇总页面2. 根据 artifactId 搜索目标插件,按照你的描述,应该搜索:helper3. 打开搜索到的插件主页build helper 提供了一些辅助的构建目标,摘录如下:build-helper:add-source Add more source directories to the POM.build-helper:add-test-source Add test source directories to the POM.build-helper:add-resource Add more resource directories to the POM.build-helper:add-test-resource Add test resource directories to the POM.build-helper:attach-artifact Attach additional artifacts to be installed and deployed.build-helper:maven-version Set a property containing the current version of maven.build-helper:parse-version Set properties containing the parsed components of a version string.build-helper:regex-property Sets a property by applying a regex replacement rule to a supplied value.build-helper:regex-properties Sets a property by applying a regex replacement rule to a supplied value.build-helper:released-version Resolve the latest released version of this project.build-helper:remove-project-artifact Remove project's artifacts from local repository.build-helper:reserve-network-port Reserve a list of random and unused network ports.build-helper:local-ip Retrieve current host IP address.build-helper:cpu-count Retrieve number of available CPU.build-helper:timestamp-property Sets a property based on the current date and time.具体使用什么目标,看需求了, @赵北云 也提到了些常用场景和注意事项
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询