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

前端 未结 3 1224
囚心锁ツ
囚心锁ツ 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条回答
  •  旧时难觅i
    2020-12-16 10:41

    Currently, the class org.apache.maven.repository.RepositorySystem is found in the lib maven-resolver-api. If after adding maven-compat, anybody here still gets the error, make sure to add maven-resolver-api artifact as dependency as well.

    
      org.apache.maven.resolver
      maven-resolver-api
      1.3.1
    
    

提交回复
热议问题