You're mixing apples and oranges here. "mvn compile" is executing all phases
up to the "compile" build lifecycle phase (which have goals attached to some
of those phases). "mvn hello:sayhi" or "mvn cristal:build" is executing a
specific goal, not a phase.

http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html

Eric

On 5/25/06, cristal <[EMAIL PROTECTED]> wrote:


Hi, I had a test mojo plugin which I tried to attach it to the compile
phase
of the lifecycle. I did all these following the guide at this link:

http://maven.apache.org/guides/plugin/guide-java-plugin-development.html

So, I was able to run the command "mvn compile" - I can see the sample
hello:sayhi plugin got executed at compile phase. However, I am wondering
if
there is a way to trigger the compile by simply typing "mvn hello:sayhi"
so
that one day I can rename the goal from hello:sayhi to "cristal:build" to
have my project compiled, instead of typing "mvn compile".

Basically this is what we had in maven1 but maven2 doesn't seem to do it.

Thanks for any tips on this.

--
View this message in context:
http://www.nabble.com/attach+mojo+plugin+to+the+build+lifecycle-t1682566.html#a4563639
Sent from the Maven - Users forum at Nabble.com.


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


Reply via email to