From 5174d9495bfd515ee2af9bbfb10eac9a2c79bfec Mon Sep 17 00:00:00 2001 From: amit2103 Date: Sun, 16 Dec 2018 17:11:21 +0530 Subject: [PATCH] [BAEL-10840] - Moved FTP related code back to libraries module --- libraries-apache-commons/README.md | 3 +-- libraries-apache-commons/pom.xml | 7 ------- libraries/README.md | 1 + libraries/pom.xml | 13 +++++++++++++ .../src/main/java/com/baeldung/ftp/FtpClient.java | 0 .../com/baeldung/ftp/FtpClientIntegrationTest.java | 0 .../baeldung/ftp/JdkFtpClientIntegrationTest.java | 0 7 files changed, 15 insertions(+), 9 deletions(-) rename {libraries-apache-commons => libraries}/src/main/java/com/baeldung/ftp/FtpClient.java (100%) rename {libraries-apache-commons => libraries}/src/test/java/com/baeldung/ftp/FtpClientIntegrationTest.java (100%) rename {libraries-apache-commons => libraries}/src/test/java/com/baeldung/ftp/JdkFtpClientIntegrationTest.java (100%) diff --git a/libraries-apache-commons/README.md b/libraries-apache-commons/README.md index 66090e3709..01f2379588 100644 --- a/libraries-apache-commons/README.md +++ b/libraries-apache-commons/README.md @@ -17,5 +17,4 @@ - [Apache Commons Collections BidiMap](http://www.baeldung.com/commons-collections-bidi-map) - [Apache Commons Collections MapUtils](http://www.baeldung.com/apache-commons-map-utils) - [Histograms with Apache Commons Frequency](http://www.baeldung.com/apache-commons-frequency) -- [An Introduction to Apache Commons Lang 3](https://www.baeldung.com/java-commons-lang-3) -- [Implementing a FTP-Client in Java](http://www.baeldung.com/java-ftp-client) \ No newline at end of file +- [An Introduction to Apache Commons Lang 3](https://www.baeldung.com/java-commons-lang-3) \ No newline at end of file diff --git a/libraries-apache-commons/pom.xml b/libraries-apache-commons/pom.xml index f61a7a4a9a..c7ff918af9 100644 --- a/libraries-apache-commons/pom.xml +++ b/libraries-apache-commons/pom.xml @@ -83,12 +83,6 @@ ${org.hamcrest.java-hamcrest.version} test - - org.mockftpserver - MockFtpServer - ${mockftpserver.version} - test - @@ -110,7 +104,6 @@ 3.6 1.3 3.6.1 - 2.7.1 diff --git a/libraries/README.md b/libraries/README.md index 28184c161b..ce2445f3e0 100644 --- a/libraries/README.md +++ b/libraries/README.md @@ -65,6 +65,7 @@ - [Guide to JMapper](http://www.baeldung.com/jmapper) - [Exactly Once Processing in Kafka](https://www.baeldung.com/kafka-exactly-once) - [An Introduction to SuanShu](https://www.baeldung.com/suanshu) +- [Implementing a FTP-Client in Java](http://www.baeldung.com/java-ftp-client) The libraries module contains examples related to small libraries that are relatively easy to use and does not require any separate module of its own. diff --git a/libraries/pom.xml b/libraries/pom.xml index 16d79a59b1..2ad4871e3f 100644 --- a/libraries/pom.xml +++ b/libraries/pom.xml @@ -55,6 +55,11 @@ commons-lang3 ${commons-lang.version} + + commons-net + commons-net + ${commons-net.version} + tec.units unit-ri @@ -664,6 +669,12 @@ ${derive4j.version} true + + org.mockftpserver + MockFtpServer + ${mockftpserver.version} + test + @@ -888,6 +899,8 @@ 3.3.0 3.0.2 1.1.0 + 2.7.1 + 3.6 diff --git a/libraries-apache-commons/src/main/java/com/baeldung/ftp/FtpClient.java b/libraries/src/main/java/com/baeldung/ftp/FtpClient.java similarity index 100% rename from libraries-apache-commons/src/main/java/com/baeldung/ftp/FtpClient.java rename to libraries/src/main/java/com/baeldung/ftp/FtpClient.java diff --git a/libraries-apache-commons/src/test/java/com/baeldung/ftp/FtpClientIntegrationTest.java b/libraries/src/test/java/com/baeldung/ftp/FtpClientIntegrationTest.java similarity index 100% rename from libraries-apache-commons/src/test/java/com/baeldung/ftp/FtpClientIntegrationTest.java rename to libraries/src/test/java/com/baeldung/ftp/FtpClientIntegrationTest.java diff --git a/libraries-apache-commons/src/test/java/com/baeldung/ftp/JdkFtpClientIntegrationTest.java b/libraries/src/test/java/com/baeldung/ftp/JdkFtpClientIntegrationTest.java similarity index 100% rename from libraries-apache-commons/src/test/java/com/baeldung/ftp/JdkFtpClientIntegrationTest.java rename to libraries/src/test/java/com/baeldung/ftp/JdkFtpClientIntegrationTest.java