diff --git a/test/xdocs/changes.xml b/test/xdocs/changes.xml index cb1ce347..067b06d1 100644 --- a/test/xdocs/changes.xml +++ b/test/xdocs/changes.xml @@ -25,6 +25,7 @@ + Document a backward-compat problem affecting version 1.8 of the plugin. New property to halt a build on test failures but after all tests have been run. New properties to configure compiler for test classes. SourceModifications sometimes does not work for test classes. diff --git a/test/xdocs/index.xml b/test/xdocs/index.xml index e948dde8..308b7800 100644 --- a/test/xdocs/index.xml +++ b/test/xdocs/index.xml @@ -40,5 +40,47 @@
  • maven-jar-plugin 1.8 (at least)
  • +
    +

    + Version 1.8 of the test plugin removed a prereq on java:compile + & java:jar-resources from the test:test goal + for optimization reasons (see MPTEST-46). + This introduced a backward compatibility issue + (see MPTEST-66) + which might affect you if the following conditions are met: +

    + +

    + An illustration of the problem is provided by the + javaapp + sourceforge plugin, whose javaapp:jar goal has a prereq on test:test, + relying on the java sources to be compiled by this call. If you are calling this goal now with + a project that has no tests, the build will fail. +

    +

    + The problem should really be fixed in the corresponding plugin, + but a simple workaround is to add the missing goals as a preGoal + in your maven.xml: +

    + + + + + +]]> +

    + If you don't know the goal that is causing the trouble, you may add + the preGoal to test:test, but this might lead + to double compilation. +

    +