"Ludwig Magnusson" <[email protected]> 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 parameter > 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. http://maven.apache.org/guides/plugin/guide-java-plugin-development.html For example (from an arbitrary maven plugin) /** * The directory where the source files reside. * * @parameter */ private File sourceDir; Thomas --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
