How does Maven decide what version of a plugin to use, when you don't specify any? -
i recognized maven not uses latest version of plugin.
for example org.codehaus.mojo:sonar-maven-plugin
version 2.7 has beed released on 19th of october on 23th of october, 2.6 still used maven (mvn sonar:sonar
).
i remember plugins, latest version several minor releases above version maven decided use.
is there (central) index/list/database maven looks version use? if yes, can accessed manually?
as far know, link answer question.
automatic plugin version resolution
when plugin invoked without explicit version given in pom or on command line, maven 2.x used pick latest version available latest version either release or snapshot. sake of stability, maven 3.x prefers latest release version on latest snapshot version.
given threat of non-reproducible builds imposed automatic plugin version resolution, feature scheduled removal far plugin declarations in pom concerned. users of maven 3.x find output warning when missing plugin versions detected encourage addition of plugin versions pom or 1 of parent poms. enforcer rule requirepluginversions can used additionally check missing plugin versions in pom
Comments
Post a Comment