pom.xml 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <parent>
  7. <groupId>io.agilehandy</groupId>
  8. <artifactId>learn-scg-rate-limiting</artifactId>
  9. <version>0.0.1-SNAPSHOT</version>
  10. </parent>
  11. <artifactId>documentation</artifactId>
  12. <name>documentation</name>
  13. <description>Learn Spring Cloud Gateway :: documentation</description>
  14. <dependencies>
  15. <dependency>
  16. <groupId>org.springframework.boot</groupId>
  17. <artifactId>spring-boot-starter-web</artifactId>
  18. </dependency>
  19. <dependency>
  20. <groupId>org.springframework.boot</groupId>
  21. <artifactId>spring-boot-starter-test</artifactId>
  22. <scope>test</scope>
  23. </dependency>
  24. </dependencies>
  25. <build>
  26. <!--<defaultGoal>process-resources</defaultGoal>-->
  27. <plugins>
  28. <plugin>
  29. <groupId>org.springframework.boot</groupId>
  30. <artifactId>spring-boot-maven-plugin</artifactId>
  31. </plugin>
  32. <!-- generate docs -->
  33. <plugin>
  34. <groupId>org.asciidoctor</groupId>
  35. <artifactId>asciidoctor-maven-plugin</artifactId>
  36. <version>${asciidoctor.maven.plugin.version}</version>
  37. <configuration>
  38. <sourceDirectory>src/docs/asciidoc</sourceDirectory>
  39. <!-- Attributes common to all output formats -->
  40. <attributes>
  41. <endpoint-url>http://vmware.com</endpoint-url>
  42. <sourcedir>${project.build.sourceDirectory}</sourcedir>
  43. <project-version>${project.version}</project-version>
  44. </attributes>
  45. </configuration>
  46. <executions>
  47. <execution>
  48. <id>generate-html-documentation</id>
  49. <phase>generate-resources</phase>
  50. <goals>
  51. <goal>process-asciidoc</goal>
  52. </goals>
  53. <configuration>
  54. <backend>spring-html</backend>
  55. </configuration>
  56. </execution>
  57. </executions>
  58. <dependencies>
  59. <dependency>
  60. <groupId>io.spring.asciidoctor.backends</groupId>
  61. <artifactId>spring-asciidoctor-backends</artifactId>
  62. <version>${spring-asciidoctor-backends.version}</version>
  63. </dependency>
  64. </dependencies>
  65. </plugin>
  66. <!-- copy resources to be served -->
  67. <plugin>
  68. <groupId>org.apache.maven.plugins</groupId>
  69. <artifactId>maven-resources-plugin</artifactId>
  70. <version>2.6</version>
  71. <executions>
  72. <execution>
  73. <id>copy-asciidoc-resources</id>
  74. <phase>process-resources</phase>
  75. <goals>
  76. <goal>copy-resources</goal>
  77. </goals>
  78. <configuration>
  79. <resources>
  80. <resource>
  81. <directory>target/generated-docs</directory>
  82. <includes>
  83. <include>**/*</include>
  84. </includes>
  85. </resource>
  86. </resources>
  87. <outputDirectory>src/main/resources/static</outputDirectory>
  88. </configuration>
  89. </execution>
  90. </executions>
  91. </plugin>
  92. </plugins>
  93. </build>
  94. </project>