|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 3 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 4 | + <modelVersion>4.0.0</modelVersion> |
| 5 | + <groupId>org.asciidoctor.maven</groupId> |
| 6 | + <artifactId>asciidoc-maven-site-parser-example</artifactId> |
| 7 | + <version>1.0.0-SNAPSHOT</version> |
| 8 | + <name>AsciiDoc Maven Site Example</name> |
| 9 | + <description>An example project that demonstrates how to process AsciiDoc in a Maven site using the Asciidoctor Maven plugin.</description> |
| 10 | + |
| 11 | + <!-- All Maven properties are injected as Asciidoctor attributes. |
| 12 | + Reference them with the same name replacing dots by dashes (e.g. {jruby-version}). --> |
| 13 | + <properties> |
| 14 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 15 | + <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> |
| 16 | + <asciidoctor.maven.plugin.version>3.0.0</asciidoctor.maven.plugin.version> |
| 17 | + <asciidoctorj.version>2.5.11</asciidoctorj.version> |
| 18 | + <jruby.version>9.4.5.0</jruby.version> |
| 19 | + </properties> |
| 20 | + |
| 21 | + <build> |
| 22 | + <plugins> |
| 23 | + <plugin> |
| 24 | + <groupId>org.apache.maven.plugins</groupId> |
| 25 | + <artifactId>maven-site-plugin</artifactId> |
| 26 | + <version>3.12.1</version> |
| 27 | + <configuration> |
| 28 | + <!-- Disable generateReports if you don't want to include the built-in reports --> |
| 29 | + <generateReports>true</generateReports> |
| 30 | + <generateSitemap>true</generateSitemap> |
| 31 | + <relativizeDecorationLinks>false</relativizeDecorationLinks> |
| 32 | + <locales>en</locales> |
| 33 | + <inputEncoding>UTF-8</inputEncoding> |
| 34 | + <outputEncoding>UTF-8</outputEncoding> |
| 35 | + <asciidoc> |
| 36 | + <!-- Optional site-wide AsciiDoc attributes --> |
| 37 | + <attributes> |
| 38 | + <icons>font</icons> |
| 39 | + <!-- Add required rouge styles in '/css/site.css' --> |
| 40 | + <source-highlighter>rouge</source-highlighter> |
| 41 | + <toclevels>2</toclevels> |
| 42 | + </attributes> |
| 43 | + </asciidoc> |
| 44 | + </configuration> |
| 45 | + <dependencies> |
| 46 | + <dependency> |
| 47 | + <groupId>org.asciidoctor</groupId> |
| 48 | + <artifactId>asciidoctor-parser-doxia-module</artifactId> |
| 49 | + <version>${asciidoctor.maven.plugin.version}</version> |
| 50 | + </dependency> |
| 51 | + <!-- Comment this section to use the default jruby artifact provided by the plugin --> |
| 52 | + <dependency> |
| 53 | + <groupId>org.jruby</groupId> |
| 54 | + <artifactId>jruby</artifactId> |
| 55 | + <version>${jruby.version}</version> |
| 56 | + </dependency> |
| 57 | + <!-- Comment this section to use the default AsciidoctorJ artifact provided by the plugin --> |
| 58 | + <dependency> |
| 59 | + <groupId>org.asciidoctor</groupId> |
| 60 | + <artifactId>asciidoctorj</artifactId> |
| 61 | + <version>${asciidoctorj.version}</version> |
| 62 | + </dependency> |
| 63 | + </dependencies> |
| 64 | + </plugin> |
| 65 | + </plugins> |
| 66 | + </build> |
| 67 | + |
| 68 | + <reporting> |
| 69 | + <plugins> |
| 70 | + <plugin> |
| 71 | + <artifactId>maven-project-info-reports-plugin</artifactId> |
| 72 | + <version>3.5.0</version> |
| 73 | + </plugin> |
| 74 | + </plugins> |
| 75 | + </reporting> |
| 76 | + |
| 77 | +</project> |
0 commit comments