Hi

I am working with at wish to make a site per release of my artifact

assume the following

The trunk: for "my-project"

<url>http://my-site.xxx/sites/common/my-project</url>

This means that the URL http://my-site.xxx/sites/common/my-project/ contains the site.

When I release the 3.0 version of my-project I want a released site

<url>http://my-site.xxx/sites/common/my-project/tags/my-project-3.0</ url>

The problem is that I manually have to change the URL in the released artifacts to solve this.

I would like a property that makes this URL a constant in my pom.xml

An idea could be two properties property
1) project.basePath=**/common/my-project

** This property must probably be set in the pom, or guessed by maven when not set



2) project.versionPath="." when pom.xml is in a "trunk" directory
    or
project.versionPath="tags/my-project-3.0" when the directory after basePath is "tags", "branches" and directory after..

** This property should be calculated by maven based on the standard "usages" of directories trunk, tags, branches


Finally I want to be able to set the url to a value like

<url>http://my-site.xxx/sites/${project.basePath}/${project. versionPath}</url>

My Questions are:
a) Is this possible already today? Am I just missing some Maven knowledge? b) Can I add property handlers to a project? I belive that a plugin would not be enough here ?

/Anders

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to