Hello,

I would like to use an environment variable to define the parent project. So I wrote that it's version is
<parent>
  ...
<version>${env.VERSION_NUMBER}</version>
</parent>

The environment variable is set, when I write echo $VERSION_NUMBER in the console, I get its value.

According to the POM Reference manual: "Their values are accessible anywhere within a POM by using the notation ${X}, where X is the property. "
http://maven.apache.org/pom.html#Properties

So obviously, it should work. However, when I start building the project, it tries to download com.xxx.MyProject.${env.VERSION_NUMBER}.pom from the repository. It did not expand the environment variable!

Is this a Maven bug perhaps? I'm using version 2.2.1.

Thanks, Csaba





---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to