You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Lance Java <la...@googlemail.com> on 2009/01/22 14:48:43 UTC

Read pom properties from a custom location

I'd like to read POM properties from a custom file if it exists.
ie: i'd like to read from pom.properties and pom-${user.name}.properties

I can't see any examples on the web of how to do this.

Cheers,
Lance.

Re: Read pom properties from a custom location

Posted by Wayne Fay <wa...@gmail.com>.
> I'd like to read POM properties from a custom file if it exists.
> ie: i'd like to read from pom.properties and pom-${user.name}.properties
>
> I can't see any examples on the web of how to do this.

Maven is not Ant. Properties in Maven belong in the pom.xml file.
There are no examples of this because it is not supported. There is a
plugin (properties-maven-plugin, I think it is called) that may
support some of this functionality.

Wayne

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org