123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160 |
- <?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>2.2.4</asciidoctor-maven-plugin.version>
- <!-- <asciidoctorj.version>2023.26</asciidoctorj.version>-->
- <!-- <asciidoctorj-diagram.version>2.2.10</asciidoctorj-diagram.version>-->
- <!-- <asciidoctorj-pdf.version>2.3.9</asciidoctorj-pdf.version>-->
- <spring-asciidoctor-backends.version>0.0.7</spring-asciidoctor-backends.version>
- <!-- <jruby.version>9.4.3.0</jruby.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>
- <configuration>
- <sourceDirectory>src/docs/asciidoc</sourceDirectory>
- <!-- Attributes common to all output formats -->
- <attributes>
- <sourcedir>${project.build.sourceDirectory}</sourcedir>
- <!-- <relative-basedir>true</relative-basedir>-->
- <lang>zh-CN</lang>
- <base-url>https://doc.itlym.cn/</base-url>
- <!-- <endpoint-url>http://vmware.com</endpoint-url>-->
- <!-- <project-version>${project.version}</project-version>-->
- <!-- <requires>-->
- <!-- <require>asciidoctor-diagram</require>-->
- <!-- <require>${project.basedir}/src/main/resources/nofollow_processor.rb</require>-->
- <!-- </requires>-->
- <!-- 引用 -->
- <requires>
- <require>asciidoctor-bibliography</require>
- <require>plantuml</require>
- </requires>
- <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>
- </configuration>
- </execution>
- </executions>
- <dependencies>
- <dependency>
- <groupId>io.spring.asciidoctor.backends</groupId>
- <artifactId>spring-asciidoctor-backends</artifactId>
- <version>${spring-asciidoctor-backends.version}</version>
- </dependency>
- <!-- <dependency>-->
- <!-- <groupId>org.jruby</groupId>-->
- <!-- <artifactId>jruby-complete</artifactId>-->
- <!-- <version>${jruby.version}</version>-->
- <!-- </dependency>-->
- </dependencies>
- </plugin>
- <!-- copy resources to be served -->
- <!-- <plugin>-->
- <!-- <groupId>org.apache.maven.plugins</groupId>-->
- <!-- <artifactId>maven-resources-plugin</artifactId>-->
- <!-- <version>2.6</version>-->
- <!-- <executions>-->
- <!-- <execution>-->
- <!-- <id>copy-asciidoc-resources</id>-->
- <!-- <phase>process-resources</phase>-->
- <!-- <goals>-->
- <!-- <goal>copy-resources</goal>-->
- <!-- </goals>-->
- <!-- <configuration>-->
- <!-- <resources>-->
- <!-- <resource>-->
- <!-- <directory>target/generated-docs</directory>-->
- <!-- <includes>-->
- <!-- <include>**/*</include>-->
- <!-- </includes>-->
- <!-- </resource>-->
- <!-- </resources>-->
- <!-- <outputDirectory>src/main/resources/static</outputDirectory>-->
- <!-- </configuration>-->
- <!-- </execution>-->
- <!-- </executions>-->
- <!-- </plugin>-->
- </plugins>
- </build>
- </project>
|