123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149 |
- <?xml version="1.0" encoding="UTF-8"?>
- <project xmlns="http://maven.apache.org/POM/4.0.0"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <groupId>cn.itlym.shoulder</groupId>
- <artifactId>shoulder-specs-doc</artifactId>
- <version>0.0.1-SNAPSHOT</version>
- <properties>
- <maven.build.timestamp.format>yyyy-MM-dd HH</maven.build.timestamp.format>
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
- <maven.compiler.encoding>UTF-8</maven.compiler.encoding>
- <maven.compiler.source>8</maven.compiler.source>
- <maven.compiler.target>8</maven.compiler.target>
- <asciidoctor.maven.plugin.version>3.0.0</asciidoctor.maven.plugin.version>
- <asciidoctorj.version>2.5.13</asciidoctorj.version>
- <asciidoctorj.diagram.version>2.3.1</asciidoctorj.diagram.version>
- <jruby.version>9.4.6.0</jruby.version>
- <!-- <asciidoctorj-pdf.version>2.3.9</asciidoctorj-pdf.version>-->
- <spring-asciidoctor-backends.version>0.0.7</spring-asciidoctor-backends.version>
- </properties>
- <organization>
- <name>shoulder</name>
- </organization>
- <repositories>
- <repository>
- <id>spring-milestones</id>
- <name>Spring Milestones</name>
- <url>https://repo.spring.io/milestone</url>
- </repository>
- <repository>
- <id>spring-snapshots</id>
- <name>Spring Snapshots</name>
- <url>https://repo.spring.io/snapshot</url>
- <snapshots>
- <enabled>true</enabled>
- </snapshots>
- </repository>
- </repositories>
- <pluginRepositories>
- <pluginRepository>
- <id>spring-milestones</id>
- <name>Spring Milestones</name>
- <url>https://repo.spring.io/milestone</url>
- </pluginRepository>
- <pluginRepository>
- <id>spring-snapshots</id>
- <name>Spring Snapshots</name>
- <url>https://repo.spring.io/snapshot</url>
- <snapshots>
- <enabled>true</enabled>
- </snapshots>
- </pluginRepository>
- </pluginRepositories>
- <build>
- <!-- https://github.com/asciidoctor/asciidoctor-maven-examples -->
- <!-- https://github.com/asciidoctor/asciidoctor-maven-plugin/blob/master/README_zh-CN.adoc -->
- <!-- 默认命令,配置后可以直接使用mvn编译(mvn clean process-asciidoc) 2000 端口开发访问 mvn asciidoctor:http -->
- <!--mvn generate-resources -Dasciidoctor.attributes=toc=right-->
- <defaultGoal>process-resources</defaultGoal>
- <resources>
- <resource>
- <directory>src/main/resources</directory>
- <targetPath>${project.build.directory}/book</targetPath>
- </resource>
- </resources>
- <plugins>
- <!-- generate docs -->
- <plugin>
- <groupId>org.asciidoctor</groupId>
- <artifactId>asciidoctor-maven-plugin</artifactId>
- <version>${asciidoctor.maven.plugin.version}</version>
- <dependencies>
- <dependency>
- <groupId>io.spring.asciidoctor.backends</groupId>
- <artifactId>spring-asciidoctor-backends</artifactId>
- <version>0.0.7</version>
- </dependency>
- <!-- Comment this section to use the default jruby artifact provided by the plugin -->
- <dependency>
- <groupId>org.jruby</groupId>
- <artifactId>jruby</artifactId>
- <version>${jruby.version}</version>
- </dependency>
- <!-- Comment this section to use the default AsciidoctorJ artifact provided by the plugin -->
- <dependency>
- <groupId>org.asciidoctor</groupId>
- <artifactId>asciidoctorj</artifactId>
- <version>${asciidoctorj.version}</version>
- </dependency>
- <dependency>
- <groupId>org.asciidoctor</groupId>
- <artifactId>asciidoctorj-diagram</artifactId>
- <version>${asciidoctorj.diagram.version}</version>
- </dependency>
- </dependencies>
- <configuration>
- <sourceDirectory>src/docs/asciidoc</sourceDirectory>
- <!-- Attributes common to all output formats -->
- <requires>
- <require>asciidoctor-diagram</require>
- <!-- <require>asciidoctor-bibliography</require>-->
- <!-- <require>plantuml</require>-->
- <!-- <require>${project.basedir}/src/main/resources/nofollow_processor.rb</require>-->
- </requires>
- <attributes>
- <!-- <sourcedir>${project.build.sourceDirectory}</sourcedir>-->
- <!-- <relative-basedir>true</relative-basedir>-->
- <lang>zh-CN</lang>
- <base-url>https://doc.itlym.cn/</base-url>
- <doctype>article</doctype>
- <docdir>.</docdir>
- </attributes>
- </configuration>
- <executions>
- <execution>
- <id>generate-html-documentation</id>
- <phase>generate-resources</phase>
- <goals>
- <goal>process-asciidoc</goal>
- </goals>
- <configuration>
- <backend>spring-html</backend>
- <attributes>
- <imagesdir>/images</imagesdir>
- <toc>left</toc>
- <icons>font</icons>
- <sectanchors>true</sectanchors>
- <idprefix/>
- <idseparator>-</idseparator>
- </attributes>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </project>
|