Trevor

Its the culture I think your missing. Yes you can call goals directly
but this isn't something you should be needing very often. It isn't the
"Maven way" as they say nor does it follow "Convention over
configuration".  If you find yourself calling a plugin goal directly all
the time you should be asking yourself why.

Good luck.

---
Todd Thiessen
 

> -----Original Message-----
> From: Trevor Harmon [mailto:tre...@vocaro.com] 
> Sent: Monday, December 22, 2008 1:49 PM
> To: Maven Users List
> Subject: Re: Are Maven profiles like Ant targets?
> 
> On Dec 22, 2008, at 12:38 PM, Todd Thiessen wrote:
> 
> > I think the reason why you are having so much trouble with Maven is 
> > that you want to "configure" it to do what you want by giving it a 
> > specific command.
> 
> But actually, I can give Maven a specific command to do what 
> I want ... as long as a plugin exists for it. Take for 
> example DocBook.  
> There's a plugin for that, so I can invoke one of its goals 
> explicitly, or at the same time I can have it run 
> automatically by binding it to a phase. That's exactly the 
> kind of flexibility I need.
> 
> For install4j, however, there's no plugin, so I have to 
> emulate one with AntRun. That's when my problems start, since 
> there's no way to target a particular AntRun configuration 
> without using profiles.
> 
> So I think the lesson here is that I should try to avoid 
> AntRun and Exec, and use a specific plugin for the task, even 
> if that means writing my own.
> 
> Trevor
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to