diff --git a/pom.xml b/pom.xml
index 9dea3dc79d..16e826e4e9 100644
--- a/pom.xml
+++ b/pom.xml
@@ -259,6 +259,7 @@
jersey
java-spi
performance-tests
+ twilio
diff --git a/spring-webflux-event-stream/src/main/java/com/baeldung/demo/eventstreamwebfluxdemo/EventStreamServer.java b/spring-webflux-event-stream/src/main/java/com/baeldung/demo/eventstreamwebfluxdemo/EventStreamServer.java
deleted file mode 100644
index 48548bd8d5..0000000000
--- a/spring-webflux-event-stream/src/main/java/com/baeldung/demo/eventstreamwebfluxdemo/EventStreamServer.java
+++ /dev/null
@@ -1,12 +0,0 @@
-package com.baeldung.demo.eventstreamwebfluxdemo;
-
-import org.springframework.boot.SpringApplication;
-import org.springframework.boot.autoconfigure.SpringBootApplication;
-
-@SpringBootApplication
-public class EventStreamServer {
-
- public static void main(String[] args) {
- SpringApplication.run(EventStreamServer.class, args);
- }
-}
diff --git a/spring-webflux-event-stream/src/main/java/com/baeldung/demo/eventstreamwebfluxdemo/client/EventStreamClient.java b/spring-webflux-event-stream/src/main/java/com/baeldung/demo/eventstreamwebfluxdemo/client/EventStreamClient.java
deleted file mode 100644
index 73ca753136..0000000000
--- a/spring-webflux-event-stream/src/main/java/com/baeldung/demo/eventstreamwebfluxdemo/client/EventStreamClient.java
+++ /dev/null
@@ -1,18 +0,0 @@
-package com.baeldung.demo.eventstreamwebfluxdemo.client;
-
-import org.springframework.http.MediaType;
-import org.springframework.web.reactive.function.client.WebClient;
-
-public class EventStreamClient {
- public static void main(String[] args)
- {
- WebClient.create("http://127.0.0.1:8080")
- .get()
- .uri("/events")
- .accept(MediaType.APPLICATION_STREAM_JSON)
- .retrieve()
- .bodyToFlux(Long.class)
- .toStream()
- .forEach(item -> System.out.println("New event : " + item));
- }
-}
diff --git a/spring-webflux-event-stream/src/main/java/com/baeldung/demo/eventstreamwebfluxdemo/controller/EventStreamController.java b/spring-webflux-event-stream/src/main/java/com/baeldung/demo/eventstreamwebfluxdemo/controller/EventStreamController.java
deleted file mode 100644
index d28d402316..0000000000
--- a/spring-webflux-event-stream/src/main/java/com/baeldung/demo/eventstreamwebfluxdemo/controller/EventStreamController.java
+++ /dev/null
@@ -1,17 +0,0 @@
-package com.baeldung.demo.eventstreamwebfluxdemo.controller;
-
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RestController;
-import reactor.core.publisher.Flux;
-
-import java.time.Duration;
-
-@RestController
-public class EventStreamController
-{
- @RequestMapping("/events")
- public Flux getServerEvents()
- {
- return Flux.interval(Duration.ofMillis(1000));
- }
-}
diff --git a/spring-webflux-event-stream/src/main/resources/application.properties b/spring-webflux-event-stream/src/main/resources/application.properties
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/spring-webflux-event-stream/src/test/java/com/baeldung/demo/eventstreamwebfluxdemo/EventStreamServerTests.java b/spring-webflux-event-stream/src/test/java/com/baeldung/demo/eventstreamwebfluxdemo/EventStreamServerTests.java
deleted file mode 100644
index d4dfcce4b3..0000000000
--- a/spring-webflux-event-stream/src/test/java/com/baeldung/demo/eventstreamwebfluxdemo/EventStreamServerTests.java
+++ /dev/null
@@ -1,16 +0,0 @@
-package com.baeldung.demo.eventstreamwebfluxdemo;
-
-import org.junit.Test;
-import org.junit.runner.RunWith;
-import org.springframework.boot.test.context.SpringBootTest;
-import org.springframework.test.context.junit4.SpringRunner;
-
-@RunWith(SpringRunner.class)
-@SpringBootTest
-public class EventStreamServerTests {
-
- @Test
- public void contextLoads() {
- }
-
-}
diff --git a/twilio/pom.xml b/twilio/pom.xml
index 13187cfb07..89b40ccdac 100644
--- a/twilio/pom.xml
+++ b/twilio/pom.xml
@@ -4,7 +4,7 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4.0.0
- com.baeldung.sms
+ com.baeldung
twilio
1.0-SNAPSHOT
diff --git a/twilio/sms/pom.xml b/twilio/sms/pom.xml
deleted file mode 100644
index 58ac33a7f3..0000000000
--- a/twilio/sms/pom.xml
+++ /dev/null
@@ -1,24 +0,0 @@
-
-
- 4.0.0
-
- com.baeldung.twilio
- sms
- 1.0-SNAPSHOT
-
-
- 1.8
- 1.8
-
-
-
-
- com.twilio.sdk
- twilio
- 7.20.0
-
-
-
-
diff --git a/twilio/sms/src/main/java/TwilioSmsExample.java b/twilio/sms/src/main/java/TwilioSmsExample.java
deleted file mode 100644
index 442546027b..0000000000
--- a/twilio/sms/src/main/java/TwilioSmsExample.java
+++ /dev/null
@@ -1,22 +0,0 @@
-import com.twilio.Twilio;
-import com.twilio.rest.api.v2010.account.Message;
-import com.twilio.type.PhoneNumber;
-
-public class TwilioSmsExample {
- // Find your Account Sid and Token at twilio.com/console
- public static final String ACCOUNT_SID = "YOUR_ACCOUNT_SID";
- public static final String AUTH_TOKEN = "YOUR_ACCOUNT_TOKEN";
-
- // Create a phone number in the Twilio console
- public static final String TWILIO_NUMBER = "+13334445555";
-
- public static void main(String[] args) {
- Twilio.init(ACCOUNT_SID, AUTH_TOKEN);
- Message message = Message.creator(
- new PhoneNumber("+12227779999"),
- new PhoneNumber(TWILIO_NUMBER),
- "Sample Twilio SMS using Java")
- .create();
-
- }
-}
diff --git a/twilio/sms/src/main/java/TwilioSmsMediaExample.java b/twilio/sms/src/main/java/TwilioSmsMediaExample.java
deleted file mode 100644
index 09a2f9fd63..0000000000
--- a/twilio/sms/src/main/java/TwilioSmsMediaExample.java
+++ /dev/null
@@ -1,27 +0,0 @@
-import com.twilio.Twilio;
-import com.twilio.converter.Promoter;
-import com.twilio.rest.api.v2010.account.Message;
-import com.twilio.type.PhoneNumber;
-
-import java.net.URI;
-
-public class TwilioSmsMediaExample {
- // Find your Account Sid and Token at twilio.com/console
- public static final String ACCOUNT_SID = "YOUR_ACCOUNT_SID";
- public static final String AUTH_TOKEN = "YOUR_ACCOUNT_TOKEN";
-
- // Create a phone number in the Twilio console
- public static final String TWILIO_NUMBER = "+13334445555";
-
- public static void main(String[] args) {
- Twilio.init(ACCOUNT_SID, AUTH_TOKEN);
- Message message = Message.creator(
- new PhoneNumber("+12227779999"),
- new PhoneNumber(TWILIO_NUMBER),
- "Sample Twilio MMS using Java")
- .setMediaUrl(
- Promoter.listOfOne(
- URI.create("http://www.baeldung.com/wp-content/uploads/2017/10/icon-javaseries-home.png")))
- .create();
- }
-}
diff --git a/twilio/sms/src/main/java/TwilioSmsStatusAsyncExample.java b/twilio/sms/src/main/java/TwilioSmsStatusAsyncExample.java
deleted file mode 100644
index d75788a6a6..0000000000
--- a/twilio/sms/src/main/java/TwilioSmsStatusAsyncExample.java
+++ /dev/null
@@ -1,34 +0,0 @@
-import com.google.common.util.concurrent.FutureCallback;
-import com.google.common.util.concurrent.Futures;
-import com.google.common.util.concurrent.ListenableFuture;
-import com.twilio.Twilio;
-import com.twilio.base.ResourceSet;
-import com.twilio.rest.api.v2010.account.Message;
-
-public class TwilioSmsStatusAsyncExample {
- // Find your Account Sid and Token at twilio.com/console
- public static final String ACCOUNT_SID = "YOUR_ACCOUNT_SID";
- public static final String AUTH_TOKEN = "YOUR_AUTH_TOKEN";
-
- // Create a phone number in the Twilio console
- public static final String TWILIO_NUMBER = "+13334445555";
-
- public static void main(String[] args) {
-
- Twilio.init(ACCOUNT_SID, AUTH_TOKEN);
- ListenableFuture> future = Message.reader().readAsync();
- Futures.addCallback(
- future,
- new FutureCallback>() {
- public void onSuccess(ResourceSet messages) {
- for (Message message : messages) {
- System.out.println(message.getSid() + " : " + message.getStatus());
- }
- }
-
- public void onFailure(Throwable t) {
- System.out.println("Failed to get message status: " + t.getMessage());
- }
- });
- }
-}
diff --git a/twilio/sms/src/main/java/TwilioSmsStatusExample.java b/twilio/sms/src/main/java/TwilioSmsStatusExample.java
deleted file mode 100644
index 9ed2ac5bcc..0000000000
--- a/twilio/sms/src/main/java/TwilioSmsStatusExample.java
+++ /dev/null
@@ -1,22 +0,0 @@
-import com.twilio.Twilio;
-import com.twilio.base.ResourceSet;
-import com.twilio.rest.api.v2010.account.Message;
-import com.twilio.type.PhoneNumber;
-
-public class TwilioSmsStatusExample {
- // Find your Account Sid and Token at twilio.com/console
- public static final String ACCOUNT_SID = "YOUR_ACCOUNT_SID";
- public static final String AUTH_TOKEN = "YOUR_ACCOUNT_TOKEN";
-
- // Create a phone number in the Twilio console
- public static final String TWILIO_NUMBER = "+13334445555";
-
- public static void main(String[] args) {
-
- Twilio.init(ACCOUNT_SID, AUTH_TOKEN);
- ResourceSet messages = Message.reader().read();
- for (Message message : messages) {
- System.out.println(message.getSid() + " : " + message.getStatus());
- }
- }
-}
diff --git a/twilio/src/main/java/TwilioSmsExample.java b/twilio/src/main/java/com/baeldung/twilio/sms/TwilioSmsExample.java
similarity index 95%
rename from twilio/src/main/java/TwilioSmsExample.java
rename to twilio/src/main/java/com/baeldung/twilio/sms/TwilioSmsExample.java
index cf8c162223..8304b953ed 100644
--- a/twilio/src/main/java/TwilioSmsExample.java
+++ b/twilio/src/main/java/com/baeldung/twilio/sms/TwilioSmsExample.java
@@ -1,3 +1,4 @@
+package com.baeldung.twilio.sms;
import com.twilio.Twilio;
import com.twilio.rest.api.v2010.account.Message;
import com.twilio.type.PhoneNumber;
diff --git a/twilio/src/main/java/TwilioSmsMediaExample.java b/twilio/src/main/java/com/baeldung/twilio/sms/TwilioSmsMediaExample.java
similarity index 96%
rename from twilio/src/main/java/TwilioSmsMediaExample.java
rename to twilio/src/main/java/com/baeldung/twilio/sms/TwilioSmsMediaExample.java
index f0b0677198..953067659a 100644
--- a/twilio/src/main/java/TwilioSmsMediaExample.java
+++ b/twilio/src/main/java/com/baeldung/twilio/sms/TwilioSmsMediaExample.java
@@ -1,3 +1,4 @@
+package com.baeldung.twilio.sms;
import com.twilio.Twilio;
import com.twilio.converter.Promoter;
import com.twilio.rest.api.v2010.account.Message;
diff --git a/twilio/src/main/java/TwilioSmsStatusAsyncExample.java b/twilio/src/main/java/com/baeldung/twilio/sms/TwilioSmsStatusAsyncExample.java
similarity index 97%
rename from twilio/src/main/java/TwilioSmsStatusAsyncExample.java
rename to twilio/src/main/java/com/baeldung/twilio/sms/TwilioSmsStatusAsyncExample.java
index ca55bb1978..d3b1c9b7dc 100644
--- a/twilio/src/main/java/TwilioSmsStatusAsyncExample.java
+++ b/twilio/src/main/java/com/baeldung/twilio/sms/TwilioSmsStatusAsyncExample.java
@@ -1,3 +1,4 @@
+package com.baeldung.twilio.sms;
import com.google.common.util.concurrent.FutureCallback;
import com.google.common.util.concurrent.Futures;
import com.google.common.util.concurrent.ListenableFuture;
diff --git a/twilio/src/main/java/TwilioSmsStatusExample.java b/twilio/src/main/java/com/baeldung/twilio/sms/TwilioSmsStatusExample.java
similarity index 95%
rename from twilio/src/main/java/TwilioSmsStatusExample.java
rename to twilio/src/main/java/com/baeldung/twilio/sms/TwilioSmsStatusExample.java
index 625af0d848..e865c91679 100644
--- a/twilio/src/main/java/TwilioSmsStatusExample.java
+++ b/twilio/src/main/java/com/baeldung/twilio/sms/TwilioSmsStatusExample.java
@@ -1,3 +1,4 @@
+package com.baeldung.twilio.sms;
import com.twilio.Twilio;
import com.twilio.base.ResourceSet;
import com.twilio.rest.api.v2010.account.Message;