Ahh, ok. You're right. You don't check in the generated version. Sure.

Sorry. So no problem.
Per

Am 15.12.2011 10:26, schrieb Chantal Ackermann:
You shouldn't be checking in any automatically generated files!
What is checked in is the markup that contains the placeholder - and
that doesn't change with new builds, of course. That's the point of it,
isn't it?

Chantal



On Thu, 2011-12-15 at 09:46 +0100, Per Newgro wrote:
But this causes a build / version control system issue.

Guess you use version control like svn or cvs. Once you checked in the
html markup
and call a build the markup changed and you have to check in markup again.
So that becomes a "chicken - egg - problem".

Just my 2$
Per

Am 15.12.2011 09:27, schrieb Sjoerd Schunselaar:
Thank you Chantal,

Thats a very easy solution. Didn't think about that.


Kind regards,

Sjoerd Schunselaar


On Wed, Dec 14, 2011 at 1:02 PM, Chantal Ackermann<
[email protected]>   wrote:

Hi Sjoerd,

my way of doing this is directly from pom to html using filtering.

Add ${project.version} into the markup (for me, I add it into a top bar
shared by all pages). Change the pom.xml resources configuration to
filter either all html files or only that specific one. (I've simply
changed the original "false" to "true" as I am sure that there is no
other Dollar-notation in the html files.)

<resource>
         <filtering>true</filtering>
         <directory>src/main/java</directory>
         <includes>
                 <include>**</include>
         </includes>
         <excludes>
                 <exclude>**/*.java</exclude>
         </excludes>
</resource>


Cheers,
Chantal



On Wed, 2011-12-14 at 11:33 +0100, Sjoerd Schunselaar wrote:
Hi all,

Is there a easy way to display the artifact version which can be set in
de
maven pom.xml file?
I would like to display that artifact version in the title bar.


met vriendelijke groet,

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



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


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




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

Reply via email to