You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by foxcoll <fo...@myway.com> on 2006/09/05 02:49:56 UTC
module.basedir
I have been doing some searching on this forum, and since there seems to be
no way of using a root directory, is there a way to use the basedir of a
module, or a specific pom (or any other environmental variables for that
matter)?
Thanks
Fox
--
View this message in context: http://www.nabble.com/module.basedir-tf2218159.html#a6144307
Sent from the Maven - Users forum at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: module.basedir
Posted by foxcoll <fo...@myway.com>.
What I am trying to do is get a single directory to 'mvn site-deploy' into,
for my top level pom, and all of its modules without hard coding a path (or
url).
Is there a way to use just one target directory then?
here is an example:
toplevel
module1
module2
pom.xml <-- main pom.xml
site <-- directory I would like to 'mvn site-deploy' into
but putting this in my top level pom.xml dosen't seem to work:
. . .
<distributionManagement>
<site>
<id>test.site</id>
<name>Full Website</name>
<url>file:{basedir}\site\${project.version}\</url>
</site>
</distributionManagement>
. . .
So I what I was asking is, if there is something like a ${toplevel.basedir}
or even a ${module1.basedir}?
Thanks - I hope I explained myself better this time;
Fox
jiangshachina wrote:
>
> Sorry, I can't understand you really.
> Why do you want to use the basedir?
> What's your target? For example...
>
>
> foxcoll wrote:
>>
>> I have been doing some searching on this forum, and since there seems to
>> be no way of using a root directory, is there a way to use the basedir of
>> a module, or a specific pom (or any other environmental variables for
>> that matter)?
>>
>> Thanks
>> Fox
>>
>
>
--
View this message in context: http://www.nabble.com/module.basedir-tf2218159.html#a6145075
Sent from the Maven - Users forum at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: module.basedir
Posted by jiangshachina <ji...@gmail.com>.
Sorry, I can't understand you really.
Why do you want to use the basedir?
What's your target? For example...
foxcoll wrote:
>
> I have been doing some searching on this forum, and since there seems to
> be no way of using a root directory, is there a way to use the basedir of
> a module, or a specific pom (or any other environmental variables for that
> matter)?
>
> Thanks
> Fox
>
--
View this message in context: http://www.nabble.com/module.basedir-tf2218159.html#a6144506
Sent from the Maven - Users forum at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org