diff --git a/plexus-compilers/plexus-compiler-aspectj/pom.xml b/plexus-compilers/plexus-compiler-aspectj/pom.xml
index eaa7bfc3..82120c67 100644
--- a/plexus-compilers/plexus-compiler-aspectj/pom.xml
+++ b/plexus-compilers/plexus-compiler-aspectj/pom.xml
@@ -14,7 +14,7 @@
AspectJ Compiler support for Plexus Compiler component.
- 17
+ 11
diff --git a/plexus-compilers/plexus-compiler-eclipse/pom.xml b/plexus-compilers/plexus-compiler-eclipse/pom.xml
index e2d1d344..b60d714a 100644
--- a/plexus-compilers/plexus-compiler-eclipse/pom.xml
+++ b/plexus-compilers/plexus-compiler-eclipse/pom.xml
@@ -14,7 +14,7 @@
Eclipse Compiler support for Plexus Compiler component.
- 17
+ 11
diff --git a/pom.xml b/pom.xml
index 66d777cf..9e88c92c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -197,7 +197,7 @@
maven-enforcer-plugin
- enforce-java
+ enforce-maven-and-java-bytecode
enforce
@@ -207,6 +207,14 @@
[17,)
[ERROR] OLD JDK [${java.version}] in use. This projects requires JDK 17 or newer
+
+ ${javaVersion}
+
+
+ org.eclipse.jdt:ecj
+ org.aspectj:aspectjtools
+
+