2013-03-10 97 views
1

我從這個鏈接下載從GitHub來源:https://github.com/twitter/cloudhopper-smpp然而,當我嘗試建立這個Netbeans中我得到兩個錯誤,具體如下:不能建立CloudHopper(SMPP)

1)就在開始建立在輸出窗口,它說:

Scanning for projects... 

Some problems were encountered while building the effective model for  com.cloudhopper:ch-smpp:jar:5.0.1-SNAPSHOT 
The expression ${scm.url} is deprecated. Please use ${project.scm.url} instead. 

It is highly recommended to fix these problems because they threaten the stability of  your build. 

For this reason, future Maven versions might no longer support building such malformed  projects. 

2)在構建結束輸出窗口說:

Results : 

Failed tests:  serverBindToUnavailablePortThrowsException(com.cloudhopper.smpp.impl.DefaultSmppServerTest) 

Tests run: 162, Failures: 1, Errors: 0, Skipped: 1 

------------------------------------------------------------------------ 
BUILD FAILURE 
------------------------------------------------------------------------ 
Total time: 27.606s 
Finished at: Sun Mar 10 09:42:27 GMT 2013 
Final Memory: 21M/314M 
------------------------------------------------------------------------ 
Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.10:test  (default-test) on project ch-smpp: There are test failures. 

Please refer to C:\XXX\XXX\XXX\XXX\CloudHopper\cloudhopper-smpp-master\cloudhopper- smpp-master\target\surefire-reports for the individual test results. 
-> [Help 1] 

To see the full stack trace of the errors, re-run Maven with the -e switch. 
Re-run Maven using the -X switch to enable full debug logging. 

For more information about the errors and possible solutions, please read the  following articles: 
[Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException 

我希望能夠建立所需的jar文件並運行提供的演示。

任何想法如何正確得到這座建築?

回答

2

src/刪除test文件夾,並嘗試使用Netbeans建設。它會正確編譯jar。

+1

非常感謝,工作。 +1 :) – user1746582 2013-04-06 09:52:29

0

你必須使用maven執行項目才能得到jar文件。

This is the link for Cloudhopper-jar file

+0

感謝您的鏈接。我也擁有所有的jar文件。儘管我想要在本地正確獲取源代碼。我如何解決上述問題?如何使用maven執行項目?這將解決我的問題上面? – user1746582 2013-03-21 18:59:28