diff --git a/hawkbit-mgmt/hawkbit-mgmt-resource/pom.xml b/hawkbit-mgmt/hawkbit-mgmt-resource/pom.xml
index 51c1edfa8..4cfc4d3fe 100644
--- a/hawkbit-mgmt/hawkbit-mgmt-resource/pom.xml
+++ b/hawkbit-mgmt/hawkbit-mgmt-resource/pom.xml
@@ -40,13 +40,17 @@
- org.springframework.plugin
- spring-plugin-core
+ org.springframework.security
+ spring-security-config
org.springframework
spring-context
+
+ org.springframework.plugin
+ spring-plugin-core
+
jakarta.servlet
@@ -79,11 +83,6 @@
javax.el-api
test
-
- org.springframework.security
- spring-security-config
- test
-
org.springframework.boot
spring-boot-starter-json
diff --git a/hawkbit-mgmt/hawkbit-mgmt-resource/src/main/java/org/eclipse/hawkbit/mgmt/rest/resource/MgmtApiConfiguration.java b/hawkbit-mgmt/hawkbit-mgmt-resource/src/main/java/org/eclipse/hawkbit/mgmt/rest/resource/MgmtApiConfiguration.java
index 4e26ab016..7b7f70c67 100644
--- a/hawkbit-mgmt/hawkbit-mgmt-resource/src/main/java/org/eclipse/hawkbit/mgmt/rest/resource/MgmtApiConfiguration.java
+++ b/hawkbit-mgmt/hawkbit-mgmt-resource/src/main/java/org/eclipse/hawkbit/mgmt/rest/resource/MgmtApiConfiguration.java
@@ -15,6 +15,7 @@ import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.PropertySource;
+import org.springframework.security.config.annotation.method.configuration.EnableMethodSecurity;
import org.springframework.stereotype.Controller;
/**
@@ -23,6 +24,7 @@ import org.springframework.stereotype.Controller;
* Management API.
*/
@Configuration
+@EnableMethodSecurity(proxyTargetClass = true, securedEnabled = true)
@ComponentScan
@Import({ RestConfiguration.class, OpenApiConfiguration.class })
@PropertySource("classpath:/hawkbit-mgmt-api-defaults.properties")
diff --git a/hawkbit-mgmt/hawkbit-mgmt-starter/pom.xml b/hawkbit-mgmt/hawkbit-mgmt-starter/pom.xml
index f4e92fa00..f89391022 100644
--- a/hawkbit-mgmt/hawkbit-mgmt-starter/pom.xml
+++ b/hawkbit-mgmt/hawkbit-mgmt-starter/pom.xml
@@ -68,10 +68,6 @@
org.springframework.security
spring-security-web
-
- org.springframework.security
- spring-security-config
-
org.springframework.security
spring-security-aspects
diff --git a/hawkbit-mgmt/hawkbit-mgmt-starter/src/main/java/org/eclipse/hawkbit/autoconfigure/mgmt/MgmtSecurityConfiguration.java b/hawkbit-mgmt/hawkbit-mgmt-starter/src/main/java/org/eclipse/hawkbit/autoconfigure/mgmt/MgmtSecurityConfiguration.java
index 36c5e5a09..8a5b2dc1f 100644
--- a/hawkbit-mgmt/hawkbit-mgmt-starter/src/main/java/org/eclipse/hawkbit/autoconfigure/mgmt/MgmtSecurityConfiguration.java
+++ b/hawkbit-mgmt/hawkbit-mgmt-starter/src/main/java/org/eclipse/hawkbit/autoconfigure/mgmt/MgmtSecurityConfiguration.java
@@ -27,7 +27,6 @@ import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.annotation.Order;
import org.springframework.security.config.Customizer;
-import org.springframework.security.config.annotation.method.configuration.EnableMethodSecurity;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
import org.springframework.security.config.annotation.web.configurers.AbstractHttpConfigurer;
@@ -46,7 +45,6 @@ import org.springframework.web.cors.CorsConfigurationSource;
*/
@Configuration
@EnableWebSecurity
-@EnableMethodSecurity(proxyTargetClass = true, securedEnabled = true)
public class MgmtSecurityConfiguration {
private final HawkbitSecurityProperties securityProperties;
diff --git a/hawkbit-monolith/hawkbit-update-server/pom.xml b/hawkbit-monolith/hawkbit-update-server/pom.xml
index f0994ec64..e9b395bd5 100644
--- a/hawkbit-monolith/hawkbit-update-server/pom.xml
+++ b/hawkbit-monolith/hawkbit-update-server/pom.xml
@@ -54,7 +54,7 @@
org.mariadb.jdbc
mariadb-java-client
- test
+
org.eclipse.hawkbit