Fw: Custom type converter for Mojo configuration?

2012-04-18 Thread Xie Jilei
(From: http://stackoverflow.com/questions/10188534/) I need to use custom type, e.g., `LunarDate`, in my Mojo object: class MyMojo extends AbstractMojo { /** @parameter */ LunarDate lunarDate; } And I want to configure the parameter in `` section in pom.xml.

context.getProjectDirectory() returns undeterminable null in ProfileActivator.

2011-01-20 Thread Xie Jilei
At last, I can get profile activator to work. However, it seems no rule when would context.getProjectDirectory() return non-null value. I have tried in a project with several modules, as:    project1/         module1/         module2/         module3/         module4/         module5/ Run `mvn

Re: How to add a custom ProfileActivator in Maven3?

2011-01-20 Thread Xie Jilei
else then tag? Lenik On Fri, Jan 21, 2011 at 1:40 PM, Xie Jilei wrote: > I'm create a new ProfileActivator like: > >    @Component(role = ProfileActivator.class, hint = "ldap") >    public class LdapQueryProfileActivator >            implements ProfileActivator { &

How to add a custom ProfileActivator in Maven3?

2011-01-20 Thread Xie Jilei
I'm create a new ProfileActivator like: @Component(role = ProfileActivator.class, hint = "ldap") public class LdapQueryProfileActivator implements ProfileActivator { // ... public LdapQueryProfileActivator() { System.err.println("xxx");