maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lucas Persson <>
Subject Re: Using settings properties
Date Wed, 19 Jan 2011 12:06:54 GMT

At my company we use properties in the global setting.xml which the 
build is dependent. This make sense since our build is strictly within 
our company and everyone uses the same maven installation
For instance:
(in setting.xml)

(in pom.xml)
<name>SDP Repository</name>

I suppose that you could use environment variable, like:
<name>Service Delivery Platform Site</name>

I think you might want to check the schema for setting.xml to see where 
you can add the element <properties>.


On 01/19/2011 12:43 PM, Michael Kelleher wrote:
> Thanks for the advice.  You could have proposed a solution instead of just a
> criticism.
> Sent from my iPhone
> On Jan 19, 2011, at 4:02 AM, Anders Hammar<>  wrote:
> Very bad practice! The repositories defined in the pom MUST be possible for
> other people (other projects depending on your artifacts) to resolve. Using
> properties defined in settings.xml makes that impossible.
> /Anders
> On Wed, Jan 19, 2011 at 05:14, mjk<>  wrote:
>> Is it possible to use properties defined in settings.xml within
>> <repositories />  and<distributionManagement />?
>> Other properties seem to get resolved during a build, however when I do a
>> deploy, maven uses the variable name with the leading ${ and trailing },
>> instead of the resolved variable value.
>> Any ideas?

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message