maven-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benson Margulies <bimargul...@gmail.com>
Subject Using the plugin testing harness
Date Thu, 12 Jun 2014 19:01:20 GMT
So, I tried to set up the testing harness in a project:

  <dependency>
      <groupId>org.apache.maven.plugin-testing</groupId>
      <artifactId>maven-plugin-testing-harness</artifactId>
      <version>1.3</version>
      <scope>test</scope>
    </dependency>

And I'm failing to run the test with:

org.codehaus.plexus.component.repository.exception.ComponentLookupException:
Component descriptor cannot be found in the component repository
      role: org.apache.maven.plugin.Mojo
  roleHint: com.github.maven-nar:nar-maven-plugin:3.1.1-SNAPSHOT:nar-validate
classRealm: none specified
at org.codehaus.plexus.DefaultComponentRegistry.getComponentManager(DefaultComponentRegistry.java:435)

nar-validate is the name of the mojo.

This project uses a pretty old base maven version and a pretty old junit.

The stub pom I have is :

 <build>
        <plugins>
            <plugin>
                <groupId>com.github.maven-nar</groupId>
                <artifactId>nar-maven-plugin</artifactId>
                <configuration>
                    <project
implementation="org.apache.maven.plugin.testing.stubs.MavenProjectStub"/>
                </configuration>
            </plugin>
        </plugins>
    </build>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Mime
View raw message