|
42 | 42 |
|
43 | 43 | <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
|
44 | 44 |
|
| 45 | + <!-- Antora --> |
| 46 | + <node.version>v18.12.1</node.version> |
| 47 | + <npm.version>8.19.2</npm.version> |
| 48 | + <antora.version>3.2.0-alpha.2</antora.version> |
| 49 | + <antora-atlas.version>1.0.0-alpha.1</antora-atlas.version> |
| 50 | + <antora-collector.version>1.0.0-alpha.3</antora-collector.version> |
| 51 | + <asciidoctor-tabs.version>1.0.0-beta.3</asciidoctor-tabs.version> |
| 52 | + <spring-antora-extensions.version>1.4.0</spring-antora-extensions.version> |
| 53 | + <spring-asciidoctor-extensions.version>1.0.0-alpha.9</spring-asciidoctor-extensions.version> |
| 54 | + |
45 | 55 | </properties>
|
46 | 56 |
|
47 | 57 | <modules>
|
|
101 | 111 | <eclipselink>4.0.0</eclipselink>
|
102 | 112 | </properties>
|
103 | 113 | </profile>
|
104 |
| - |
| 114 | + <profile> |
| 115 | + <id>docs</id> |
| 116 | + <build> |
| 117 | + <plugins> |
| 118 | + <plugin> |
| 119 | + <groupId>com.github.eirslett</groupId> |
| 120 | + <artifactId>frontend-maven-plugin</artifactId> |
| 121 | + <version>1.12.1</version> |
| 122 | + <executions> |
| 123 | + <execution> |
| 124 | + <id>install-antora</id> |
| 125 | + <goals> |
| 126 | + <goal>install-node-and-npm</goal> |
| 127 | + </goals> |
| 128 | + <phase>initialize</phase> |
| 129 | + <configuration> |
| 130 | + <nodeVersion>${node.version}</nodeVersion> |
| 131 | + <npmVersion>${npm.version}</npmVersion> |
| 132 | + </configuration> |
| 133 | + </execution> |
| 134 | + <execution> |
| 135 | + <id>npm install antora</id> |
| 136 | + <goals> |
| 137 | + <goal>npm</goal> |
| 138 | + </goals> |
| 139 | + <phase>initialize</phase> |
| 140 | + <configuration> |
| 141 | + <arguments>install @antora/cli@${antora.version} @antora/site-generator-default@${antora.version} @antora/atlas-extension@${antora-atlas.version} @antora/collector-extension@${antora-collector.version} @asciidoctor/tabs@${asciidoctor-tabs.version} @springio/antora-extensions@${spring-antora-extensions.version} @springio/asciidoctor-extensions@${spring-asciidoctor-extensions.version}</arguments> |
| 142 | + </configuration> |
| 143 | + </execution> |
| 144 | + </executions> |
| 145 | + </plugin> |
| 146 | + <plugin> |
| 147 | + <groupId>org.codehaus.mojo</groupId> |
| 148 | + <artifactId>exec-maven-plugin</artifactId> |
| 149 | + <version>3.0.0</version> |
| 150 | + <executions> |
| 151 | + <execution> |
| 152 | + <id>antora</id> |
| 153 | + <goals> |
| 154 | + <goal>exec</goal> |
| 155 | + </goals> |
| 156 | + <phase>compile</phase> |
| 157 | + <configuration> |
| 158 | + <!-- If we don't want to depend on default node installation path we can use a maven |
| 159 | + property aligned with frontend-maven-plugin's installDirectory configuration --> |
| 160 | + <executable>node/node</executable> |
| 161 | + <arguments> |
| 162 | + <argument>node_modules/.bin/antora</argument> |
| 163 | + <argument>src/main/antora/antora-playbook.yml</argument> |
| 164 | + <argument>--to-dir=target/site</argument> |
| 165 | + </arguments> |
| 166 | + <workingDirectory>${project.parent.basedir}</workingDirectory> |
| 167 | + </configuration> |
| 168 | + </execution> |
| 169 | + </executions> |
| 170 | + </plugin> |
| 171 | + <plugin> |
| 172 | + <groupId>org.apache.maven.plugins</groupId> |
| 173 | + <artifactId>maven-clean-plugin</artifactId> |
| 174 | + <version>3.1.0</version> |
| 175 | + <configuration> |
| 176 | + <filesets> |
| 177 | + <fileset> |
| 178 | + <directory>node</directory> |
| 179 | + <followSymlinks>false</followSymlinks> |
| 180 | + </fileset> |
| 181 | + <fileset> |
| 182 | + <directory>node_modules</directory> |
| 183 | + <followSymlinks>false</followSymlinks> |
| 184 | + </fileset> |
| 185 | + <fileset> |
| 186 | + <directory>build</directory> |
| 187 | + <followSymlinks>false</followSymlinks> |
| 188 | + </fileset> |
| 189 | + </filesets> |
| 190 | + </configuration> |
| 191 | + </plugin> |
| 192 | + </plugins> |
| 193 | + <resources> |
| 194 | + <resource> |
| 195 | + <directory>src/main/resources</directory> |
| 196 | + <filtering>true</filtering> |
| 197 | + </resource> |
| 198 | + </resources> |
| 199 | + </build> |
| 200 | + </profile> |
105 | 201 | </profiles>
|
106 | 202 |
|
107 | 203 | <dependencyManagement>
|
|
202 | 298 | </execution>
|
203 | 299 | </executions>
|
204 | 300 | </plugin>
|
205 |
| - |
206 | 301 | </plugins>
|
207 | 302 | </build>
|
208 | 303 |
|
|
0 commit comments