You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Rahamim, Zvi (Zvi)" <zr...@avaya.com> on 2007/02/04 16:18:46 UTC
Properties for pom.xml
Hi,
Is there a way to tell my pom.xml to load properties from a property
file that resides in a remote repository?
Example for such property file is com/myapp/myprop/A.properties.
Thanks!
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: Properties for pom.xml
Posted by franz see <fr...@gmail.com>.
Good day to you, Rahamim,
Although I haven't tried it, I am guessing yes with the help of Maven Remote
Resources plugin.
To make your properties file available in the remote repository, pack that
properties file into a binary and deploy it in your remote repository.
And to be able to use that properties file for filtering, retrieve it in
your other maven projects by using the maven remote resources plugin ( see
[1] on how to use it ), and set the location of the filter files ( see [2]
).
Cheers,
Franz
[1] http://maven.apache.org/plugins/maven-remote-resources-plugin/usage.html
[2]
http://maven.apache.org/plugins/maven-resources-plugin/examples/filter.html
Rahamim, Zvi (Zvi) wrote:
>
> Thank for your answer,
> I want to clarify my motivation:
> I want that all my pom.xml files (and there are many) have the
> properties and values in a property file that resides on my repository.
> I only need to load them into the pom.xml so that it could see them,
> Is there a way to do so?
> Thanks again!
> Zvi.
>
> -----Original Message-----
> From: franz see [mailto:franz.see@gmail.com]
> Sent: Sunday, February 04, 2007 5:35 PM
> To: users@maven.apache.org
> Subject: Re: Properties for pom.xml
>
>
> Good day,
>
> Pardon, my answer was incomplete :-)
>
> You may want to use [1] to get the resource, and use [2] to declare that
> file as a filter file ( a file containing properties ).
>
> Cheers,
> Franz
>
> [1] http://maven.apache.org/plugins/maven-remote-resources-plugin/
> [2]
> http://maven.apache.org/plugins/maven-resources-plugin/examples/filter.h
> tml
>
>
> franz see wrote:
>>
>> Good day to you, Rahamin,
>>
>> You may want to take a look at [1].
>>
>> Cheers,
>> Franz
>>
>> [1] http://maven.apache.org/plugins/maven-remote-resources-plugin/
>>
>>
>> Rahamim, Zvi (Zvi) wrote:
>>>
>>> Hi,
>>> Is there a way to tell my pom.xml to load properties from a property
>>> file that resides in a remote repository?
>>> Example for such property file is com/myapp/myprop/A.properties.
>>> Thanks!
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: users-help@maven.apache.org
>>>
>>>
>>>
>>
>>
>
> --
> View this message in context:
> http://www.nabble.com/POM-Inheritance-tf3164691s177.html#a8793783
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/POM-Inheritance-tf3164691s177.html#a8819647
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: Properties for pom.xml
Posted by "Rahamim, Zvi (Zvi)" <zr...@avaya.com>.
Thank for your answer,
I want to clarify my motivation:
I want that all my pom.xml files (and there are many) have the
properties and values in a property file that resides on my repository.
I only need to load them into the pom.xml so that it could see them,
Is there a way to do so?
Thanks again!
Zvi.
-----Original Message-----
From: franz see [mailto:franz.see@gmail.com]
Sent: Sunday, February 04, 2007 5:35 PM
To: users@maven.apache.org
Subject: Re: Properties for pom.xml
Good day,
Pardon, my answer was incomplete :-)
You may want to use [1] to get the resource, and use [2] to declare that
file as a filter file ( a file containing properties ).
Cheers,
Franz
[1] http://maven.apache.org/plugins/maven-remote-resources-plugin/
[2]
http://maven.apache.org/plugins/maven-resources-plugin/examples/filter.h
tml
franz see wrote:
>
> Good day to you, Rahamin,
>
> You may want to take a look at [1].
>
> Cheers,
> Franz
>
> [1] http://maven.apache.org/plugins/maven-remote-resources-plugin/
>
>
> Rahamim, Zvi (Zvi) wrote:
>>
>> Hi,
>> Is there a way to tell my pom.xml to load properties from a property
>> file that resides in a remote repository?
>> Example for such property file is com/myapp/myprop/A.properties.
>> Thanks!
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>>
>
>
--
View this message in context:
http://www.nabble.com/POM-Inheritance-tf3164691s177.html#a8793783
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Properties for pom.xml
Posted by franz see <fr...@gmail.com>.
Good day,
Pardon, my answer was incomplete :-)
You may want to use [1] to get the resource, and use [2] to declare that
file as a filter file ( a file containing properties ).
Cheers,
Franz
[1] http://maven.apache.org/plugins/maven-remote-resources-plugin/
[2]
http://maven.apache.org/plugins/maven-resources-plugin/examples/filter.html
franz see wrote:
>
> Good day to you, Rahamin,
>
> You may want to take a look at [1].
>
> Cheers,
> Franz
>
> [1] http://maven.apache.org/plugins/maven-remote-resources-plugin/
>
>
> Rahamim, Zvi (Zvi) wrote:
>>
>> Hi,
>> Is there a way to tell my pom.xml to load properties from a property
>> file that resides in a remote repository?
>> Example for such property file is com/myapp/myprop/A.properties.
>> Thanks!
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>>
>
>
--
View this message in context: http://www.nabble.com/POM-Inheritance-tf3164691s177.html#a8793783
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Properties for pom.xml
Posted by franz see <fr...@gmail.com>.
Good day to you, Rahamin,
You may want to take a look at [1].
Cheers,
Franz
[1] http://maven.apache.org/plugins/maven-remote-resources-plugin/
Rahamim, Zvi (Zvi) wrote:
>
> Hi,
> Is there a way to tell my pom.xml to load properties from a property
> file that resides in a remote repository?
> Example for such property file is com/myapp/myprop/A.properties.
> Thanks!
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/POM-Inheritance-tf3164691s177.html#a8793768
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org