I've taken a look at the source of the help:describe goal and it seems you need RequireProject.
http://svn.apache.org/viewvc/maven/plugins/tags/maven-help-plugin-2.1.1/src/main/java/org/apache/maven/plugins/help/DescribeMojo.java?view=markup With regards, Nick Stolwijk ~Java Developer~ IPROFS BV. Claus Sluterweg 125 2012 WS Haarlem http://www.iprofs.nl On Thu, Oct 21, 2010 at 1:08 AM, Phillip Hellewell <[email protected]> wrote: > How do I create a plugin that doesn't require a pom.xml? > > Even the hello world described on this page requires it: > http://maven.apache.org/guides/plugin/guide-java-plugin-development.html > > You get this error if you try to run it where no pom.xml is present. > [INFO] Cannot execute mojo: sayhi. It requires a project with an > existing pom.xml, but the build is not using one. > > Surely it must be possible. "mvn help:help" is an example of one that > it lets me run from anywhere. > > Thanks, > Phillip > > --------------------------------------------------------------------- > 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]
