component lookup exception with org.apache.maven.repository.RepositorySystem in Maven plugin testing

前端 未结 3 1222
囚心锁ツ
囚心锁ツ 2020-12-16 09:54

I\'m trying to use maven-plugin-testing-harness version 2.1 with the following test case:

public class FooTest extends AbstractMojoTestCase {
           


        
3条回答
  •  醉话见心
    2020-12-16 10:29

    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.

提交回复
热议问题