java - Apache FTP 服务器 : MVN Build Failed on Java 8 (SSL)

标签 java apache maven ssl ftp

我正在尝试构建 Apache FTP Server在我的 Arch Linux Box 上。

操作系统:Arch Linux 64 位(最新)。 内核:4.8.6-1。 Java:甲骨文 1.8.0_112。 Maven:3.3.9。

同时安装了 Open-SSL 和 TLS。

每当我在构建目录中运行“MVN 安装”时,我都会收到以下错误。我认为问题是由于 Java 8 禁用 SSL v3.0 以支持 TLS?如果是这样,只使用旧版本的 java 进行编译似乎是个坏主意。不应该使用这个库,还是有更好的方法来处理这个问题?

    Results :

Tests in error: 
  testStoreWithProtPAndReturnToProtCInPassiveMode(org.apache.ftpserver.ssl.MinaExplicitSSLTest): No appropriate protocol (protocol is disabled or cipher suites are inappropriate)
  testCommandChannel(org.apache.ftpserver.ssl.MinaExplicitSSLTest): No appropriate protocol (protocol is disabled or cipher suites are inappropriate)
  testReissueAuth(org.apache.ftpserver.ssl.MinaExplicitSSLTest): No appropriate protocol (protocol is disabled or cipher suites are inappropriate)
  testIsSecure(org.apache.ftpserver.ssl.MinaExplicitSSLTest): No appropriate protocol (protocol is disabled or cipher suites are inappropriate)
  testStoreWithProtPInPassiveMode(org.apache.ftpserver.ssl.MinaExplicitSSLTest): No appropriate protocol (protocol is disabled or cipher suites are inappropriate)
  testStoreWithProtPInActiveMode(org.apache.ftpserver.ssl.MinaExplicitSSLTest): No appropriate protocol (protocol is disabled or cipher suites are inappropriate)
  testStoreWithProtPAndReturnToProtCInActiveMode(org.apache.ftpserver.ssl.MinaExplicitSSLTest): No appropriate protocol (protocol is disabled or cipher suites are inappropriate)
  testListEmptyDir(org.apache.ftpserver.ssl.MinaExplicitSSLTest): No appropriate protocol (protocol is disabled or cipher suites are inappropriate)
  testReceiveEmptyFile(org.apache.ftpserver.ssl.MinaExplicitSSLTest): No appropriate protocol (protocol is disabled or cipher suites are inappropriate)
  testThatDataChannelIsSecure(org.apache.ftpserver.ssl.MinaImplicitDataChannelTest): No appropriate protocol (protocol is disabled or cipher suites are inappropriate)
  testStoreWithoutProtPInActiveMode(org.apache.ftpserver.ssl.MinaImplicitDataChannelTest): No appropriate protocol (protocol is disabled or cipher suites are inappropriate)
  testStoreWithProtPInPassiveMode(org.apache.ftpserver.ssl.MinaImplicitDataChannelTest): No appropriate protocol (protocol is disabled or cipher suites are inappropriate)
  testStoreWithProtPAndReturnToProtCInPassiveMode(org.apache.ftpserver.ssl.MinaImplicitDataChannelTest): No appropriate protocol (protocol is disabled or cipher suites are inappropriate)
  testCommandChannel(org.apache.ftpserver.ssl.MinaImplicitDataChannelTest): No appropriate protocol (protocol is disabled or cipher suites are inappropriate)
  testReissueAuth(org.apache.ftpserver.ssl.MinaImplicitDataChannelTest): No appropriate protocol (protocol is disabled or cipher suites are inappropriate)
  testIsSecure(org.apache.ftpserver.ssl.MinaImplicitDataChannelTest): No appropriate protocol (protocol is disabled or cipher suites are inappropriate)
  testStoreWithProtPInActiveMode(org.apache.ftpserver.ssl.MinaImplicitDataChannelTest): No appropriate protocol (protocol is disabled or cipher suites are inappropriate)
  testStoreWithProtPAndReturnToProtCInActiveMode(org.apache.ftpserver.ssl.MinaImplicitDataChannelTest): No appropriate protocol (protocol is disabled or cipher suites are inappropriate)
  testListEmptyDir(org.apache.ftpserver.ssl.MinaImplicitDataChannelTest): No appropriate protocol (protocol is disabled or cipher suites are inappropriate)
  testReceiveEmptyFile(org.apache.ftpserver.ssl.MinaImplicitDataChannelTest): No appropriate protocol (protocol is disabled or cipher suites are inappropriate)
  testStoreWithProtPAndReturnToProtCInPassiveMode(org.apache.ftpserver.ssl.MinaImplicitSSLTest): No appropriate protocol (protocol is disabled or cipher suites are inappropriate)
  testCommandChannel(org.apache.ftpserver.ssl.MinaImplicitSSLTest): No appropriate protocol (protocol is disabled or cipher suites are inappropriate)
  testReissueAuth(org.apache.ftpserver.ssl.MinaImplicitSSLTest): No appropriate protocol (protocol is disabled or cipher suites are inappropriate)
  testIsSecure(org.apache.ftpserver.ssl.MinaImplicitSSLTest): No appropriate protocol (protocol is disabled or cipher suites are inappropriate)
  testStoreWithProtPInPassiveMode(org.apache.ftpserver.ssl.MinaImplicitSSLTest): No appropriate protocol (protocol is disabled or cipher suites are inappropriate)
  testStoreWithProtPInActiveMode(org.apache.ftpserver.ssl.MinaImplicitSSLTest): No appropriate protocol (protocol is disabled or cipher suites are inappropriate)
  testStoreWithProtPAndReturnToProtCInActiveMode(org.apache.ftpserver.ssl.MinaImplicitSSLTest): No appropriate protocol (protocol is disabled or cipher suites are inappropriate)
  testListEmptyDir(org.apache.ftpserver.ssl.MinaImplicitSSLTest): No appropriate protocol (protocol is disabled or cipher suites are inappropriate)
  testReceiveEmptyFile(org.apache.ftpserver.ssl.MinaImplicitSSLTest): No appropriate protocol (protocol is disabled or cipher suites are inappropriate)

Tests run: 655, Failures: 0, Errors: 29, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Apache FtpServer Parent ............................ SUCCESS [  0.452 s]
[INFO] Apache Ftplet API .................................. SUCCESS [  1.085 s]
[INFO] Apache FtpServer Core .............................. FAILURE [ 21.201 s]
[INFO] FtpServer Spring web project example ............... SKIPPED
[INFO] FtpServer OSGi Ftplet service example .............. SKIPPED
[INFO] FtpServer OSGi Spring-DM example ................... SKIPPED
[INFO] Apache FtpServer Examples .......................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 23.136 s
[INFO] Finished at: 2016-11-05T13:36:47-04:00
[INFO] Final Memory: 21M/491M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.8.1:test (default-test) on project ftpserver-core: There are test failures.
[ERROR] 
[ERROR] Please refer to /home/USER/build/ftpserver/core/target/surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :ftpserver-core

最佳答案

事实证明我错过了一个非常基本的步骤。错误

[INFO] Apache FtpServer Core .............................. FAILURE

是由于缺少 dependencies.我下载并安装了 latest source Mina Apache file ,其中包括 Apache 核心。安装现在顺利完成。简单的解决方案万岁!

关于java - Apache FTP 服务器 : MVN Build Failed on Java 8 (SSL),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40441341/

相关文章:

java - mvn命令错误

java - gradle with Java : When does . 在使用 gradle with Java 时创建 m2 文件夹

java - 超出 GC 开销限制

apache - 如何使用 Apache 重定向对 Node-Red 的请求?

java - ProGuard 中类路径前的感叹号有什么作用?

php - 服务器上的 Symfony 1.4

java - 由 : java. lang.NoSuchMethodError : org. springframework.beans.MutablePropertyValues.get(Ljava/lang/String;)Ljava/lang/Object 引起

java - 尝试查找 XADataSource 时出现 ClassCastException

java - 是否有网站可以远程上传mysql数据库并连接Java Swing应用程序