Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to show plugin versions

Tags:

java

maven

I want to know the version of plugin installed. Which command can do it?

like image 549
user705414 Avatar asked Apr 20 '11 00:04

user705414


People also ask

How do I find my Maven plugin version?

The display-plugin-updates goal will check all the plugins and reports used in your project and display a list of those plugins with newer versions available, first staying with the same Maven version prerequisite, then additional options if you update the Maven version prerequisite.

What is plugin version?

A Plugin Version contains all the information about a particular version of a Plugin. Some notable fields include the URL to the plugin package, the version number and what plugin is it the version of.

What is Maven plugin version?

Maven Plugin Plugin/ | Last Published: 2022-01-11. Version: 3.6.4.


3 Answers

mvn -Dplugin=<groupId>:<artifactId> help:describe

detailed description of the plugin - including the version

like image 88
twister_void Avatar answered Oct 13 '22 12:10

twister_void


If you would to know which version of plugins (incl. plugins provided through maven master pom) your build use, try:

mvn help:effective-pom
like image 23
Conny Kreyßel Avatar answered Oct 13 '22 11:10

Conny Kreyßel


I don't know what you mean by 'version of plugin installed' but the Maven help plugin enables you to get the desciption of a plugin by giving the groupId and artifactId,

mvn -Dplugin=<groupId>:<artifactId> help:describe

You will get a detailed description of the plugin - including the version (although I must admit that I don't know the strategy of version number resolving).

Example for the maven-dependency-plugin

mvn -Dplugin=org.apache.maven.plugins:maven-dependency-plugin help:describe

Output:

Name: Maven Dependency Plugin
Description: Provides utility goals to work with dependencies like copying,
  unpacking, analyzing, resolving and many more.
Group Id: org.apache.maven.plugins
Artifact Id: maven-dependency-plugin
Version: 2.2
Goal Prefix: dependency

This plugin has 21 goals:

dependency:analyze
  Description: Analyzes the dependencies of this project and determines which
    are: used and declared; used and undeclared; unused and declared. This goal
    is intended to be used standalone, thus it always executes the test-compile
    phase - use the dependency:analyze-only goal instead when participating in
    the build lifecycle.

dependency:analyze-dep-mgt
  Description: This mojo looks at the dependencies after final resolution and
    looks for mismatches in your dependencyManagement section. In versions of
    maven prior to 2.0.6, it was possible to inherit versions that didn't match
    your dependencyManagement. See MNG-1577 for more info. This mojo is also
    useful for just detecting projects that override the dependencyManagement
    directly. Set ignoreDirect to false to detect these otherwise normal
    conditions.

dependency:analyze-duplicate
  Description: Analyzes the <dependencies/> and <dependencyManagement/> tags
    in the pom.xml and determines the duplicate declared dependencies.

... and much more
like image 11
FrVaBe Avatar answered Oct 13 '22 10:10

FrVaBe