diff --git a/apache-maven/pom.xml b/apache-maven/pom.xml
index 3d7e8c5370cc..1f7428cd9efd 100644
--- a/apache-maven/pom.xml
+++ b/apache-maven/pom.xml
@@ -110,6 +110,16 @@ under the License.
jline-terminal-ffm
+
+
+ javax.inject
+ javax.inject
+
+
+ javax.annotation
+ javax.annotation-api
+
+
org.eclipse.sisu
diff --git a/impl/maven-jline/pom.xml b/impl/maven-jline/pom.xml
index da3a9ec6c871..2c7e2a1cbbcb 100644
--- a/impl/maven-jline/pom.xml
+++ b/impl/maven-jline/pom.xml
@@ -73,14 +73,6 @@ under the License.
org.jline
jansi-core
-
- javax.inject
- javax.inject
-
-
- javax.annotation
- javax.annotation-api
-
org.codehaus.plexus
plexus-interactivity-api
diff --git a/impl/maven-jline/src/main/java/org/apache/maven/jline/JLineMessageBuilderFactory.java b/impl/maven-jline/src/main/java/org/apache/maven/jline/JLineMessageBuilderFactory.java
index 92a287a0a0c6..092f63a771cb 100644
--- a/impl/maven-jline/src/main/java/org/apache/maven/jline/JLineMessageBuilderFactory.java
+++ b/impl/maven-jline/src/main/java/org/apache/maven/jline/JLineMessageBuilderFactory.java
@@ -18,10 +18,6 @@
*/
package org.apache.maven.jline;
-import javax.annotation.Priority;
-import javax.inject.Named;
-import javax.inject.Singleton;
-
import java.io.IOException;
import java.util.ArrayList;
import java.util.Iterator;
@@ -31,6 +27,9 @@
import org.apache.maven.api.Constants;
import org.apache.maven.api.annotations.Experimental;
+import org.apache.maven.api.di.Named;
+import org.apache.maven.api.di.Priority;
+import org.apache.maven.api.di.Singleton;
import org.apache.maven.api.services.MessageBuilder;
import org.apache.maven.api.services.MessageBuilderFactory;
import org.codehaus.plexus.components.interactivity.InputHandler;