我从这个链接下载了github的源代码:https://github.com/twitter/cloudhopper-smpp但是当我尝试在Netbeans中构建它时,我收到两个错误,如下所示:
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文件并运行提供的演示。
有关如何正确使用此建筑物的任何想法吗?
答案 0 :(得分:2)
删除test
中的src/
文件夹,然后尝试使用Netbeans构建。它会正确编译jar。
答案 1 :(得分:0)
您必须使用maven执行项目才能获取jar文件。