You can bind the MavenProject to your mojo through the ${project}
expression.
But you can also bind the ${project.build.resources} expression to access
the list of resources directories.Jeff MAURY On Wed, Nov 23, 2011 at 5:53 PM, krwell <[email protected]> wrote: > I am developing an in-house mojo to be used across multiple projects. All > of > our in-house projects are built off a similar framework that requires an > application.xml file. My problem is that mojo I am creating cannot find > the > application.xml file in the calling project. In the calling project the > file is located in src/main/resources and the mojo is being called in the > test phase to perform test setup activities. > > So my question is, how do I have the mojo access the file from the calling > project? > > -- > View this message in context: > http://maven.40175.n5.nabble.com/Mojo-configuration-file-tp5017276p5017276.html > Sent from the Maven - Users mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > -- "Legacy code" often differs from its suggested alternative by actually working and scaling. - Bjarne Stroustrup http://www.jeffmaury.com http://riadiscuss.jeffmaury.com http://www.twitter.com/jeffmaury
