2009/4/12 Grey <ray.rac...@gmail.com> > > OK > > Given: > > <project> > <modelVersion>4.0.0</modelVersion> > <groupId>examples</groupId> > <artifactId>my-app</artifactId> > <packaging>bundle</packaging> > <version>1.0-SNAPSHOT</version> > <build> > <plugins> > <plugin> > <groupId>org.apache.felix</groupId> > <artifactId>maven-bundle-plugin</artifactId> > <version>2.0.0</version> > <extensions>true</extensions> > </plugin> > </plugins> > </build> > </project> > > This will fail: > mvn help:describe -Dcmd=install > > I don't see why it should. With any number of other plugins that command > works fine. > FWIW, if the packaging element is removed, it works. >
I get that exception with any plugin that defines a custom packaging type (ie. not one of the core packaging types) for example: <project> <modelVersion>4.0.0</modelVersion> <groupId>examples</groupId> <artifactId>my-app</artifactId> <packaging>nbm</packaging> <version>1.0-SNAPSHOT</version> <build> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>nbm-maven-plugin</artifactId> <version>3.0</version> <extensions>true</extensions> </plugin> </plugins> </build> </project> produces: [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'help'. [INFO] ------------------------------------------------------------------------ [INFO] Building Unnamed - examples:my-app:nbm:1.0-SNAPSHOT [INFO] task-segment: [help:describe] (aggregator-style) [INFO] ------------------------------------------------------------------------ [INFO] [help:describe] [INFO] ------------------------------------------------------------------------ [ERROR] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] ComponentLookupException: Component descriptor cannot be found in the component repository: org.apache.maven.lifecycle.mapping.LifecycleMappingnbm. [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 3 seconds [INFO] Finished at: Sun Apr 12 09:36:49 SGT 2009 [INFO] Final Memory: 6M/11M [INFO] ------------------------------------------------------------------------ so it would appear to be a bug (or limitation) in the maven-help-plugin Grey wrote: > > > > OK, I thought I had semi-narrowed it down to the bundle plugin but now I > > see that is not the case. Its something I'm doing on my end. > > > > Need more research. > > > > > > -- > View this message in context: > http://www.nabble.com/Probblem-with-maven-bundle-plugin-%28%22Cannot-find-lifecycle-mapping-for--packaging%3A-%27bundle%22%29-tp22393056p23007075.html > Sent from the Apache Felix - Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@felix.apache.org > For additional commands, e-mail: users-h...@felix.apache.org > > -- Cheers, Stuart