On 08/30/2011 11:18 AM, mickael leduque wrote:
Hi,
I'm trying to use the site plugin and to deploy with a very simple directory
layout.
The deploy location should be something like
scp://${site-deploy.base.location}/{project.groupId}/${project.artifactId}/${project.version}/
Nothing really unconventional, eh ?
But after trying, reading everywhere, (there seems to be a heap of
distributionManagement url issues...) I could'nt find a way to do it.
When there is a project hierarchy, there just doesn't seem to be a way that
works, as children won't just inherit the property.
Just inheriting would be the reasonable way to do it ? It seems the child
will persist adding some random and unwanted bit to the url.
(yes I know those are not totally random, but for me it's really the same as
it's not documented anywhere)
http://maven.apache.org/plugins/maven-site-plugin/examples/multimodule.html
See the 'Note' under 'Staging and deploying'.
HTH,
-Lukas
For example, with
ProjectA
|_ Project B
|_ Project C
if I define
distributionManagement.site.url=scp://${site-deploy.base.location}/{project.groupId}/${project.artifactId}/${project.version}/
in ProjectA, ProjectC will site-deploy to
${site-deploy.base.location}/{project.groupId}/${project.artifactId}/${project.version}/projectC/projectD
Totally useless.
Is there any way to achieve what I want without putting a site.url in each
and every project pom ? Without that, inheritance is completely useless.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]