[ 
https://jira.codehaus.org/browse/MSITE-601?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=308779#comment-308779
 ] 

Leon Blakey commented on MSITE-601:
-----------------------------------

I completely forgot about this issue, and it seems everyone else in the issue 
tracker has as well. I have been successful deploying to my site project for a 
while now

Distribution config:
{code:xml} 
<distributionManagement>
        <!--Site deploy repository-->
        <site>
                <id>code.google.com</id>
                <url>scm:hg:https://code.google.com/p/MYPROJECT.site/</url>
        </site>
</distributionManagement>
{code}

Site config
{code:xml}
<!--Deploy site with Mercurial (Hg)-->
<plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-site-plugin</artifactId>
        <version>3.1</version>
        <dependencies>
                <dependency><!-- add support for scm -->
                        <groupId>org.apache.maven.wagon</groupId>
                        <artifactId>wagon-scm</artifactId>
                        <version>2.1</version>
                </dependency>
                <dependency>
                        <groupId>org.apache.maven.scm</groupId>
                        <artifactId>maven-scm-provider-hg</artifactId>
                        <version>1.5</version>
                </dependency>
        </dependencies>
</plugin>
{code}

And when running mvn site:site site:deploy

{code}
EXECUTING: /bin/sh -c cd /tmp/wagon-scm2114070317.checkout && hg push 
https://USER:p...@code.google.com/p/MYPROJECT.site/
{code}

So I think this issue can be closed finally.
                
> Period added to URL prevents proper cloning with Mercurial
> ----------------------------------------------------------
>
>                 Key: MSITE-601
>                 URL: https://jira.codehaus.org/browse/MSITE-601
>             Project: Maven 2.x and 3.x Site Plugin
>          Issue Type: Bug
>          Components: site:deploy
>    Affects Versions: 3.0-beta-3
>         Environment: Javac 7 on Fedora Linux 15, Mercurial 1.9
>            Reporter: Leon Blakey
>            Priority: Critical
>             Fix For: backlog
>
>
> I deploy my Maven site over Mercurial on Google Code. I use this configuration
> {code:xml}<distributionManagement>
>       <!--Site deploy repository-->
>       <site>
>               <id>MYPROJECT.googlecode.com</id>
>               <url>scm:hg:https://code.google.com/p/MYPROJECT.site/</url>
>       </site>
> </distributionManagement>{code}
> And a standard <server> in settings.xml
> {code:xml}<servers>
>       <server>
>               <id>MYPROJECT.googlecode.com</id>
>               <username>USERNAME</username>
>               <password>PASSWORD</password>
>       </server>
> </servers>{code}
> However when running site:deploy it decides that it should add a dot to the 
> URL, meaning it tries to execute this command
> EXECUTING: /bin/sh -c cd /tmp && hg clone -r tip 
> https://USERNAME:passw...@code.google.com/p/MYPROJECT.site//. 
> /tmp/wagon-scm1348091978.checkout
> Which on Google and other repositories gives a 404 since the file . (look at 
> the end of the URL) doesn't exist. Why is that period there? Is it coming 
> from Maven Site or the Mercurial plugin (I'm assuming here)? Can it get 
> removed>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to