pom.xml 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <groupId>cn.itlym.shoulder</groupId>
  7. <artifactId>shoulder-specs-doc</artifactId>
  8. <version>0.0.1-SNAPSHOT</version>
  9. <properties>
  10. <maven.build.timestamp.format>yyyy-MM-dd HH</maven.build.timestamp.format>
  11. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  12. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  13. <maven.compiler.encoding>UTF-8</maven.compiler.encoding>
  14. <maven.compiler.source>8</maven.compiler.source>
  15. <maven.compiler.target>8</maven.compiler.target>
  16. <asciidoctor.maven.plugin.version>3.0.0</asciidoctor.maven.plugin.version>
  17. <asciidoctorj.version>2.5.13</asciidoctorj.version>
  18. <asciidoctorj.diagram.version>2.3.1</asciidoctorj.diagram.version>
  19. <jruby.version>9.4.6.0</jruby.version>
  20. <!-- <asciidoctorj-pdf.version>2.3.9</asciidoctorj-pdf.version>-->
  21. <spring-asciidoctor-backends.version>0.0.7</spring-asciidoctor-backends.version>
  22. </properties>
  23. <organization>
  24. <name>shoulder</name>
  25. </organization>
  26. <repositories>
  27. <repository>
  28. <id>spring-milestones</id>
  29. <name>Spring Milestones</name>
  30. <url>https://repo.spring.io/milestone</url>
  31. </repository>
  32. <repository>
  33. <id>spring-snapshots</id>
  34. <name>Spring Snapshots</name>
  35. <url>https://repo.spring.io/snapshot</url>
  36. <snapshots>
  37. <enabled>true</enabled>
  38. </snapshots>
  39. </repository>
  40. </repositories>
  41. <pluginRepositories>
  42. <pluginRepository>
  43. <id>spring-milestones</id>
  44. <name>Spring Milestones</name>
  45. <url>https://repo.spring.io/milestone</url>
  46. </pluginRepository>
  47. <pluginRepository>
  48. <id>spring-snapshots</id>
  49. <name>Spring Snapshots</name>
  50. <url>https://repo.spring.io/snapshot</url>
  51. <snapshots>
  52. <enabled>true</enabled>
  53. </snapshots>
  54. </pluginRepository>
  55. </pluginRepositories>
  56. <build>
  57. <!-- https://github.com/asciidoctor/asciidoctor-maven-examples -->
  58. <!-- https://github.com/asciidoctor/asciidoctor-maven-plugin/blob/master/README_zh-CN.adoc -->
  59. <!-- 默认命令,配置后可以直接使用mvn编译(mvn clean process-asciidoc) 2000 端口开发访问 mvn asciidoctor:http -->
  60. <!--mvn generate-resources -Dasciidoctor.attributes=toc=right-->
  61. <defaultGoal>process-resources</defaultGoal>
  62. <resources>
  63. <resource>
  64. <directory>src/main/resources</directory>
  65. <targetPath>${project.build.directory}/book</targetPath>
  66. </resource>
  67. </resources>
  68. <plugins>
  69. <!-- generate docs -->
  70. <plugin>
  71. <groupId>org.asciidoctor</groupId>
  72. <artifactId>asciidoctor-maven-plugin</artifactId>
  73. <version>${asciidoctor.maven.plugin.version}</version>
  74. <dependencies>
  75. <dependency>
  76. <groupId>io.spring.asciidoctor.backends</groupId>
  77. <artifactId>spring-asciidoctor-backends</artifactId>
  78. <version>0.0.7</version>
  79. </dependency>
  80. <!-- Comment this section to use the default jruby artifact provided by the plugin -->
  81. <dependency>
  82. <groupId>org.jruby</groupId>
  83. <artifactId>jruby</artifactId>
  84. <version>${jruby.version}</version>
  85. </dependency>
  86. <!-- Comment this section to use the default AsciidoctorJ artifact provided by the plugin -->
  87. <dependency>
  88. <groupId>org.asciidoctor</groupId>
  89. <artifactId>asciidoctorj</artifactId>
  90. <version>${asciidoctorj.version}</version>
  91. </dependency>
  92. <dependency>
  93. <groupId>org.asciidoctor</groupId>
  94. <artifactId>asciidoctorj-diagram</artifactId>
  95. <version>${asciidoctorj.diagram.version}</version>
  96. </dependency>
  97. </dependencies>
  98. <configuration>
  99. <sourceDirectory>src/docs/asciidoc</sourceDirectory>
  100. <!-- Attributes common to all output formats -->
  101. <requires>
  102. <require>asciidoctor-diagram</require>
  103. <!-- <require>asciidoctor-bibliography</require>-->
  104. <!-- <require>plantuml</require>-->
  105. <!-- <require>${project.basedir}/src/main/resources/nofollow_processor.rb</require>-->
  106. </requires>
  107. <attributes>
  108. <!-- <sourcedir>${project.build.sourceDirectory}</sourcedir>-->
  109. <!-- <relative-basedir>true</relative-basedir>-->
  110. <lang>zh-CN</lang>
  111. <base-url>https://doc.itlym.cn/</base-url>
  112. <doctype>article</doctype>
  113. <docdir>.</docdir>
  114. </attributes>
  115. </configuration>
  116. <executions>
  117. <execution>
  118. <id>generate-html-documentation</id>
  119. <phase>generate-resources</phase>
  120. <goals>
  121. <goal>process-asciidoc</goal>
  122. </goals>
  123. <configuration>
  124. <backend>spring-html</backend>
  125. <attributes>
  126. <imagesdir>/images</imagesdir>
  127. <toc>left</toc>
  128. <icons>font</icons>
  129. <sectanchors>true</sectanchors>
  130. <idprefix/>
  131. <idseparator>-</idseparator>
  132. </attributes>
  133. </configuration>
  134. </execution>
  135. </executions>
  136. </plugin>
  137. </plugins>
  138. </build>
  139. </project>