You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Leon Blakey (JIRA)" <ji...@codehaus.org> on 2011/07/29 22:05:43 UTC

[jira] Created: (MSITE-601) Period added to URL prevents proper cloning with Mercurial

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


I deploy my Maven site over Mercurial on Google Code. I use this configuration

<distributionManagement>
	<!--Site deploy repository-->
	<site>
		<id>MYPROJECT.googlecode.com</id>
		<url>scm:hg:https://code.google.com/p/MYPROJECT.site/</url>
	</site>
</distributionManagement>

And a standard <server> in settings.xml

<servers>
	<server>
		<id>MYPROJECT.googlecode.com</id>
		<username>USERNAME</username>
		<password>PASSWORD</password>
	</server>
</servers>

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:PASSWORD@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.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (MSITE-601) Period added to URL prevents proper cloning with Mercurial

Posted by "Herve Boutemy (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MSITE-601?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Herve Boutemy updated MSITE-601:
--------------------------------

    Description: 
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:PASSWORD@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>

  was:
I deploy my Maven site over Mercurial on Google Code. I use this configuration

<distributionManagement>
	<!--Site deploy repository-->
	<site>
		<id>MYPROJECT.googlecode.com</id>
		<url>scm:hg:https://code.google.com/p/MYPROJECT.site/</url>
	</site>
</distributionManagement>

And a standard <server> in settings.xml

<servers>
	<server>
		<id>MYPROJECT.googlecode.com</id>
		<username>USERNAME</username>
		<password>PASSWORD</password>
	</server>
</servers>

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:PASSWORD@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>


> 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
>
> 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:PASSWORD@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.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MSITE-601) Period added to URL prevents proper cloning with Mercurial

Posted by "Leon Blakey (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MSITE-601?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=274806#comment-274806 ] 

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

This is an issue with Google's new namespace overlap though. A projects new main repo and main site are at the exact same URL. Its also an issue with Google seeing . or / or any extra character for that matter as a separate file or mode.

BTW, tried to get that fixed, got denied: http://code.google.com/p/support/issues/detail?id=5628

It seems like it would be a lot easier to normalize URL's in the site plugin than to convince Google to handle extra character's in a URL.

More importantly: Why does the site plugin *need* to add a /./ to the URL? I can't think of a use case for that.

> 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
>
> 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:PASSWORD@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.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MSITE-601) Period added to URL prevents proper cloning with Mercurial

Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MSITE-601?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dennis Lundberg updated MSITE-601:
----------------------------------

    Fix Version/s:     (was: 3.1)
                   backlog
    
> 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:PASSWORD@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

        

[jira] (MSITE-601) Period added to URL prevents proper cloning with Mercurial

Posted by "Rob Elliot (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MSITE-601?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=308778#comment-308778 ] 

Rob Elliot commented on MSITE-601:
----------------------------------

Followed this link from issue MSITE-654. The discussion about valid URIs is a red herring; yes https://USERNAME:PASSWORD@code.google.com/p/MYPROJECT.site/./ is a valid URI, but that doesn't mean it points to the same resource as https://USERNAME:PASSWORD@code.google.com/p/MYPROJECT.site . Specifically, the second (correct) one is effectively a URI to a file, whereas the one ending in /./ is a URI to a directory. If as far as Google are concerned the Mercurial repo is a file (and Github have the same opinion about their git repositories) then the second URI quite rightly returns a 404.

It's the same as trying to run the following set of commands:
{code:none}
echo "some text" > afile.txt
cat afile.txt
cat afile.txt/
cat afile.txt/./
{code}

The first cat will work, the latter two will not because they are paths to a directory and afile.txt is not a directory. You can't just randomly append a slash to a URI and expect it to have the same meaning as the URI without the slash. Sometimes it does, sometimes it doesn't and both possibilities are valid.

                
> 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:PASSWORD@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

        

[jira] (MSITE-601) Period added to URL prevents proper cloning with Mercurial

Posted by "Herve Boutemy (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MSITE-601?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Herve Boutemy closed MSITE-601.
-------------------------------

       Resolution: Fixed
    Fix Version/s:     (was: backlog)
                   3.1

ok Leon, I close the issue as fixed in 3.1
                
> 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: 3.1
>
>
> 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:PASSWORD@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

        

[jira] Commented: (MSITE-601) Period added to URL prevents proper cloning with Mercurial

Posted by "Leon Blakey (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MSITE-601?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=274676#comment-274676 ] 

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

Tested snapshot version 3.0-beta-4-20110712.115141-32, still present. It has some interesting output though

{quote}
scm:hg:https://code.google.com/p/MYPROJECT.site/ - Session: Opened  
Pushing /home/lordquackstar/pircbotx-hg/target/site
   >>> to scm:hg:https://code.google.com/p/MYPROJECT.site/./
Uploading: ./ to scm:hg:https://code.google.com/p/MYPROJECT.site/

EXECUTING: /bin/sh -c cd /home/lordquackstar/pircbotx-hg/. && hg locate
Removing /tmp/wagon-scm2121267578.checkout
EXECUTING: /bin/sh -c cd /tmp && hg clone -r tip https://USERNAME:PASSWORD@code.google.com/p/MYPROJECT.site//./ /tmp/wagon-scm2121267578.checkout
{quote}

It seems that somewhere an extra / is added to the URL, then it thinks that its pushing to ./ . Thats a really strange way to treat the URL. 

> 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
>
> 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:PASSWORD@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.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MSITE-601) Period added to URL prevents proper cloning with Mercurial

Posted by "Lukas Theussl (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MSITE-601?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=274654#comment-274654 ] 

Lukas Theussl commented on MSITE-601:
-------------------------------------

Can you try maven-site-plugin-3.0-SNAPSHOT?

> 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
>
> I deploy my Maven site over Mercurial on Google Code. I use this configuration
> <distributionManagement>
> 	<!--Site deploy repository-->
> 	<site>
> 		<id>MYPROJECT.googlecode.com</id>
> 		<url>scm:hg:https://code.google.com/p/MYPROJECT.site/</url>
> 	</site>
> </distributionManagement>
> And a standard <server> in settings.xml
> <servers>
> 	<server>
> 		<id>MYPROJECT.googlecode.com</id>
> 		<username>USERNAME</username>
> 		<password>PASSWORD</password>
> 	</server>
> </servers>
> 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:PASSWORD@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.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (MSITE-601) Period added to URL prevents proper cloning with Mercurial

Posted by "Lukas Theussl (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MSITE-601?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lukas Theussl updated MSITE-601:
--------------------------------

    Fix Version/s: 3.1

> 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: 3.1
>
>
> 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:PASSWORD@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.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MSITE-601) Period added to URL prevents proper cloning with Mercurial

Posted by "Leon Blakey (JIRA)" <ji...@codehaus.org>.
    [ 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:PASS@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:PASSWORD@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

        

[jira] Commented: (MSITE-601) Period added to URL prevents proper cloning with Mercurial

Posted by "Lukas Theussl (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MSITE-601?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=274799#comment-274799 ] 

Lukas Theussl commented on MSITE-601:
-------------------------------------

See linked issues and discussion at http://maven.40175.n5.nabble.com/How-to-avoid-part-of-URL-during-site-deployment-td3307034.html. As I said there, a dot component is a valid part of a URL, I see no reason for a repo or server to throw a 404.

> 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
>
> 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:PASSWORD@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.
For more information on JIRA, see: http://www.atlassian.com/software/jira