無法構建 CloudHopper (SMPP) (Cannot build CloudHopper (SMPP))


問題描述

無法構建 CloudHopper (SMPP) (Cannot build CloudHopper (SMPP))

I have downloaded the source from github from this link: https://github.com/twitter/cloudhopper‑smpp however when I try to build this in Netbeans I am getting two errors, as follows:

1) Right at the start of build in the output window it says: 

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) At the end of the build the output window says:

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

I would like to be able to build the required jar files and run the demos provided.

Any ideas how to get this building properly?


參考解法

方法 1:

Remove the test folder in src/ and try building with Netbeans. It will compile the jar properly.

方法 2:

You have to execute the project using maven in order to get the jar file. 

This is the link for Cloudhopper‑jar file

(by user1746582Farhansree127)

參考文件

  1. Cannot build CloudHopper (SMPP) (CC BY‑SA 3.0/4.0)

#java #maven #smpp #build #jar






相關問題

電子郵件地址中帶有 + 字符的 Java 郵件 (Java mail with + character in email address)

如何快速原型化 Java 代碼? (How to quickly prototype Java code?)

如何使用 Maven 在目標(SVN-)服務器上創建 Javadoc? (How to create Javadoc on the target (SVN-) server using Maven?)

為什麼檢查二叉樹有效性的解決方案不起作用? (Why the solution for checking the validity of binary tree is not working?)

Selenium webdriver通過第一個數字找到texy (Selenium webdriver find texy by first digits)

setOnClickListener 沒有在圖像視圖上被調用 (setOnClickListener is not getting called on image view)

繪製多邊形:找不到錯誤 (Drawing Polygon : unable to find error)

半透明 JButton:對像出現在背景中 (Semi-Transparent JButton: Objects appear in Background)

比較同一數組的元素 (Compare elements of the same array)

Java 屏幕截圖小程序 (Java screen capture applet)

Minecraft 1.8.9 Forge Modding 的Java 開發工具包,需要什麼JDK/JRE,代碼是否正確? (Java Development Kit with Minecraft 1.8.9 Forge Modding, What JDK/JRE Is Needed, Is Code Correct?)

java while (resultset.next()) 不返回同一列中的所有數據 (java while (resultset.next()) does not return all data in the same column)







留言討論