diff --git a/core-java-modules/core-java-security-2/pom.xml b/core-java-modules/core-java-security-2/pom.xml
new file mode 100644
index 0000000000..43a55e3e0d
--- /dev/null
+++ b/core-java-modules/core-java-security-2/pom.xml
@@ -0,0 +1,17 @@
+
+
+ 4.0.0
+ core-java-security-2
+ 0.1.0-SNAPSHOT
+ core-java-security-2
+ jar
+
+
+ com.baeldung
+ parent-java
+ 0.0.1-SNAPSHOT
+ ../../parent-java
+
+
+
diff --git a/core-java-modules/core-java-security/src/main/java/com/baeldung/jaas/ConsoleCallbackHandler.java b/core-java-modules/core-java-security-2/src/main/java/com/baeldung/jaas/ConsoleCallbackHandler.java
similarity index 100%
rename from core-java-modules/core-java-security/src/main/java/com/baeldung/jaas/ConsoleCallbackHandler.java
rename to core-java-modules/core-java-security-2/src/main/java/com/baeldung/jaas/ConsoleCallbackHandler.java
diff --git a/core-java-modules/core-java-security/src/main/java/com/baeldung/jaas/JaasAuthentication.java b/core-java-modules/core-java-security-2/src/main/java/com/baeldung/jaas/JaasAuthentication.java
similarity index 100%
rename from core-java-modules/core-java-security/src/main/java/com/baeldung/jaas/JaasAuthentication.java
rename to core-java-modules/core-java-security-2/src/main/java/com/baeldung/jaas/JaasAuthentication.java
diff --git a/core-java-modules/core-java-security/src/main/java/com/baeldung/jaas/JaasAuthorization.java b/core-java-modules/core-java-security-2/src/main/java/com/baeldung/jaas/JaasAuthorization.java
similarity index 100%
rename from core-java-modules/core-java-security/src/main/java/com/baeldung/jaas/JaasAuthorization.java
rename to core-java-modules/core-java-security-2/src/main/java/com/baeldung/jaas/JaasAuthorization.java
diff --git a/core-java-modules/core-java-security/src/main/java/com/baeldung/jaas/LoginService.java b/core-java-modules/core-java-security-2/src/main/java/com/baeldung/jaas/LoginService.java
similarity index 100%
rename from core-java-modules/core-java-security/src/main/java/com/baeldung/jaas/LoginService.java
rename to core-java-modules/core-java-security-2/src/main/java/com/baeldung/jaas/LoginService.java
diff --git a/core-java-modules/core-java-security/src/main/java/com/baeldung/jaas/ResourceAction.java b/core-java-modules/core-java-security-2/src/main/java/com/baeldung/jaas/ResourceAction.java
similarity index 100%
rename from core-java-modules/core-java-security/src/main/java/com/baeldung/jaas/ResourceAction.java
rename to core-java-modules/core-java-security-2/src/main/java/com/baeldung/jaas/ResourceAction.java
diff --git a/core-java-modules/core-java-security/src/main/java/com/baeldung/jaas/ResourcePermission.java b/core-java-modules/core-java-security-2/src/main/java/com/baeldung/jaas/ResourcePermission.java
similarity index 100%
rename from core-java-modules/core-java-security/src/main/java/com/baeldung/jaas/ResourcePermission.java
rename to core-java-modules/core-java-security-2/src/main/java/com/baeldung/jaas/ResourcePermission.java
diff --git a/core-java-modules/core-java-security/src/main/java/com/baeldung/jaas/loginmodule/InMemoryLoginModule.java b/core-java-modules/core-java-security-2/src/main/java/com/baeldung/jaas/loginmodule/InMemoryLoginModule.java
similarity index 100%
rename from core-java-modules/core-java-security/src/main/java/com/baeldung/jaas/loginmodule/InMemoryLoginModule.java
rename to core-java-modules/core-java-security-2/src/main/java/com/baeldung/jaas/loginmodule/InMemoryLoginModule.java
diff --git a/core-java-modules/core-java-security/src/main/resources/jaas/jaas.login.config b/core-java-modules/core-java-security-2/src/main/resources/jaas/jaas.login.config
similarity index 100%
rename from core-java-modules/core-java-security/src/main/resources/jaas/jaas.login.config
rename to core-java-modules/core-java-security-2/src/main/resources/jaas/jaas.login.config
diff --git a/core-java-modules/core-java-security/src/main/resources/jaas/jaas.policy b/core-java-modules/core-java-security-2/src/main/resources/jaas/jaas.policy
similarity index 77%
rename from core-java-modules/core-java-security/src/main/resources/jaas/jaas.policy
rename to core-java-modules/core-java-security-2/src/main/resources/jaas/jaas.policy
index fa95bfed30..77f44dbd87 100644
--- a/core-java-modules/core-java-security/src/main/resources/jaas/jaas.policy
+++ b/core-java-modules/core-java-security-2/src/main/resources/jaas/jaas.policy
@@ -1,11 +1,11 @@
-grant codebase "file:./target/core-java-security-0.1.0-SNAPSHOT.jar" {
+grant codebase "file:./target/core-java-security-2-0.1.0-SNAPSHOT.jar" {
permission javax.security.auth.AuthPermission "createLoginContext.jaasApplication";
permission javax.security.auth.AuthPermission "doAsPrivileged";
permission java.lang.RuntimePermission "readFileDescriptor";
permission java.lang.RuntimePermission "writeFileDescriptor";
};
-grant codebase "file:./target/core-java-security-0.1.0-SNAPSHOT.jar" {
+grant codebase "file:./target/core-java-security-2-0.1.0-SNAPSHOT.jar" {
permission javax.security.auth.AuthPermission "modifyPrincipals";
};
diff --git a/pom.xml b/pom.xml
index 71e5d21b02..512d814488 100644
--- a/pom.xml
+++ b/pom.xml
@@ -431,6 +431,7 @@
core-java-modules/core-java-nio
core-java-modules/core-java-nio-2
core-java-modules/core-java-security
+ core-java-modules/core-java-security-2
core-java-modules/core-java-exceptions
core-java-modules/core-java-lang-syntax
core-java-modules/core-java-lang-syntax-2
@@ -1072,6 +1073,7 @@
core-java-modules/core-java-nio
core-java-modules/core-java-nio-2
core-java-modules/core-java-security
+ core-java-modules/core-java-security-2
core-java-modules/core-java-exceptions
core-java-modules/core-java-lang-syntax
core-java-modules/core-java-lang-syntax-2