The properties are not expanded when sent to the repository because if they were then it would break inheritance when projects used that pom from the repo. There would no longer be any properties for people to inherit and override.
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, April 14, 2008 3:17 PM To: [email protected] Subject: POM variables not expanded in resulting poms I am trying to set the version of my projects using a property defined on the maven command line. Please see below for examples. The resulting .pom installed in the repository still contains the reference to my variable 'productVersion'. Should not the variable reference be expanded to its value? Many thanks Alessandro [ sample command line option ] mvn -DproductVersion=TEST install [ sample pom ] <project xmlns=http://maven.apache.org/POM/4.0.0 ... <artifactId>com.sungard.common.utils</artifactId> <packaging>jar</packaging> <version>${productVersion}</version> <name>SunGard Common Utils</name> ... [ resulting pom installed in the repository as com.sungard.common.utils-TEST.pom ] <project xmlns=http://maven.apache.org/POM/4.0.0 ... <artifactId>com.sungard.common.utils</artifactId> <packaging>jar</packaging> <version>${productVersion}</version> <------------------- NOT EXPANDED !!!! <name>SunGard Common Utils</name> ... --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
