if my pom.xml looks something like: ...
<groupId>com.my.group.idi</groupId> <artifactId>my-plugin</artifactId> <version>1.0.11-SNAPSHOT</version> <executions> <execution> <goals> <goal>generate-pdf</goal> </goals> <phase>generate-sources</phase> </execution> </executions> <configuration> <includes>example.xml</includes> <canonicalUrlBase>http://docs.rackspace.com/foo/api/v.1.0</canonicalUrlBase> <feedbackEmail>bl...@blah.com</feedbackEmail> ... </configuration> ... My Mojo can get access to a particular parameter value via annotations, something like: /** * * @param * expression="${generate-pdf.feedbackEmail}" * default-value="" */ private String feedbackEmail; Plexus will then inject the parameter value at runtime even if the value for the parameter feedbackEmail gets overridden or is actually defined via a child pom.xml. I would like to know if there is a generic way to get all the key-value pairs for all parameters. Something like: /** * * @param * expression="${generate-pdf}" * */ private Map<String, String> allParameters; I basically need to process all parameters and pass the parameter key/value pairs to another method. It would be nice to not have to change the code every time a new parameter is added by some child pom.xml. Thanks ahead of time for your input. ---Thu -- View this message in context: http://maven.40175.n5.nabble.com/How-to-generically-get-all-parameters-in-a-Mojo-tp5492264p5492264.html Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org