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

Leon Blakey commented on MSITE-615:
-----------------------------------

Sorry for the delay, havne't touched this project for a while.

New configuration does work, however I would like to note you have the wrong 
version in your comment (1.0 instead of 2.1). It also doesn't mention this in 
the docs

This is the working config for me. Hope this help soomeone

{code}
<!--Deploy site with Mercurial (Hg)-->
<plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-site-plugin</artifactId>
        <version>3.0</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}

> Mercurial (HG) SCM Provider not detected in 3.0, was in 3.0-beta-3
> ------------------------------------------------------------------
>
>                 Key: MSITE-615
>                 URL: https://jira.codehaus.org/browse/MSITE-615
>             Project: Maven 2.x and 3.x Site Plugin
>          Issue Type: Bug
>          Components: site:deploy
>    Affects Versions: 3.0
>         Environment: Fedora 15, Java 7u1, Maven 3.0.3 (r1075438; 2011-02-28 
> 12:31:09-0500)
>            Reporter: Leon Blakey
>            Assignee: Olivier Lamy
>
> I deploy my maven site with mercurial. In 3.0-beta-3 and 
> 3.0-beta-4-20110712.115141-32 this worked perfectly but in 3.0 it fails.
> Configuration:
> {code}
> <build>
>       <plugins>
>               ...
>               <!--Deploy site with Mercurial (Hg)-->
>               <plugin>
>                       <groupId>org.apache.maven.plugins</groupId>
>                       <artifactId>maven-site-plugin</artifactId>
>                       <version>3.0-beta-3</version>
>                       <dependencies>
>                               <dependency>
>                                       <groupId>org.apache.maven.scm</groupId>
>                                       <artifactId>maven-scm-api</artifactId>
>                                       <version>1.5</version>
>                               </dependency>
>                               <dependency>
>                                       <groupId>org.apache.maven.scm</groupId>
>                                       
> <artifactId>maven-scm-provider-hg</artifactId>
>                                       <version>1.5</version>
>                               </dependency>
>                       </dependencies>
>               </plugin>
>       </plugins>
> </build>
> <distributionManagement>
>       <!--Site deploy repository-->
>       <site>
>               <id>MYPROJECT.googlecode.com</id>
>               <url>scm:hg:https://site.MYPROJECT.googlecode.com/hg/</url>
>       </site>
> </distributionManagement>
> {code}
> I also have my username and password configured in settings.xml
> With this configuration and maven-site-plugin at 3.0-beta-3, it works. With 
> this exact same configuration and maven-site-plugin at 3.0, it fails with 
> this when deploying
> {quote}
> Unsupported protocol: 'scm' for site deployment to 
> distributionManagement.site.url=scm:hg:https://site.MYPROJECT.googlecode.com/hg/.
> Currently supported protocols are: https, file, http.
>     Protocols may be added through wagon providers.
>     For more information, see 
> http://maven.apache.org/plugins/maven-site-plugin/examples/adding-deploy-protocol.html
> {quote}
> Note to deploy I'm running `mvn clean site-deploy` and `mvn clean site:site 
> site:deploy`
> I think this qualifies as a regression. 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to