Hi,

would you mind showing an example of how to achieve this? All that's in the ../src/main/resources dir is a single file that's being filtered with properties relevant for each module (rather than having a copy of the same file in each module).

On 26/04/2008, at 3:22 PM, Wayne Fay wrote:

This is an anti-pattern in Maven usage.

Modules should be self-contained. If you must include content from
another module, then you should depend on the Jar just like any other
artifact and use various plugins to unpack the files you need into a
specific area in your project etc. You should not use ".." or
hard-code paths etc to access content which belongs to other modules
(parents or children).

Wayne

On 4/25/08, Lachlan Deck <[EMAIL PROTECTED]> wrote:
Hi there,

If I have the following, all's fine... i.e., the resources are filtered and
found in the build output.
<resource>
      <targetPath>Resources</targetPath>
      <filtering>true</filtering>
      <directory>../src/main/resources</directory>
</resource>

However the following produces no results...
<resource>
      <targetPath>Resources</targetPath>
      <filtering>true</filtering>

<directory>${project.parent.basedir}/src/main/resources</directory>
</resource>

What properties are available for referencing the parent?
Thanks.

with regards,
--

Lachlan Deck




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


with regards,
--

Lachlan Deck




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to