I\'m trying to use maven-plugin-testing-harness version 2.1 with the following test case:
public class FooTest extends AbstractMojoTestCase {
Leaving this here for anyone who runs into this problem in the future:
smoke's answer does work, but make sure the versions of the dependencies included in yegor256's in the original question match. Adding org.apache.maven:maven-compat did not work for me until I had changed those 4 dependencies to also have version 3.0.5.