java - 无法构建 CloudHopper (SMPP)

标签 java maven build jar smpp

我已经通过此链接从 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 文件并运行提供的演示。

有什么想法可以正确地 build 这座建筑吗?

最佳答案

删除 src/ 中的 test 文件夹并尝试使用 Netbeans 进行构建。它将正确编译 jar。

关于java - 无法构建 CloudHopper (SMPP),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15321028/

相关文章:

java - 来自 SVN 存储库的 Maven 依赖项

java.lang.ClassNotFoundException : com. mysql.jdbc.Driver 异常

c++ - QuantLib 构建错误

android - 重新打包 list 后 GCM 注册失败

java - 客户端/服务器 java 应用程序中的 JVM_Bind 错误

java - JVM 错误 : Process finished with exit code 134 (interrupted by signal 6: SIGABRT)

java - 编译错误 :- packages are missing

maven - 从命令行获取Gradle类路径

c++ - 如何查看 Bazel 中使用的所有 copt(C/C++ 构建选项)?

java - 如何在不安装 JMF 的情况下使用 JMF 捕获视频