Hi,
 
I've defined my own plugin (with the maven-plugin-tools-ant plugin) with it's 
own lifecycle and artifact handler. when I now try to use the plugin in another 
project, it works fine, but I'm getting this debug warning - and I have no 
clue, what it is about - can it be fixed, and if yes, how?
 
[DEBUG] Error looking up lifecycle mapping to retrieve optional mojos. 
Lifecycle ID: default. Error:
 Component descriptor cannot be found in the component repository: 
org.apache.maven.lifecycle.mappin
g.LifecycleMappingtigerstripe-application.
org.codehaus.plexus.component.repository.exception.ComponentLookupException: 
Component descriptor ca
nnot be found in the component repository: 
org.apache.maven.lifecycle.mapping.LifecycleMappingtigers
tripe-application.
        at 
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:323)
        at 
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:440)
        at org.apache.maven.execution.MavenSession.lookup(MavenSession.java:120)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.findOptionalMojosForLifecycle(Default
LifecycleExecutor.java:1106)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindLifecycleForPackaging(DefaultLife
cycleExecutor.java:994)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycleMappings(DefaultLif
ecycleExecutor.java:975)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.
java:453)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultL
ifecycleExecutor.java:306)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleE
xecutor.java:273)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java
:140)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
 
My plugins component.xml:
 <component-set>
        <components>
                <component>
                        
<role>org.apache.maven.lifecycle.mapping.LifecycleMapping</role>
                        <role-hint>tigerstripe-application</role-hint>
                        
<implementation>org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping</implementation>
                        <configuration>
                                <phases>
                                        
<generate-sources>ossj.jsr264:maven-tigerstripe-plugin:tigerstripe-generate</generate-sources>
                                        
<package>org.apache.maven.plugins:maven-source-plugin:jar</package>
                                        
<install>org.apache.maven.plugins:maven-install-plugin:install</install>
                                </phases>
                        </configuration>
                </component>
                <component>
                        
<role>org.apache.maven.artifact.handler.ArtifactHandler</role>
                        <role-hint>tigerstripe-application</role-hint>
                        
<implementation>org.apache.maven.artifact.handler.DefaultArtifactHandler</implementation>
                        <configuration>
                                <extension>jar</extension>
                                <type>tigerstripe-application</type>
                        </configuration>
                </component>
        </components>
</component-set>

My plugins POM:
<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";>
  <modelVersion>4.0.0</modelVersion>
  <groupId>ossj.jsr264</groupId>
  <artifactId>maven-tigerstripe-plugin</artifactId>
  <packaging>maven-plugin</packaging>
  <name>Maven Wrapper for ant build script to use Tigerstripe Workbench</name>
  <version>1.0</version>
  <url>http://maven.apache.org</url>
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-plugin-plugin</artifactId>
        <dependencies>
          <dependency>
            <groupId>org.apache.maven</groupId>
            <artifactId>maven-plugin-tools-ant</artifactId>
            <version>2.0.2</version>
            <scope>runtime</scope>
          </dependency>
        </dependencies>
        <configuration>
          <goalPrefix>tigerstripe</goalPrefix>
        </configuration>
      </plugin>
    </plugins>
  </build>
  <dependencies>
        <dependency>
                <groupId>org.apache.maven</groupId>
                <artifactId>maven-script-ant</artifactId>
                <version>2.0.2</version>
        </dependency>
        <dependency>
                <groupId>ant</groupId>
                <artifactId>ant</artifactId>
                <version>1.6.5</version>
        </dependency>
  </dependencies>
</project>

And the POM of the depending project:
<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";>
        <parent>
                <groupId>ossj.jsr264</groupId>
                <artifactId>oss_om_distribution</artifactId>
                <version>0.8-PUBLIC_DRAFT</version>
        </parent>
        <modelVersion>4.0.0</modelVersion>
        <groupId>ossj.jsr264</groupId>
        <artifactId>oss_om_spec_model</artifactId>
        <version>0.8-PUBLIC_DRAFT</version>
        <packaging>tigerstripe-application</packaging>
        <build>
                <sourceDirectory>target/tigerstripe.gen</sourceDirectory>
                <plugins>
                        <plugin>
                                <groupId>ossj.jsr264</groupId>
                                
<artifactId>maven-tigerstripe-plugin</artifactId>
                                <version>1.0</version>
                                <extensions>true</extensions>
                        </plugin>
                </plugins>
        </build>
</project>
 
Andreas Ebbert-Karroum 
  Senior Software Design Engineer - Nokia Networks Services / Middleware 
  phone: +49-211-94123928, fax: +49-211-94123838 
  Heltorfer Straße 1, 40472 Düsseldorf, Germany 


________________________________

This message is confidential. If you have received this message in error, 
please delete it from your system. You should not copy it for any purpose, or 
disclose its contents to any other person. Internet communications are not 
secure and therefore Nokia GmbH does not accept legal responsibility for the 
contents of this message as it has been transmitted over a public network. 
Thank you. 

Nokia GmbH, Nokia Networks is a German Company. Further information about the 
Company is available from its principal offices at Heltorferstrasse 1, D-40472, 
Düsseldorf, Germany and from the website at http://www.nokia.com/ 
________________________________


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

Reply via email to