You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by cs...@apache.org on 2025/02/06 10:12:38 UTC
(maven) branch master updated: [MNG-8564] Move to maven-compat Plexus legacy (#2088)
This is an automated email from the ASF dual-hosted git repository.
cstamas pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven.git
The following commit(s) were added to refs/heads/master by this push:
new ff16077b22 [MNG-8564] Move to maven-compat Plexus legacy (#2088)
ff16077b22 is described below
commit ff16077b223e6d85fd2746e557c1ad4465d2c893
Author: Tamas Cservenak <ta...@cservenak.net>
AuthorDate: Thu Feb 6 11:12:32 2025 +0100
[MNG-8564] Move to maven-compat Plexus legacy (#2088)
This merely moves a newly introduced legacy support class to
maven-compat.
---
https://issues.apache.org/jira/browse/MNG-8564
---
compat/maven-compat/pom.xml | 10 +++++-----
.../interactivity}/LegacyPlexusInteractivity.java | 3 ++-
impl/maven-cli/pom.xml | 4 ----
impl/maven-jline/pom.xml | 21 ---------------------
.../org/apache/maven/jline/DefaultPrompter.java | 8 ++++----
impl/maven-logging/pom.xml | 10 ----------
6 files changed, 11 insertions(+), 45 deletions(-)
diff --git a/compat/maven-compat/pom.xml b/compat/maven-compat/pom.xml
index d23d5efd1f..e0d6ec4fd7 100644
--- a/compat/maven-compat/pom.xml
+++ b/compat/maven-compat/pom.xml
@@ -92,6 +92,11 @@ under the License.
<artifactId>javax.inject</artifactId>
<scope>provided</scope>
</dependency>
+ <dependency>
+ <groupId>org.eclipse.sisu</groupId>
+ <artifactId>org.eclipse.sisu.inject</artifactId>
+ <scope>provided</scope>
+ </dependency>
<dependency>
<groupId>org.eclipse.sisu</groupId>
<artifactId>org.eclipse.sisu.plexus</artifactId>
@@ -103,11 +108,6 @@ under the License.
<artifactId>hamcrest</artifactId>
<scope>test</scope>
</dependency>
- <dependency>
- <groupId>org.eclipse.sisu</groupId>
- <artifactId>org.eclipse.sisu.inject</artifactId>
- <scope>test</scope>
- </dependency>
<dependency>
<groupId>com.google.inject</groupId>
<artifactId>guice</artifactId>
diff --git a/impl/maven-jline/src/main/java/org/apache/maven/jline/LegacyPlexusInteractivity.java b/compat/maven-compat/src/main/java/org/apache/maven/internal/compat/interactivity/LegacyPlexusInteractivity.java
similarity index 97%
rename from impl/maven-jline/src/main/java/org/apache/maven/jline/LegacyPlexusInteractivity.java
rename to compat/maven-compat/src/main/java/org/apache/maven/internal/compat/interactivity/LegacyPlexusInteractivity.java
index 41f16090ef..dd5a941659 100644
--- a/impl/maven-jline/src/main/java/org/apache/maven/jline/LegacyPlexusInteractivity.java
+++ b/compat/maven-compat/src/main/java/org/apache/maven/internal/compat/interactivity/LegacyPlexusInteractivity.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.apache.maven.jline;
+package org.apache.maven.internal.compat.interactivity;
import javax.inject.Inject;
import javax.inject.Named;
@@ -27,6 +27,7 @@
import java.util.List;
import org.apache.maven.api.annotations.Experimental;
+import org.apache.maven.jline.DefaultPrompter;
import org.codehaus.plexus.components.interactivity.InputHandler;
import org.codehaus.plexus.components.interactivity.OutputHandler;
import org.codehaus.plexus.components.interactivity.Prompter;
diff --git a/impl/maven-cli/pom.xml b/impl/maven-cli/pom.xml
index ecffd52480..337aa7a507 100644
--- a/impl/maven-cli/pom.xml
+++ b/impl/maven-cli/pom.xml
@@ -118,10 +118,6 @@ under the License.
<build>
<plugins>
- <plugin>
- <groupId>org.eclipse.sisu</groupId>
- <artifactId>sisu-maven-plugin</artifactId>
- </plugin>
<plugin>
<groupId>org.codehaus.modello</groupId>
<artifactId>modello-maven-plugin</artifactId>
diff --git a/impl/maven-jline/pom.xml b/impl/maven-jline/pom.xml
index 083b7997e8..1668a239c3 100644
--- a/impl/maven-jline/pom.xml
+++ b/impl/maven-jline/pom.xml
@@ -77,26 +77,5 @@ under the License.
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-interactivity-api</artifactId>
</dependency>
-
- <dependency>
- <groupId>javax.inject</groupId>
- <artifactId>javax.inject</artifactId>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.eclipse.sisu</groupId>
- <artifactId>org.eclipse.sisu.inject</artifactId>
- <scope>provided</scope>
- </dependency>
</dependencies>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.eclipse.sisu</groupId>
- <artifactId>sisu-maven-plugin</artifactId>
- </plugin>
- </plugins>
- </build>
-
</project>
diff --git a/impl/maven-jline/src/main/java/org/apache/maven/jline/DefaultPrompter.java b/impl/maven-jline/src/main/java/org/apache/maven/jline/DefaultPrompter.java
index 326bc34499..cf0ae093f6 100644
--- a/impl/maven-jline/src/main/java/org/apache/maven/jline/DefaultPrompter.java
+++ b/impl/maven-jline/src/main/java/org/apache/maven/jline/DefaultPrompter.java
@@ -61,9 +61,9 @@ public void showMessage(String message) throws PrompterException {
}
/**
- * Used by {@link LegacyPlexusInteractivity}
+ * Used by {@code LegacyPlexusInteractivity}
*/
- String doPrompt(String message, boolean password) throws IOException {
+ public String doPrompt(String message, boolean password) throws IOException {
try {
if (message != null) {
if (!message.endsWith("\n")) {
@@ -86,9 +86,9 @@ String doPrompt(String message, boolean password) throws IOException {
}
/**
- * Used by {@link LegacyPlexusInteractivity}
+ * Used by {@code LegacyPlexusInteractivity}
*/
- void doDisplay(String message) throws IOException {
+ public void doDisplay(String message) throws IOException {
try {
MessageUtils.terminal.writer().print(message);
MessageUtils.terminal.flush();
diff --git a/impl/maven-logging/pom.xml b/impl/maven-logging/pom.xml
index f6fcc118c2..42ef4be1bc 100644
--- a/impl/maven-logging/pom.xml
+++ b/impl/maven-logging/pom.xml
@@ -61,14 +61,4 @@ under the License.
<scope>test</scope>
</dependency>
</dependencies>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.eclipse.sisu</groupId>
- <artifactId>sisu-maven-plugin</artifactId>
- </plugin>
- </plugins>
- </build>
-
</project>