pom.xml 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  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>2.2.4</asciidoctor-maven-plugin.version>
  17. <!-- <asciidoctorj.version>2023.26</asciidoctorj.version>-->
  18. <!-- <asciidoctorj-diagram.version>2.2.10</asciidoctorj-diagram.version>-->
  19. <!-- <asciidoctorj-pdf.version>2.3.9</asciidoctorj-pdf.version>-->
  20. <spring-asciidoctor-backends.version>0.0.7</spring-asciidoctor-backends.version>
  21. <!-- <jruby.version>9.4.3.0</jruby.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. <configuration>
  75. <sourceDirectory>src/docs/asciidoc</sourceDirectory>
  76. <!-- Attributes common to all output formats -->
  77. <attributes>
  78. <sourcedir>${project.build.sourceDirectory}</sourcedir>
  79. <!-- <relative-basedir>true</relative-basedir>-->
  80. <lang>zh-CN</lang>
  81. <base-url>https://doc.itlym.cn/</base-url>
  82. <!-- <endpoint-url>http://vmware.com</endpoint-url>-->
  83. <!-- <project-version>${project.version}</project-version>-->
  84. <!-- <requires>-->
  85. <!-- <require>asciidoctor-diagram</require>-->
  86. <!-- <require>${project.basedir}/src/main/resources/nofollow_processor.rb</require>-->
  87. <!-- </requires>-->
  88. <!-- 引用 -->
  89. <requires>
  90. <require>asciidoctor-bibliography</require>
  91. <require>plantuml</require>
  92. </requires>
  93. <doctype>article</doctype>
  94. <docdir>.</docdir>
  95. </attributes>
  96. </configuration>
  97. <executions>
  98. <execution>
  99. <id>generate-html-documentation</id>
  100. <phase>generate-resources</phase>
  101. <goals>
  102. <goal>process-asciidoc</goal>
  103. </goals>
  104. <configuration>
  105. <backend>spring-html</backend>
  106. </configuration>
  107. </execution>
  108. </executions>
  109. <dependencies>
  110. <dependency>
  111. <groupId>io.spring.asciidoctor.backends</groupId>
  112. <artifactId>spring-asciidoctor-backends</artifactId>
  113. <version>${spring-asciidoctor-backends.version}</version>
  114. </dependency>
  115. <!-- <dependency>-->
  116. <!-- <groupId>org.jruby</groupId>-->
  117. <!-- <artifactId>jruby-complete</artifactId>-->
  118. <!-- <version>${jruby.version}</version>-->
  119. <!-- </dependency>-->
  120. </dependencies>
  121. </plugin>
  122. <!-- copy resources to be served -->
  123. <!-- <plugin>-->
  124. <!-- <groupId>org.apache.maven.plugins</groupId>-->
  125. <!-- <artifactId>maven-resources-plugin</artifactId>-->
  126. <!-- <version>2.6</version>-->
  127. <!-- <executions>-->
  128. <!-- <execution>-->
  129. <!-- <id>copy-asciidoc-resources</id>-->
  130. <!-- <phase>process-resources</phase>-->
  131. <!-- <goals>-->
  132. <!-- <goal>copy-resources</goal>-->
  133. <!-- </goals>-->
  134. <!-- <configuration>-->
  135. <!-- <resources>-->
  136. <!-- <resource>-->
  137. <!-- <directory>target/generated-docs</directory>-->
  138. <!-- <includes>-->
  139. <!-- <include>**/*</include>-->
  140. <!-- </includes>-->
  141. <!-- </resource>-->
  142. <!-- </resources>-->
  143. <!-- <outputDirectory>src/main/resources/static</outputDirectory>-->
  144. <!-- </configuration>-->
  145. <!-- </execution>-->
  146. <!-- </executions>-->
  147. <!-- </plugin>-->
  148. </plugins>
  149. </build>
  150. </project>