You most likely haven't configured a dependency to the
org.apache.maven:maven-plugin-api library.

What you might want to try is to checkout an existing (working) Maven
plugin and verify that that works in your Eclipse environment first.

/Anders

On Mon, Jun 18, 2012 at 4:54 AM, hujirong <[email protected]> wrote:
> Hi
>
> Is there a tutorial on how to develop my own Maven plugin within eclipse
> with m2e installed?
>
> I installed Indigo and can use m2e to run Maven project inside the eclipse.
> Now I want to use this environment to write my own Maven plugins. What's do
> I need to do? I am not a regular java developer
> anymore. When I try to follow this sample,
> http://maven.apache.org/guides/plugin/guide-java-plugin-development.html,
> and this eclipse tutorial
> http://www.vogella.com/articles/Eclipse/article.html, I
> got all compile errors say can't resolve import
> org.apache.maven.plugin.AbstractMojo;
>
> Thanks
> Jirong
>
> --
> View this message in context: 
> http://maven.40175.n5.nabble.com/How-to-develop-Maven-plugin-in-eclipse-with-m2e-tp5711440.html
> Sent from the Maven - Users mailing list archive at Nabble.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]

Reply via email to