You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by dmcgeown <dm...@acquisinc.com> on 2008/09/17 13:35:48 UTC
Parent POM properties not inherited
Hi, i've come across a problem which i driving me mad. My project is made up
of multiple modules which all inherit from a super pom. In this super pom i
have defined a few properties for version number of the individual modules.
When i run mvn install from the root dir (super pom) it goes thru all of the
modules perfectly and build with the correct version numbers. If I run the
mvn install command from one of the nested modules it can't find the version
properties defined in the super pom.
Is there a workaround for this problem? Is it possible to store you
properties in a properties file and load them within the pom? If i could do
that i could just refernce the properties file via a relative path in each
pom.
Thanks in advance.
Darragh
--
View this message in context: http://www.nabble.com/Parent-POM-properties-not-inherited-tp19529658p19529658.html
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: Parent POM properties not inherited
Posted by dmcgeown <dm...@acquisinc.com>.
Never mind, i figured out what the problem was.
dmcgeown wrote:
>
> Hi, i've come across a problem which i driving me mad. My project is made
> up of multiple modules which all inherit from a super pom. In this super
> pom i have defined a few properties for version number of the individual
> modules. When i run mvn install from the root dir (super pom) it goes thru
> all of the modules perfectly and build with the correct version numbers.
> If I run the mvn install command from one of the nested modules it can't
> find the version properties defined in the super pom.
>
> Is there a workaround for this problem? Is it possible to store you
> properties in a properties file and load them within the pom? If i could
> do that i could just refernce the properties file via a relative path in
> each pom.
>
> Thanks in advance.
>
> Darragh
>
--
View this message in context: http://www.nabble.com/Parent-POM-properties-not-inherited-tp19529658p19530925.html
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