我想知道安装的插件的版本。哪个命令可以做到这一点?
发布于 2011-04-20 17:02:17
mvn -Dplugin=<groupId>:<artifactId> help:describe
插件的详细说明-包括版本
发布于 2011-04-20 14:34:22
如果您想知道哪个版本的插件(包括通过maven master pom提供的插件)您的构建用途,请尝试:
mvn help:effective-pom
发布于 2014-06-17 20:26:27
将此代码添加到您的pom.xml
文件中,您将在mvn clean install
上获得结果
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<version>2.1</version>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>display-dependency-updates</goal>
<goal>display-plugin-updates</goal>
<goal>display-property-updates</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
如果你只想做一次:
mvn versions:display-plugin-updates
https://stackoverflow.com/questions/5724359
复制相似问题