(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.
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
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 {
&
I'm create a new ProfileActivator like:
@Component(role = ProfileActivator.class, hint = "ldap")
public class LdapQueryProfileActivator
implements ProfileActivator {
// ...
public LdapQueryProfileActivator() {
System.err.println("xxx");