Hi, my src/site/site.xml looks like this:
<project name="myproject-2.0.7-SNAPSHOT">
<body>
<links>
<item name="myproject" href="URL" />
<item name="2.0.7-SNAPSHOT" href="URL" />
</links>
<menu ref="reports" />
<menu ref="modules" />
</body>
</project>
I'd like it to use some variables, taken from my pom.xml file, like this:
<project name="${artifactId}-${version}">
<body>
<links>
<item name="${artifactId}" href="URL" />
<item name="${version}" href="URL" />
</links>
<menu ref="reports" />
<menu ref="modules" />
</body>
</project>
But of course it doesn't work. In the resulting page I get "${artifactId}"
instead of "myproject". Am I missing something, using a wrong syntax or it's
just not possible top use the pom.xml variables in the site.xml file?
thanks for letting me know...
--
View this message in context:
http://www.nabble.com/site-plugin%3A-how-to-use-variables-in-site.xml--tf3349863s177.html#a9314784
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]