maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff MAURY <jeffma...@jeffmaury.com>
Subject Re: Mojo configuration file
Date Wed, 23 Nov 2011 17:04:02 GMT
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 <krwell@hotmail.com> 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: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


-- 
"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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message