Hmmm

I tried it with generate and I still get almost the
same exception:

org.codehaus.plexus.component.repository.exception.ComponentLookupException:
Component descriptor cannot be found in the component
repository:
org.apache.maven.plugin.Mojoorg.jpackage:xml2spec.mojo:1.0-SNAPSHOT:generate.

Any other ideas?

Thanks again,
- Ole



--- Dietrich Schulten <[EMAIL PROTECTED]> wrote:

> The first parameter to lookupMojo() must be a goal,
> not an artifact - in
> your case "generate" should get your Mojo.
> 
> HTH
> Dietrich
> 
> Ole Ersoy schrieb:
> > Hi,
> >
> > I'm trying to use the testing harness and I get
> this
> > exception:
> >
> >
>
org.codehaus.plexus.component.repository.exception.ComponentLookupException:
> > Component descriptor cannot be found in the
> component
> > repository:
> >
>
org.apache.maven.plugin.Mojoorg.jpackage:xml2spec.mojo:1.0-SNAPSHOT:xml2spec.mojo.
> >
> > Any idea what this means?
> >
> > The test I'm running looks like this:
> >
> >     public void testMojoLookup() throws Exception {
> >             File pluginXml = new File(getBasedir(),
> >                             "src/test/resources/unit/testing/pom.xml");
> >             JPackageMojo mojo = (JPackageMojo)
> > lookupMojo("xml2spec.mojo",
> >                             pluginXml);
> >             assertNotNull(mojo);
> >     }
> >
> > And the groupId for the mojo
> > is 
> >
> > org.jpackage
> >
> > My pom.xml file that I'm loading in the test code
> > looks like this:
> >
> > <project xmlns="http://maven.apache.org/POM/4.0.0";
> > 
>
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> > 
>
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> > http://maven.apache.org/maven-v4_0_0.xsd";>
> >
> >     <build>
> >
> >             <plugins>
> >
> >                     <plugin>
> >
> >                             <groupId>org.jpackage</groupId>
> >
> >                             <artifactId>xml2spec.mojo</artifactId>
> >
> >                             <version>1.0-SNAPSHOT</version>
> >                             <configuration>
> >                             </configuration>
> >
> >                             <executions>
> >
> >                                     <execution>
> >
> >                                             <id>generate</id>
> >
> >                                             <goals>
> >
> >                                                     <goal>generate</goal>
> >
> >                                             </goals>
> >
> >                                     </execution>
> >
> >                             </executions>
> >
> >                     </plugin>
> >
> >             </plugins>
> >
> >     </build>
> >
> > </project>
> >
> >
> > Thanks,
> > - Ole
> >
> >
> >  
> >
>
____________________________________________________________________________________
> > Need a quick answer? Get one in minutes from
> people who know.
> > Ask your question on www.Answers.yahoo.com
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> >
> >   
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 



 
____________________________________________________________________________________
Cheap talk?
Check out Yahoo! Messenger's low PC-to-Phone call rates.
http://voice.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to