You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by kw...@apache.org on 2023/02/13 18:12:28 UTC

[maven-doxia] branch bugfix/remove-plexus-annotations created (now 684c4845)

This is an automated email from the ASF dual-hosted git repository.

kwin pushed a change to branch bugfix/remove-plexus-annotations
in repository https://gitbox.apache.org/repos/asf/maven-doxia.git


      at 684c4845 Migrate remaining component from Plexus to JSR 330 annotations

This branch includes the following new commits:

     new 684c4845 Migrate remaining component from Plexus to JSR 330 annotations

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[maven-doxia] 01/01: Migrate remaining component from Plexus to JSR 330 annotations

Posted by kw...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

kwin pushed a commit to branch bugfix/remove-plexus-annotations
in repository https://gitbox.apache.org/repos/asf/maven-doxia.git

commit 684c48458471ac1cbd0828cff7434905e7d3a775
Author: Konrad Windszus <kw...@apache.org>
AuthorDate: Mon Feb 13 19:11:20 2023 +0100

    Migrate remaining component from Plexus to JSR 330 annotations
---
 doxia-core/pom.xml                                                | 4 ----
 doxia-modules/doxia-module-markdown/pom.xml                       | 4 ----
 .../apache/maven/doxia/module/markdown/MarkdownSinkFactory.java   | 8 +++++---
 3 files changed, 5 insertions(+), 11 deletions(-)

diff --git a/doxia-core/pom.xml b/doxia-core/pom.xml
index 8d92e7cc..de32cefc 100644
--- a/doxia-core/pom.xml
+++ b/doxia-core/pom.xml
@@ -48,10 +48,6 @@ under the License.
       <groupId>org.codehaus.plexus</groupId>
       <artifactId>plexus-utils</artifactId>
     </dependency>
-    <dependency>
-      <groupId>org.eclipse.sisu</groupId>
-      <artifactId>org.eclipse.sisu.plexus</artifactId>
-    </dependency>
     <dependency>
       <groupId>org.apache.commons</groupId>
       <artifactId>commons-text</artifactId>
diff --git a/doxia-modules/doxia-module-markdown/pom.xml b/doxia-modules/doxia-module-markdown/pom.xml
index e32ba64d..4346ce69 100644
--- a/doxia-modules/doxia-module-markdown/pom.xml
+++ b/doxia-modules/doxia-module-markdown/pom.xml
@@ -57,10 +57,6 @@ under the License.
   </properties>
 
   <dependencies>
-    <dependency>
-      <groupId>org.eclipse.sisu</groupId>
-      <artifactId>org.eclipse.sisu.plexus</artifactId>
-    </dependency>
     <dependency>
       <groupId>javax.inject</groupId>
       <artifactId>javax.inject</artifactId>
diff --git a/doxia-modules/doxia-module-markdown/src/main/java/org/apache/maven/doxia/module/markdown/MarkdownSinkFactory.java b/doxia-modules/doxia-module-markdown/src/main/java/org/apache/maven/doxia/module/markdown/MarkdownSinkFactory.java
index 96e172fb..4e8f7a58 100644
--- a/doxia-modules/doxia-module-markdown/src/main/java/org/apache/maven/doxia/module/markdown/MarkdownSinkFactory.java
+++ b/doxia-modules/doxia-module-markdown/src/main/java/org/apache/maven/doxia/module/markdown/MarkdownSinkFactory.java
@@ -18,17 +18,19 @@
  */
 package org.apache.maven.doxia.module.markdown;
 
+import javax.inject.Named;
+import javax.inject.Singleton;
+
 import java.io.Writer;
 
 import org.apache.maven.doxia.sink.Sink;
-import org.apache.maven.doxia.sink.SinkFactory;
 import org.apache.maven.doxia.sink.impl.AbstractTextSinkFactory;
-import org.codehaus.plexus.component.annotations.Component;
 
 /**
  * Markdown implementation of the Sink factory.
  */
-@Component(role = SinkFactory.class, hint = "markdown")
+@Singleton
+@Named("markdown")
 public class MarkdownSinkFactory extends AbstractTextSinkFactory {
     /** {@inheritDoc} */
     protected Sink createSink(Writer writer, String encoding) {