Hi,
I have few properties defined in my settings.xml. I’m refering it in my
POM’s while compiling my code. However when I does the “mvn install” it
installs the artifact properly into my repository and it also installs the
POM into it. However the resulting POM in my repository is not having the
value of the property instead it just has the key that I have declared in
the POM.
Ideally I expect the property to be replaced with the values in the POM
which gets installed into my local repository.
Is this is known issue in maven? I’m using maven 2.2.1 version. If some one
worked around this issue please let me know what should I do here to get rid
of this blocker issue.
Example:
My settings.xml will look like below,
.....
.....
<profile>
<id>global-properties</id>
<properties>
<code.version>main</code.version>
.....
.....
</profile>
.....
.....
One my POM will look like below,
.....
.....
<groupId>MyGroup</groupId>
<artifactId>MyArtifact</artifactId>
<version>${code.version}</version>
.....
.....
Thanks,
--
View this message in context:
http://old.nabble.com/Maven-and-Properties-tp27740774p27740774.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]