如何定义由maven-release-plugin执行的子插件的版本?

时间:2019-12-20 19:47:42

标签: maven maven-release-plugin

当我使用maven-release-plugin并运行它时,我看到一些警告消息:

[INFO] [WARNING] Some problems were encountered while building the effective model for li.pitschmann:knx-core:jar:0.0.1
[INFO] [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-source-plugin is missing. @ org.apache.maven:maven-model-builder:3.6.1:super-pom, jar:file:/Applications/IntelliJ%20IDEA%20CE.app/Contents/plugins/maven/lib/maven3/lib/maven-model-builder-3.6.1.jar!/org/apache/maven/model/pom-4.0.0.xml, line 113, column 19
[INFO] [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-javadoc-plugin is missing. @ org.apache.maven:maven-model-builder:3.6.1:super-pom, jar:file:/Applications/IntelliJ%20IDEA%20CE.app/Contents/plugins/maven/lib/maven3/lib/maven-model-builder-3.6.1.jar!/org/apache/maven/model/pom-4.0.0.xml, line 125, column 19
[INFO] [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-deploy-plugin is missing. @ org.apache.maven:maven-model-builder:3.6.1:super-pom, jar:file:/Applications/IntelliJ%20IDEA%20CE.app/Contents/plugins/maven/lib/maven3/lib/maven-model-builder-3.6.1.jar!/org/apache/maven/model/pom-4.0.0.xml, line 137, column 19

尽管在我的{strong>中没有定义,我该如何设置'maven-source-plugin','maven-javadoc-plugin'和'maven-deploy-plugin'的版本。 {1}}文件。看起来这三个插件是由“ maven-release-plugin”调用的。要定义这三个插件的版本(由maven-release-plugin调用),我必须在pom.xml中显式添加和定义它们,还是可以通过maven-release-plugin来实现?

令我惊讶的是,没有人抱怨这个问题。所以我担心自己走错了路。至少我在stackoverflow中找不到相同的问题,这里报告的问题似乎只是相似的,但还有其他错误源。澄清表示赞赏!

0 个答案:

没有答案
相关问题