123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102 |
- <?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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <parent>
- <groupId>io.agilehandy</groupId>
- <artifactId>learn-scg-rate-limiting</artifactId>
- <version>0.0.1-SNAPSHOT</version>
- </parent>
- <artifactId>documentation</artifactId>
- <name>documentation</name>
- <description>Learn Spring Cloud Gateway :: documentation</description>
- <dependencies>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-web</artifactId>
- </dependency>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-test</artifactId>
- <scope>test</scope>
- </dependency>
- </dependencies>
- <build>
- <!--<defaultGoal>process-resources</defaultGoal>-->
- <plugins>
- <plugin>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-maven-plugin</artifactId>
- </plugin>
- <!-- 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>
- <endpoint-url>http://vmware.com</endpoint-url>
- <sourcedir>${project.build.sourceDirectory}</sourcedir>
- <project-version>${project.version}</project-version>
- </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>
- </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>
|