db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Fischer <fisc...@seitenbau.net>
Subject RE: Adding configuration paramater to maven plugin
Date Sun, 08 Nov 2009 21:44:41 GMT
"Ludwig Magnusson" <ludwig@itcatapult.com> schrieb am 08.11.2009 20:59:24:
> I am trying to add an extra parameter to the torque:om goal in the maven
> plugin. Everything works except one minor detail. I can't read the
> from my projects pom.xml.
> ...

The important thing is the @parameter comment above the private field.
This tells the maven plugin builder to read the parameter from the pom and
put it there. Setters are never called, the content is directly into the
private field (I do not like that, but no way to change it).
See e.g.

For example (from an arbitrary maven plugin)
     * The directory where the source files reside.
     * @parameter
    private File sourceDir;


To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org

View raw message