diff --git a/asciidoctor-converter-doxia-module/pom.xml b/asciidoctor-converter-doxia-module/pom.xml
index 14fd010e..6be7a007 100644
--- a/asciidoctor-converter-doxia-module/pom.xml
+++ b/asciidoctor-converter-doxia-module/pom.xml
@@ -46,7 +46,7 @@
org.apache.maven.doxia
doxia-site-renderer
- 1.11.1
+ ${doxia.version}
test
diff --git a/asciidoctor-converter-doxia-module/src/it/maven-site-plugin/pom.xml b/asciidoctor-converter-doxia-module/src/it/maven-site-plugin/pom.xml
index df89a4b6..f02ac1c5 100644
--- a/asciidoctor-converter-doxia-module/src/it/maven-site-plugin/pom.xml
+++ b/asciidoctor-converter-doxia-module/src/it/maven-site-plugin/pom.xml
@@ -22,14 +22,14 @@
org.apache.maven.plugins
maven-project-info-reports-plugin
- 3.4.5
+ 3.5.0
org.apache.maven.plugins
maven-site-plugin
- 3.12.1
+ 4.0.0-M13
${project.basedir}/src/site/asciidoc
diff --git a/asciidoctor-converter-doxia-module/src/it/maven-site-plugin/src/site/site.xml b/asciidoctor-converter-doxia-module/src/it/maven-site-plugin/src/site/site.xml
index 71ea0778..d23bc776 100644
--- a/asciidoctor-converter-doxia-module/src/it/maven-site-plugin/src/site/site.xml
+++ b/asciidoctor-converter-doxia-module/src/it/maven-site-plugin/src/site/site.xml
@@ -14,6 +14,6 @@
org.apache.maven.skins
maven-fluido-skin
- 1.12.0
+ 2.0.0-M8
diff --git a/asciidoctor-converter-doxia-module/src/main/java/org/asciidoctor/maven/site/AsciidoctorConverterDoxiaParser.java b/asciidoctor-converter-doxia-module/src/main/java/org/asciidoctor/maven/site/AsciidoctorConverterDoxiaParser.java
index d2f8af37..7203b700 100644
--- a/asciidoctor-converter-doxia-module/src/main/java/org/asciidoctor/maven/site/AsciidoctorConverterDoxiaParser.java
+++ b/asciidoctor-converter-doxia-module/src/main/java/org/asciidoctor/maven/site/AsciidoctorConverterDoxiaParser.java
@@ -5,7 +5,6 @@
import java.io.File;
import java.io.IOException;
import java.io.Reader;
-import java.util.logging.Logger;
import org.apache.maven.doxia.parser.AbstractTextParser;
import org.apache.maven.doxia.parser.ParseException;
@@ -24,6 +23,8 @@
import org.codehaus.plexus.component.annotations.Component;
import org.codehaus.plexus.util.IOUtil;
import org.codehaus.plexus.util.xml.Xpp3Dom;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
/**
* This class is used by the Doxia framework
@@ -37,6 +38,8 @@
@Component(role = Parser.class, hint = AsciidoctorConverterDoxiaParser.ROLE_HINT)
public class AsciidoctorConverterDoxiaParser extends AbstractTextParser {
+ private final Logger logger = LoggerFactory.getLogger(AsciidoctorConverterDoxiaParser.class);
+
@Inject
protected Provider mavenProjectProvider;
@@ -56,7 +59,7 @@ public void parse(Reader reader, Sink sink, String reference) throws ParseExcept
source = "";
}
} catch (IOException ex) {
- getLog().error("Could not read AsciiDoc source: " + ex.getLocalizedMessage());
+ logger.error("Could not read AsciiDoc source: " + ex.getLocalizedMessage());
return;
}
@@ -84,7 +87,7 @@ public void parse(Reader reader, Sink sink, String reference) throws ParseExcept
try {
// process log messages according to mojo configuration
- new LogRecordsProcessors(logHandler, siteDirectory, errorMessage -> getLog().error(errorMessage))
+ new LogRecordsProcessors(logHandler, siteDirectory, errorMessage -> logger.error(errorMessage))
.processLogRecords(memoryLogHandler);
} catch (Exception exception) {
throw new ParseException(exception.getMessage(), exception);
@@ -100,10 +103,10 @@ public void parse(Reader reader, Sink sink, String reference) throws ParseExcept
private MemoryLogHandler asciidoctorLoggingSetup(Asciidoctor asciidoctor, LogHandler logHandler, File siteDirectory) {
final MemoryLogHandler memoryLogHandler = new MemoryLogHandler(logHandler.getOutputToConsole(),
- logRecord -> getLog().info(LogRecordFormatter.format(logRecord, siteDirectory)));
+ logRecord -> logger.info(LogRecordFormatter.format(logRecord, siteDirectory)));
asciidoctor.registerLogHandler(memoryLogHandler);
// disable default console output of AsciidoctorJ
- Logger.getLogger("asciidoctor").setUseParentHandlers(false);
+ java.util.logging.Logger.getLogger("asciidoctor").setUseParentHandlers(false);
return memoryLogHandler;
}
@@ -145,7 +148,7 @@ private void requireLibrary(Asciidoctor asciidoctor, String require) {
try {
asciidoctor.requireLibrary(require);
} catch (Exception ex) {
- getLog().error(ex.getLocalizedMessage());
+ logger.error(ex.getLocalizedMessage());
}
}
}
diff --git a/asciidoctor-converter-doxia-module/src/main/java/org/asciidoctor/maven/site/AsciidoctorConverterDoxiaParserModule.java b/asciidoctor-converter-doxia-module/src/main/java/org/asciidoctor/maven/site/AsciidoctorConverterDoxiaParserModule.java
index cb39ac9a..ae83e2fb 100644
--- a/asciidoctor-converter-doxia-module/src/main/java/org/asciidoctor/maven/site/AsciidoctorConverterDoxiaParserModule.java
+++ b/asciidoctor-converter-doxia-module/src/main/java/org/asciidoctor/maven/site/AsciidoctorConverterDoxiaParserModule.java
@@ -1,8 +1,8 @@
package org.asciidoctor.maven.site;
+import javax.inject.Named;
+
import org.apache.maven.doxia.parser.module.AbstractParserModule;
-import org.apache.maven.doxia.parser.module.ParserModule;
-import org.codehaus.plexus.component.annotations.Component;
/**
* This class is the entry point for integration with the Maven Site Plugin
@@ -12,7 +12,7 @@
*
* @author jdlee
*/
-@Component(role = ParserModule.class, hint = AsciidoctorConverterDoxiaParser.ROLE_HINT)
+@Named(AsciidoctorConverterDoxiaParser.ROLE_HINT)
public class AsciidoctorConverterDoxiaParserModule extends AbstractParserModule {
/**
diff --git a/asciidoctor-parser-doxia-module/pom.xml b/asciidoctor-parser-doxia-module/pom.xml
index 2817dbbc..d069e3f6 100644
--- a/asciidoctor-parser-doxia-module/pom.xml
+++ b/asciidoctor-parser-doxia-module/pom.xml
@@ -43,15 +43,10 @@
doxia-core
${doxia.version}
-
- org.apache.maven.doxia
- doxia-module-markdown
- ${doxia.version}
-
org.apache.maven.doxia
doxia-site-renderer
- 1.11.1
+ ${doxia.version}
test
diff --git a/asciidoctor-parser-doxia-module/src/it/maven-site-plugin/pom.xml b/asciidoctor-parser-doxia-module/src/it/maven-site-plugin/pom.xml
index 2ab11cb7..025e5409 100644
--- a/asciidoctor-parser-doxia-module/src/it/maven-site-plugin/pom.xml
+++ b/asciidoctor-parser-doxia-module/src/it/maven-site-plugin/pom.xml
@@ -17,13 +17,13 @@
org.apache.maven.plugins
maven-project-info-reports-plugin
- 3.4.5
+ 3.5.0
org.apache.maven.plugins
maven-site-plugin
- 3.12.1
+ 4.0.0-M13
${project.basedir}/src/site/asciidoc
diff --git a/asciidoctor-parser-doxia-module/src/it/maven-site-plugin/src/site/site.xml b/asciidoctor-parser-doxia-module/src/it/maven-site-plugin/src/site/site.xml
index 9ae5a719..e339f0d2 100644
--- a/asciidoctor-parser-doxia-module/src/it/maven-site-plugin/src/site/site.xml
+++ b/asciidoctor-parser-doxia-module/src/it/maven-site-plugin/src/site/site.xml
@@ -9,9 +9,10 @@
${reports}