diff --git a/clover/plugin.jelly b/clover/plugin.jelly index be9bdac4..007f8dab 100644 --- a/clover/plugin.jelly +++ b/clover/plugin.jelly @@ -158,12 +158,8 @@ Now using primary build.compiler : ${build.compiler} - - ${pom.getPluginContext('maven-java-plugin').setVariable('maven.build.dest',tmp)} - - ${pom.getPluginContext('maven-test-plugin').setVariable('maven.build.dest',tmp)} + + ${context.getParent().setVariable('maven.build.dest',tmp)} @@ -175,10 +171,8 @@ --> - ${pom.getPluginContext('maven-test-plugin').setVariable('maven.build.dest',mavenBuildDestTestOld)} - ${pom.getPluginContext('maven-java-plugin').setVariable('maven.build.dest',mavenBuildDestJavaOld)} - - ${pom.getContext().removeVariable('build.compiler')} + ${context.getParent().setVariable('maven.build.dest',mavenBuildDestTestOld)} + ${context.removeVariable('build.compiler')} diff --git a/clover/xdocs/changes.xml b/clover/xdocs/changes.xml index c7251d24..81e18d12 100644 --- a/clover/xdocs/changes.xml +++ b/clover/xdocs/changes.xml @@ -26,6 +26,11 @@ + + When executing clover:on and clover:off, modify + the maven.build.dest property value in the Root context of + all plugins so that the value change is available in all Maven plugins. + Prevented the clover:on goal from failing when there are no unit tests sources available.