: Wednesday, February 21, 2007 11:02 PM
To: Maven Users List
Subject: Re: Mojo accessing project properties
Hi, you need annotate you mojo with @requiresProject tag:
/**
* Verifies that the dependencies of the project are official.
*
* @goal verify
*
* @phase validate
* @requiresProject
Hello, David
Adding @requiresProject does nothing.
What about try inject the project object instead project.properties?
/**
* @parameter default-value=${project}
* @required
* @readonly
*/
private MavenProject project;
I know that it is not a neat solution, but probably will works fine for
accessing project properties
Hello, David
Adding @requiresProject does nothing.
What about try inject the project object instead project.properties?
/**
* @parameter default-value=${project}
* @required
* @readonly
*/
private MavenProject project;
I know that it is not a neat solution
-
From: Marcos Silva Pereira [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 22, 2007 11:38 AM
To: Maven Users List
Subject: Re: Mojo accessing project properties
Hello, David
Adding @requiresProject does nothing.
What about try inject the project object instead project.properties
Subject: Re: Mojo accessing project properties
On 22 Feb 07, at 3:11 PM 22 Feb 07, David Jackman wrote:
That works great--the perfect solution for right now as I wait until
this fix is available with Maven 2.0.6.
Once in JIRA you can watch it and use a snapshot build once it's fixed.
Jason
:[EMAIL PROTECTED]
Sent: Fri 2/16/2007 8:38 PM
To: Maven Users List
Subject: Re: Mojo accessing project properties
What's the rest of your mojo look like?
Are you using @execute phase=something?
Jason.
On 16 Feb 07, at 4:43 PM 16 Feb 07, David Jackman wrote:
I'm trying to write a mojo
);
}
}
From: Jason van Zyl [mailto:[EMAIL PROTECTED]
Sent: Fri 2/16/2007 8:38 PM
To: Maven Users List
Subject: Re: Mojo accessing project properties
What's the rest of your mojo look like?
Are you using @execute phase=something?
Jason.
On 16 Feb 07, at 4:43 PM 16 Feb 07, David Jackman
What's the rest of your mojo look like?
Are you using @execute phase=something?
Jason.
On 16 Feb 07, at 4:43 PM 16 Feb 07, David Jackman wrote:
I'm trying to write a mojo that accesses the properties section of the
project pom. I declared a member variable like this
/**
* Project