IIRC, you can either extend Abstract or implement Mojo.


Jimisola Laursen wrote:
Hi!

I have some problems with the the expression attribute to the parameter tag.

Are @parameter tags only processed when they exist in a Mojo (extends
AbstractMojo)?

My mojo (MyMojo) has a bean (MyBean). MyCfgBean has a String instance
variable outputFilename that I want to populate with a default value using
expression.

MyCfgBean: /**
     * @parameter
expression="${project.build.outputDirectory}/generated-resources/${project.artifactId}-${project.version}-java-system-properties.properties"
     */
    private String outputFilename;

    + getters and setters


It doesn't look as if the expression is processed at all. Because, if I
remove the setter Maven doesn't complain but if I add a String variable with
an expression and no setter directly in MyMojo then Maven complains about
there not being a setter.

Am I trying to do something that isn't possible? If so, have this
enhancement been considered? Is there an issue?

Regards,
Jimisola

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to