Merge branch 'hotfix/2.1.2' into develop

* hotfix/2.1.2:
  CHANGELOG
  AbstractCheckMojo: use version of plugin not the using project
This commit is contained in:
Paul Campbell 2017-02-09 12:03:07 +00:00
commit b8133989e5
2 changed files with 8 additions and 2 deletions

View file

@ -1,6 +1,11 @@
CHANGELOG
=========
2.1.2
-----
* Use the plugin version to find plugin's own pom
2.1.1
-----

View file

@ -71,8 +71,6 @@ abstract class AbstractCheckMojo extends AbstractMojo {
private static final String CONFIG_LOCATION = "configLocation";
@Setter
@Parameter(defaultValue = "${project.version}")
private String rulesetVersion;
@Setter
@ -98,6 +96,9 @@ abstract class AbstractCheckMojo extends AbstractMojo {
* @throws MojoFailureException on execution failure
*/
final void performCheck(final String level) throws MojoExecutionException, MojoFailureException {
rulesetVersion = mavenProject.getPlugin(KEMITIX_GROUPID + ":" + KEMITIX_ARTIFACTID + "-maven-plugin")
.getVersion();
debug("rulesetVersion: %s", rulesetVersion);
val properties = getProperties();
debug("properties: %s", properties);