如何升级Maven插件的版本? [英] How do I upgrade the version of a maven plugin?
本文介绍了如何升级Maven插件的版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用maven-ear-plugin版本2.3.1-我知道有一个新版本可用: http://maven.apache.org/plugins/maven-ear-plugin/
I am using the maven-ear-plugin version 2.3.1 - I know there is a new version available: http://maven.apache.org/plugins/maven-ear-plugin/
我不知道如何升级到最新版本?
I can't work out how to upgrade to the latest version?
推荐答案
默认插件版本是从Super POM继承的,您可以使用mvn help:effective-pom
进行检查.
The default plugin versions are inherited from the Super POM, and you can check them with mvn help:effective-pom
.
如果您要覆盖此处提供的版本,请将其添加到您的POM中:
If you want to override the version provided there, add this to your POM:
<project>
<build>
<plugins>
<plugin>
<artifactId>maven-ear-plugin</artifactId>
<version>2.3.1</version>
</plugin>
</plugins>
</build>
</project>
用所需的版本替换版本.
Replace the version with what you need.
这篇关于如何升级Maven插件的版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文