Running a report mojo (extends AbstractMojo and implements MavenReport)

I inject build:
    /**
     * @parameter expression="${project.build}"
     * @required
     * @readonly
     */
    protected Build build;

At some point I get build directory:
build.getDirectory()

But is returning "${project.basedir}/target"

O maven 2.0.9 was returning c:/blabalba/bla/myproject/target


VELO


On Wed, Jul 23, 2008 at 9:48 PM, Dan Tran <[EMAIL PROTECTED]> wrote:

> in 2.0.9, i used to beable to do this
>
>   <execution>
>      <id>${some.custom.var}</id>
>  ....
>
> Not any more with 2.0.10-RC2
>
> here is the error:
>
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] One or more required plugin parameters are invalid/missing for
> 'appassemb
> ler:assemble'
>
> [0] Inside the definition for plugin 'appassembler-maven-plugin' specify
> the fol
> lowing:
>
> <configuration>
>  ...
>  <programs>VALUE</programs>
> </configuration>.
>
>
> Is it legal?
>
> Any how, it is not a big deal, i can fix my build to deal with that.
>
> -D
>
> On Wed, Jul 23, 2008 at 2:03 PM, John Casey <[EMAIL PROTECTED]>
> wrote:
> > Hello everyone,
> >
> > Okay, I think we've got all of the problems with RC1 sorted out, and the
> > integration tests are finally passing again.
> >
> > So, without further ado, let's get RC2 out there for testing! You can
> find
> > the distribution here:
> >
> > http://people.apache.org/~jdcasey/stage/apache-maven/2.0.10-RC2<http://people.apache.org/%7Ejdcasey/stage/apache-maven/2.0.10-RC2>
> >
> > (In fact, the tarballs/zipfile are here:
> >
> http://people.apache.org/~jdcasey/stage/apache-maven/2.0.10-RC2/org/apache/maven/apache-maven/2.0.10-RC2/<http://people.apache.org/%7Ejdcasey/stage/apache-maven/2.0.10-RC2/org/apache/maven/apache-maven/2.0.10-RC2/>
> )
> >
> > Happy testing! Again, please let me know if you find any problems, and
> I'll
> > get them fixed ASAP.
> >
> > Thanks,
> >
> > -john
> >
> > --
> > John Casey
> > Developer, PMC Member - Apache Maven (http://maven.apache.org)
> > Blog: http://www.ejlife.net/blogs/buildchimp/
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to