简体   繁体   English

使用versions-maven-plugin在我的父pom.xml中获取最新版本的插件

[英]getting the latest version of plugin's in my parent pom.xml using versions-maven-plugin

I have versions-maven-plugin in pom.xml (this POM is the parent POM which resides somewhere on network) and my project's pom.xml considers it as parent and download it locally when build for the first time. 我在pom.xml中versions-maven-plugin (此POM是驻留在网络中某个位置的父POM),而我项目的pom.xml则将其视为父对象,并在首次构建时将其本地下载。

Now I want to get the information on the latest versions of plugins which are used in parent pom.xml(one that resides on network) i type the following command at the root of my project as 现在,我想获取有关父pom.xml(驻留在网络中的插件)中使用的最新版本插件的信息,我在项目的根目录下键入以下命令,如下所示:

mvn versions:display-plugin-updates

but this does not give the parent pom plugin's latest version;It gives me the latest versions available for the plugin i used in my project pom.xml. 但这并没有提供父pom插件的最新版本;它为我提供了我在项目pom.xml中使用的插件的最新版本。

So can anyone guide me know how can I find the latest version of all the plugins used in the pom.xml(that resides over the network and a downloaded copy is available locally). 所以任何人都可以引导我知道如何找到pom.xml中使用的所有插件的最新版本(驻留在网络上,并且可以在本地获得下载的副本)。

Regards, Rajesh 问候,拉杰什

I just got this working...I took the pom.xml(one copied locally from the network at location user/rajesh/.m2/repository/....) from the local repository and changed the name to pom.xml to some folder and run the 我刚开始工作...我从本地存储库中取出pom.xml(从网络本地复制到一个位置user / rajesh / .m2 / repository / ....),并将其名称更改为pom.xml一些文件夹并运行

mvn versions:display-plugin-updates mvn版本:display-plugin-updates

and that worked for me.I could see all the version updates. 这对我有用。我可以看到所有版本更新。

Rajesh 拉杰什

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM