I have quoted a section of the site plugin documentation at the end of
this post. The NOTE says that if I don't place a trailing slash at the
end of the site deploy url, then child projects of this project will
inherit the same location. I have tried this and it fails.

I have set the site deploy URL to
scp://<path-to-website-on-server>/${artifactId}/${pom.version} in my
parent pom.xml. In the child pom I haven't set anything, so I would
expect the child to deploy to:
scp://<path-to-website-on-server>/${child-artifactId}/${child- pom.version}

instead it deploys to

scp://<path-to-website-on-server>/${child-artifactId}/${child- pom.version}/${child-artifactId}

What can I do to solve this?

Thanks

--------------------QUOTED SECTION FROM MAVEN SITE PLUGIN DOCS ---------

http://maven.apache.org/guides/mini/guide-site.html


To be able to deploy the site, you must first declare a location
        to distribute to in your pom.xml, similar to the repository for
        deployment.

        <distributionManagement>
          <site>
            <id>website</id>
            <url>scp://www.mycompany.com/www/docs/project/</url>
          </site>
        </distributionManagement>

The id element identifies the repository, so that you can attach
        credentials to it in your settings.xml file in the same way as
        you would for any other repository. The URL gives the location
        to deploy to. Currently, only SSH is supported, as above which
        copies to the host www.mycompany.com in the
        path /www/docs/project/.

        mvn site-deploy

        Note: the trailing slash in the URL above indicates that any
subprojects that inherit this value should append their artifact
        ID to the path instead of using it as-is.








-----------------------------------------
This message (including any attachments) may contain confidential
information intended for a specific individual and purpose.  If you
are not the intended recipient, delete this message.  If you are
not the intended recipient, disclosing, copying, distributing, or
taking any action based on this message is strictly prohibited.

Reply via email to