You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by David Kendall <dk...@mobitv.com> on 2012/03/02 01:24:23 UTC

site-deploy upload location

Is there any way to control the exact upload location when doing a mvn 
site-deploy?

I am working with a code base that has a number of parent pom files - 
different parents for different types of project. When i do a mvn 
site-deploy the site is uploaded to something like....

${site.deploy.base.url}/${grandparent.artifactid}/${parent.artifactid}/${project.artifactId}/...

What I really want is for the site-deploy to ignore the parent poms and 
to upload to a pattern more like this....

${site.deploy.base.url}/${project.groupId}/${project.artifactId}/${project.version}/...

In my parent pom I have tried adding specifying

<distributionManagement>
     ....
<site>
<id>documentation-site</id>
<url>${site.deploy.base.url}/${project.groupId}/${project.artifactId}/${project.version}</url>
</site>
     ....
</distributionManagement>

.. but maven just appends the names of the parent poms to the paths anyway.

I am using maven 2.0.11 and deploying using SCP - in case this is 
significant.

Is there any way to override the default upload path when deploying a site?

Thanks



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


Re: site-deploy upload location

Posted by Lukas Theussl <lt...@apache.org>.
Documented behavior: "If subprojects inherit the site URL from a parent 
POM, they will automatically append their <artifactId> to form their 
effective deployment location."

This is the default behavior and currently cannot be switched off. If 
you want to change this, you have to explicitly set the url in all 
sub-projects.

HTH,
-Lukas


David Kendall wrote:
> Is there any way to control the exact upload location when doing a mvn
> site-deploy?
>
> I am working with a code base that has a number of parent pom files -
> different parents for different types of project. When i do a mvn
> site-deploy the site is uploaded to something like....
>
> ${site.deploy.base.url}/${grandparent.artifactid}/${parent.artifactid}/${project.artifactId}/...
>
>
> What I really want is for the site-deploy to ignore the parent poms and
> to upload to a pattern more like this....
>
> ${site.deploy.base.url}/${project.groupId}/${project.artifactId}/${project.version}/...
>
>
> In my parent pom I have tried adding specifying
>
> <distributionManagement>
> ....
> <site>
> <id>documentation-site</id>
> <url>${site.deploy.base.url}/${project.groupId}/${project.artifactId}/${project.version}</url>
>
> </site>
> ....
> </distributionManagement>
>
> .. but maven just appends the names of the parent poms to the paths anyway.
>
> I am using maven 2.0.11 and deploying using SCP - in case this is
> significant.
>
> Is there any way to override the default upload path when deploying a site?
>
> Thanks
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>

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