Last active
November 11, 2019 12:43
-
-
Save mikybars/c46732df077a061e7e675d4e14c529f2 to your computer and use it in GitHub Desktop.
Serving Docs with Spring Boot and Maven Resources Plugin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <build> | |
| <plugins> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-resources-plugin</artifactId> | |
| <version>${maven-resources-plugin.version}</version> | |
| <executions> | |
| <execution> | |
| <id>copy-resources</id> | |
| <phase>prepare-package</phase> | |
| <goals> | |
| <goal>copy-resources</goal> | |
| </goals> | |
| <configuration> | |
| <outputDirectory>${project.build.outputDirectory}/static/docs</outputDirectory> | |
| <resources> | |
| <resource> | |
| <directory> | |
| ${project.build.directory}/generated-docs | |
| </directory> | |
| </resource> | |
| </resources> | |
| </configuration> | |
| </execution> | |
| </executions> | |
| </plugin> | |
| </plugins> | |
| </build> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment