You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Morgovsky, Alexander (US - Glen Mills)" <am...@deloitte.com> on 2006/10/31 16:13:54 UTC

Using properties in a parent reference causes problems

I defined some properties in my profile in my settings.xml file.  These
properties get resolved correctly unless they are used in a parent
reference.  Is this is a bug?

<profiles>
    <profile>
      <activation>
        <activeByDefault>true</activeByDefault>
      </activation>
      <properties>
        <app_version>1.0.0</app_version>
      </properties>
    </profile>
</profiles>

Works:

<dependency>
	<artifactId>a</artifactId>
	<groupId>a</groupId>
	<version>${app_version}</version>
</dependency>

Does not work:

<parent>
	<artifactId>a</artifactId>
	<groupId>a</groupId>
	<version>${app_version}</version>
</parent>

Please help. 


This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law.  If you are not the intended recipient, you should delete this message. 


Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. [v.E.1]