2011-01-13 66 views
1

經過2+小時後,我能夠獲得maven-scm-provider-hg擴展(用於從Maven推送到mercurial回購)半工作,這意味着它正在執行的命令,而不是隻是給出錯誤。Maven mercurial擴展不斷失敗

不過,我想我已經碰壁,此錯誤

[INFO] [deploy:deploy {execution: default-deploy}] 
[INFO] Retrieving previous build number from pircbotx.googlecode.com 
[INFO] Removing C:\DOCUME~1\Owner\LOCALS~1\Temp\wagon-scm1210107000.checkout\pir cbotx\pircbotx\1.3-SNAPSHOT 
[INFO] EXECUTING: cmd.exe /X /C "hg clone -r tip https://*SNIP*@site.pircbotx.googlecode.com/hg/maven2/snapshots/pircbotx/pircbotx/1.3-SNAPSHOT C:\DOCUME~1\Owner\LOCALS~1\Temp\wagon-scm1210107000.checkout\pircbotx\pircbotx\1.3-SNAPSHOT" 
[INFO] EXECUTING: cmd.exe /X /C "hg locate" 
[INFO] repository metadata for: 'snapshot pircbotx:pircbotx:1.3-SNAPSHOT' could not be found on repository: pircbotx.googlecode.com, so will be created Uploading: scm:hg:https://site.pircbotx.googlecode.com/hg/maven2/snapshots/pircbotx/pircbotx/1.3-SNAPSHOT/pircbotx-1.3-SNAPSHOT.jar 
[INFO] ------------------------------------------------------------------------ 
[ERROR] BUILD ERROR 
[INFO] ------------------------------------------------------------------------ 
[INFO] Error deploying artifact: Error listing repository: No such command 'list'. 

究竟什麼會導致這個錯誤?我在一個Windows機器上,所以任何不是命令的命令都會給出''list'不被識別爲內部或外部命令...「,而不是」沒有這樣的命令'列表'。「

POM

<build> 
    <extensions> 
     <extension> 
      <groupId>org.apache.maven.scm</groupId> 
      <artifactId>maven-scm-provider-hg</artifactId> 
      <version>1.4</version> 
     </extension> 
     <extension> 
      <groupId>org.apache.maven.wagon</groupId> 
      <artifactId>wagon-scm</artifactId> 
      <version>1.0-beta-7</version> 
     </extension> 
    </extensions> 
    ... 

<distributionManagement> 
    <snapshotRepository> 
     <id>pircbotx.googlecode.com</id> 
     <name>PircBotX Site</name> 
     <url>scm:hg:https://site.pircbotx.googlecode.com/hg/maven2/snapshots</url> 
     <uniqueVersion>false</uniqueVersion> 
    </snapshotRepository> 
</distributionManagement> 

的Mercurial版本

W:\programming\pircbot-hg>hg version 
Mercurial Distributed SCM (version 1.7.2) 

有什麼建議?

+0

也許你可以發佈相關的pom片段? – Raghuram 2011-01-13 02:41:10

+0

@Raghuram對不起,編輯 – TheLQ 2011-01-13 02:48:19

回答

1

首先,不確定是否將項目工件部署到SCM是正常的做法。 maven scm plugin通常用於像結帳/更新/標籤的源代碼相關的操作等

其次,錯誤的原因似乎對HgMaven的SCM供應商不支持清單進行相關的事實命令在此scm providers matrix中指定。不知道爲什麼以及如何使用mvn deploy這個命令。