Thanks Wayne,

An example of how to do this is found here:
http://blogs.sonatype.com/brian/2008/04/17/1208485500000.html

On 26/04/2008, at 4:44 PM, Wayne Fay wrote:

I can't solve your specific problem for you, but I would generally
expect that dependency:unpack would be involved in most solutions:
http://maven.apache.org/plugins/maven-dependency-plugin/unpack-mojo.html
http://maven.apache.org/plugins/maven-dependency-plugin/usage.html

You are welcome to continue using ".." etc. But if you expect your
code to compile as a stand-alone module (eg in a continuous
integration server) then you will need to limit your modules to their
own source code only, plus anything you're bringing in via
dependencies etc.

Wayne

On 4/26/08, Lachlan Deck <[EMAIL PROTECTED]> wrote:
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]



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