You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by ArneD <pu...@degenring.de> on 2006/09/18 15:25:01 UTC

[m2] Include project version into generated site

Hi,

I would like to have the project version included into the generated site,
e.g. into the title, to make this information transparent to the user
directly on the welcome page.

I tried to use ${project.version} in the site.xml descriptor, but this is
not replaced. Only ${project.name} seems to be working.

Any hints?

Thanks,
Arne


-- 
View this message in context: http://www.nabble.com/-m2--Include-project-version-into-generated-site-tf2291271.html#a6363605
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: [m2] Include project version into generated site

Posted by ArneD <pu...@degenring.de>.

Alan Mosely wrote:
> 
> Hi,
> 
> On a related note I would like to have the version included in the url for
> further transparency.
> Any ideas?
> 
> 

We use the following distributionManagement entry in the project's pom.xml:

  <distributionManagement>
    <site>
      <id>my-site</id>
     
<url>file://\\myserver\projectsites\${project.artifactId}-${project.version}</url>
    </site>
  </distributionManagement>

Regards,
Arne
-- 
View this message in context: http://www.nabble.com/-m2--Include-project-version-into-generated-site-tf2291271.html#a6386759
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: [m2] Include project version into generated site

Posted by Alan Mosely <al...@googlemail.com>.
Hi,

On a related note I would like to have the version included in the url for
further transparency.
Any ideas?

Thanks,

Alan

On 18/09/06, ArneD <pu...@degenring.de> wrote:
>
>
> Hi,
>
> I would like to have the project version included into the generated site,
> e.g. into the title, to make this information transparent to the user
> directly on the welcome page.
>
> I tried to use ${project.version} in the site.xml descriptor, but this is
> not replaced. Only ${project.name} seems to be working.
>
> Any hints?
>
> Thanks,
> Arne
>
>
> --
> View this message in context:
> http://www.nabble.com/-m2--Include-project-version-into-generated-site-tf2291271.html#a6363605
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>