You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Jan Bernhardt <jb...@talend.com> on 2011/12/15 15:36:55 UTC
${project.parent.basedir} not working inside
Hello,
I can not figer out, how to get this working...
I would like to refer a config-file resource from a parent pom directory, but when I insert this code to my child pom file:
<build>
<resources>
<resource>
<directory>${project.basedir}/src/main/resources</directory>
<filtering>true</filtering>
</resource>
<resource>
<directory>${project.parent.basedir}/src/main/config</directory>
<filtering>true</filtering>
</resource>
</resources>
...
</build>
I get the following error message
[INFO] skip non existing resourceDirectory C:\Users\myname\workspace\parent\child\${project.parent.basedir}\src\main\config
For some reason I do not know, this property is not replaced with the expected value. Any ideas?
Kind regards
Jan
Re: ${project.parent.basedir} not working inside
Posted by Wayne Fay <wa...@gmail.com>.
> [INFO] skip non existing resourceDirectory
> C:\Users\myname\workspace\parent\child\${project.parent.basedir}\src\main\config
>
> For some reason I do not know, this property is not replaced with the
> expected value. Any ideas?
Yea, don't do this. If you need a resource from one project to use in
another, use the remote-resources plugin or dependency plugin w/unpack
etc.
Wayne
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org