Use ".." to walking up the source tree instead of basedir.
-D
On 4/29/06, Anatol Pomozov <[EMAIL PROTECTED]> wrote:
Hi.
I am trying to configure jalopy plugin for maven2. I have single jalopy
configuration file that will be used in my project for all submodules.
I would like to store jalopy in VCS (it means on filesystem not on HTTP
server)
Jalopy configuration stored in root project
${root}/src/main/resources/jalopy.xml
Now I need to tell jalopy plugin where this configuration file located. I
am
trying to configure plugin in following way
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jalopy-maven-plugin</artifactId>
<version>1.0-SNAPSHOT</version>
<configuration>
<convention>${basedir}/src/main/resources/jalopy.xml</convention>
</configuration>
</plugin>
</plugins>
</build>
But it does not work when I try to run jalopy plugin from submodule,
because
${basedir} calculated relatively to submodule directory.
So there is a question. Is any way to get path relatively root project??
(I
have 3 layer in POM hierarchy rootPom->applicationPom->submodulePom)
Thanks for your help.
--
anatol (http://pomozov.info)