2014-03-05 46 views
0

我已经上传了“reporty-ng”jar来解决我的位桶账户中的plugin依赖项,但是当我运行mvn clean时出现此错误。 “seetings.xml”中没有设置传输文件时出错:连接超时:在maven中连接。

C:\Users\Devraj\workspace\TestProject>mvn clean 
[INFO] Scanning for projects... 
[INFO] ------------------------------------------------------------------------ 
[INFO] Building Unnamed - TestProject:TestProject:jar:0.0.1-SNAPSHOT 
[INFO] task-segment: [clean] 
[INFO] ------------------------------------------------------------------------ 
Downloading: https://bitbucket.org/Devraj/reporty-ng/reporty-ng/1.2/reporty-ng- 1.2.pom 
[WARNING] Unable to get resource 'reporty-ng:reporty-ng:pom:1.2' from repository reporty-ng (https://bitbucket.org/Devraj): Error transferring file:  Co 
nnection timed out: connect 
Downloading: http://repo1.maven.org/maven2/reporty-ng/reporty-ng/1.2/reporty-ng-1.2.pom 
[INFO] Unable to find resource 'reporty-ng:reporty-ng:pom:1.2' in repository central (http://repo1.maven.org/maven2) 
Downloading: http://repo1.maven.org/maven2/reporty-ng/reporty-ng/1.2/reporty-ng-1.2.pom 
[INFO] Unable to find resource 'reporty-ng:reporty-ng:pom:1.2' in repository central (http://repo1.maven.org/maven2) 
[INFO] ------------------------------------------------------------------------ 
[ERROR] BUILD ERROR 
[INFO] ------------------------------------------------------------------------ 
[INFO] Error building POM (may not be this project's POM). 


Project ID: reporty-ng:reporty-ng 

Reason: POM 'reporty-ng:reporty-ng' not found in repository: Unable to download the artifact from any repository 

    reporty-ng:reporty-ng:pom:1.2 

from the specified remote repositories: 
    central (http://repo1.maven.org/maven2), 
    reporty-ng (https://bitbucket.org/Devraj) 

for project reporty-ng:reporty-ng 


[INFO] ------------------------------------------------------------------------ 
[INFO] For more information, run Maven with the -e switch 
[INFO] ------------------------------------------------------------------------ 
[INFO] Total time: 25 seconds 
[INFO] Finished at: Wed Mar 05 14:49:09 IST 2014 
[INFO] Final Memory: 7M/73M 
[INFO] ------------------------------------------------------------------------ 
+0

的URL https://bitbucket.org/Devraj/reporty-ng/reporty-ng/1.2/reporty-ng- 1.2.pom返回404.你确定URL是正确的吗? – blackbuild

+0

开始使用存储库管理器或修复连接超时问题。 – khmarbaise

+1

看看这个问题及其答案:http://stackoverflow.com/q/18859138/546117 –

回答

1

不要将外部工件上传到您的bitbucket帐户。

包括在你的pom的reporty-ng的库(见:https://github.com/cosminaru/reporty-ng/wiki/MavenPlugin

<pluginRepositories> 
    <pluginRepository> 
     <id>reporty-ng</id> 
     <url>https://github.com/cosminaru/reporty-ng/raw/master/dist/maven</url> 
    </pluginRepository> 
</pluginRepositories> 
+0

它现在正在工作,但仍未生成XSLT报告。 – Devraj

+0

另外,在之前的URL中,我可以在1.2.pom之前看到空格https://bitbucket.org/Devraj/reporty-ng/reporty-ng/1.2/reporty-ng- 1.2.pom – jsjunkie