RE: Mojo accessing project properties

2007-02-22 Thread David Jackman
: 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

Re: Mojo accessing project properties

2007-02-22 Thread Marcos Silva Pereira
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

RE: Mojo accessing project properties

2007-02-22 Thread David Jackman
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

Re: Mojo accessing project properties

2007-02-22 Thread Jason van Zyl
- 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

RE: Mojo accessing project properties

2007-02-22 Thread David Jackman
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

Re: Mojo accessing project properties

2007-02-21 Thread Marcos Silva Pereira
:[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

RE: Mojo accessing project properties

2007-02-17 Thread David Jackman
); } } 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

Re: Mojo accessing project properties

2007-02-16 Thread Jason van Zyl
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