diff --git a/maven/pom.xml b/maven/pom.xml
index a409432f8b..4f91e8717c 100644
--- a/maven/pom.xml
+++ b/maven/pom.xml
@@ -94,6 +94,24 @@
+
+ org.codehaus.mojo
+ build-helper-maven-plugin
+ ${maven.build.helper.version}
+
+
+ generate-sources
+
+ add-source
+
+
+
+
+
+
+
+
+
@@ -102,6 +120,7 @@
2.21.0
1.1
3.0.0
+ 3.0.0
Baeldung
diff --git a/maven/src/main/another-src/com/baeldung/maven/plugins/Foo.java b/maven/src/main/another-src/com/baeldung/maven/plugins/Foo.java
new file mode 100644
index 0000000000..f8a6fe9853
--- /dev/null
+++ b/maven/src/main/another-src/com/baeldung/maven/plugins/Foo.java
@@ -0,0 +1,10 @@
+package com.baeldung.maven.plugins;
+
+public class Foo {
+
+ public static String foo() {
+ return "foo";
+ }
+
+}
+
diff --git a/maven/src/main/java/com/baeldung/maven/plugins/MultipleSrcFolders.java b/maven/src/main/java/com/baeldung/maven/plugins/MultipleSrcFolders.java
new file mode 100644
index 0000000000..d403918dd3
--- /dev/null
+++ b/maven/src/main/java/com/baeldung/maven/plugins/MultipleSrcFolders.java
@@ -0,0 +1,9 @@
+package com.baeldung.maven.plugins;
+
+public class MultipleSrcFolders {
+
+ public static void callFoo() {
+ Foo.foo();
+ }
+
+}