|
6 | 6 | Global parent pom.xml for Spring Data modules to inherit from.
|
7 | 7 |
|
8 | 8 | - Shared resources are pulled in from the spring-data-build-resources dependency (images, CSS, XSLTs for documentation generation)
|
9 |
| - - Renders reference documentation from Docbook file named index.xml within src/docbkx |
10 |
| - - In the "distribute" profile, two assemblies are generated: |
11 |
| - - one to be published on the download portal (incl. binaries, sources, javadoc (jarred and browsable), reference documentation in pdf, html and html single page) |
| 9 | + - Renders reference documentation from Asciidoctor file named index.adoc within src/main/asciidoc |
| 10 | + - In the "distribute" profile, an assembly is generated: |
12 | 11 | - one to be uploaded to static.springsource.org (incl. javadoc (browsable), reference docs as described before)
|
13 | 12 |
|
14 | 13 | Preconfigures the following:
|
|
45 | 44 | <developer>
|
46 | 45 | <id>ogierke</id>
|
47 | 46 | <name>Oliver Gierke</name>
|
48 |
| - <email>ogierke at gopivotal.com</email> |
| 47 | + <email>ogierke at pivotal.io</email> |
49 | 48 | <organization>Pivotal Software, Inc.</organization>
|
50 |
| - <organizationUrl>http://www.gopivotal.com</organizationUrl> |
| 49 | + <organizationUrl>http://www.spring.io</organizationUrl> |
51 | 50 | <roles>
|
52 | 51 | <role>Project lead</role>
|
53 | 52 | </roles>
|
|
207 | 206 | </executions>
|
208 | 207 | </plugin>
|
209 | 208 |
|
210 |
| - <!-- |
211 |
| - Renders reference documentation from Docbook sources. |
212 |
| - --> |
213 |
| - |
214 |
| - <plugin> |
215 |
| - <groupId>com.agilejava.docbkx</groupId> |
216 |
| - <artifactId>docbkx-maven-plugin</artifactId> |
217 |
| - <version>2.0.14</version> |
218 |
| - <executions> |
219 |
| - |
220 |
| - <!-- Configuration for PDF creation --> |
221 |
| - <execution> |
222 |
| - <id>pdf</id> |
223 |
| - <goals> |
224 |
| - <goal>generate-pdf</goal> |
225 |
| - </goals> |
226 |
| - <phase>package</phase> |
227 |
| - <configuration> |
228 |
| - <admonGraphicsPath>${shared.resources}/docbkx/images/</admonGraphicsPath> |
229 |
| - <imgSrcPath>${basedir}/src/docbkx/</imgSrcPath> |
230 |
| - <postProcess> |
231 |
| - <copy todir="${project.build.directory}/site/reference"> |
232 |
| - <fileset dir="${project.build.directory}/docbkx"> |
233 |
| - <include name="**/*.pdf"/> |
234 |
| - </fileset> |
235 |
| - </copy> |
236 |
| - <move file="${project.build.directory}/site/reference/pdf/index.pdf" tofile="${project.basedir}/target/site/reference/pdf/${dist.id}-reference.pdf"/> |
237 |
| - </postProcess> |
238 |
| - </configuration> |
239 |
| - </execution> |
240 |
| - |
241 |
| - </executions> |
242 |
| - |
243 |
| - <dependencies> |
244 |
| - <dependency> |
245 |
| - <groupId>org.docbook</groupId> |
246 |
| - <artifactId>docbook-xml</artifactId> |
247 |
| - <version>4.4</version> |
248 |
| - <scope>runtime</scope> |
249 |
| - </dependency> |
250 |
| - </dependencies> |
251 |
| - |
252 |
| - <!-- Common Docbook configuration --> |
253 |
| - <configuration> |
254 |
| - <sourceDirectory>${project.build.directory}/generated-docs</sourceDirectory> |
255 |
| - <includes>index.xml</includes> |
256 |
| - <xincludeSupported>true</xincludeSupported> |
257 |
| - <chunkedOutput>false</chunkedOutput> |
258 |
| - <foCustomization>${shared.resources}/docbkx/xsl/pdf.xsl</foCustomization> |
259 |
| - <useExtensions>1</useExtensions> |
260 |
| - <highlightSource>1</highlightSource> |
261 |
| - </configuration> |
262 |
| - </plugin> |
263 |
| - |
264 | 209 | <!--
|
265 | 210 | Copies all namespaces schemas to target/schemas flatten the directory structure.
|
266 | 211 | Depended on by the site.xml assembly descriptor.
|
|
298 | 243 | </execution>
|
299 | 244 |
|
300 | 245 | <execution>
|
301 |
| - <id>copy-documentation-images</id> |
| 246 | + <id>collect-schema-files</id> |
302 | 247 | <phase>process-resources</phase>
|
303 | 248 | <configuration>
|
304 | 249 | <target>
|
305 |
| - <copy todir="${shared.resources}/docbkx/images"> |
306 |
| - <fileset dir="${basedir}/src/docbkx" erroronmissingdir="false"> |
307 |
| - <include name="**/*.jpg"/> |
308 |
| - <include name="**/*.gif"/> |
309 |
| - <include name="**/*.png"/> |
| 250 | + <copy todir="${project.build.directory}/schemas"> |
| 251 | + <fileset dir="${basedir}" erroronmissingdir="false"> |
| 252 | + <include name="**/src/main/resources/**/config/spring-*.xsd"/> |
310 | 253 | </fileset>
|
311 | 254 | <flattenmapper/>
|
312 | 255 | </copy>
|
|
318 | 261 | </execution>
|
319 | 262 |
|
320 | 263 | <execution>
|
321 |
| - <id>collect-schema-files</id> |
| 264 | + <id>rename-reference-docs</id> |
322 | 265 | <phase>process-resources</phase>
|
323 | 266 | <configuration>
|
324 | 267 | <target>
|
325 |
| - <copy todir="${project.build.directory}/schemas"> |
326 |
| - <fileset dir="${basedir}" erroronmissingdir="false"> |
327 |
| - <include name="**/src/main/resources/**/config/spring-*.xsd"/> |
328 |
| - </fileset> |
329 |
| - <flattenmapper/> |
330 |
| - </copy> |
| 268 | + <copy file="${project.build.directory}/generated-docs/index.pdf" tofile="${project.basedir}/target/site/reference/pdf/${dist.id}-reference.pdf"/> |
| 269 | + <copy file="${project.build.directory}/generated-docs/index.epub" tofile="${project.basedir}/target/site/reference/epub/${dist.id}-reference.epub"/> |
331 | 270 | </target>
|
332 | 271 | </configuration>
|
333 | 272 | <goals>
|
334 | 273 | <goal>run</goal>
|
335 | 274 | </goals>
|
336 | 275 | </execution>
|
| 276 | + |
337 | 277 | </executions>
|
338 | 278 |
|
339 | 279 | </plugin>
|
|
351 | 291 | <groupId>org.asciidoctor</groupId>
|
352 | 292 | <artifactId>asciidoctor-maven-plugin</artifactId>
|
353 | 293 | <version>1.5.0</version>
|
| 294 | + <dependencies> |
| 295 | + <dependency> |
| 296 | + <groupId>org.asciidoctor</groupId> |
| 297 | + <artifactId>asciidoctorj</artifactId> |
| 298 | + <version>1.5.2</version> |
| 299 | + </dependency> |
| 300 | + <dependency> |
| 301 | + <groupId>org.asciidoctor</groupId> |
| 302 | + <artifactId>asciidoctorj-pdf</artifactId> |
| 303 | + <version>1.5.0-alpha.6</version> |
| 304 | + </dependency> |
| 305 | + <dependency> |
| 306 | + <groupId>org.asciidoctor</groupId> |
| 307 | + <artifactId>asciidoctorj-epub3</artifactId> |
| 308 | + <version>1.5.0-alpha.4</version> |
| 309 | + </dependency> |
| 310 | + </dependencies> |
354 | 311 | <executions>
|
355 | 312 |
|
356 | 313 | <execution>
|
|
361 | 318 | </goals>
|
362 | 319 | <configuration>
|
363 | 320 | <backend>html5</backend>
|
364 |
| - <sourceHighlighter>prettify</sourceHighlighter> |
365 | 321 | <outputDirectory>${project.root}/target/site/reference/html</outputDirectory>
|
| 322 | + <sectids>false</sectids> |
| 323 | + <sourceHighlighter>prettify</sourceHighlighter> |
366 | 324 | <attributes>
|
367 | 325 | <linkcss>true</linkcss>
|
368 |
| - <numbered>true</numbered> |
369 | 326 | <icons>font</icons>
|
370 | 327 | <sectanchors>true</sectanchors>
|
371 | 328 | <stylesheet>spring.css</stylesheet>
|
372 |
| - <toclevels>3</toclevels> |
373 | 329 | </attributes>
|
374 | 330 | </configuration>
|
375 | 331 | </execution>
|
376 | 332 |
|
377 | 333 | <execution>
|
378 |
| - <id>docbook</id> |
| 334 | + <id>epub</id> |
379 | 335 | <phase>generate-resources</phase>
|
380 | 336 | <goals>
|
381 | 337 | <goal>process-asciidoc</goal>
|
382 | 338 | </goals>
|
383 | 339 | <configuration>
|
384 |
| - <backend>docbook5</backend> |
| 340 | + <backend>epub3</backend> |
| 341 | + <sourceHighlighter>coderay</sourceHighlighter> |
| 342 | + </configuration> |
| 343 | + </execution> |
| 344 | + |
| 345 | + <execution> |
| 346 | + <id>pdf</id> |
| 347 | + <phase>generate-resources</phase> |
| 348 | + <goals> |
| 349 | + <goal>process-asciidoc</goal> |
| 350 | + </goals> |
| 351 | + <configuration> |
| 352 | + <backend>pdf</backend> |
| 353 | + <sourceHighlighter>coderay</sourceHighlighter> |
385 | 354 | </configuration>
|
386 | 355 | </execution>
|
387 | 356 |
|
|
399 | 368 | <querydslVersion>${querydsl}</querydslVersion>
|
400 | 369 | <springVersion>${spring}</springVersion>
|
401 | 370 | <allow-uri-read>true</allow-uri-read>
|
402 |
| - <sectids>false</sectids> |
| 371 | + <toclevels>3</toclevels> |
| 372 | + <numbered>true</numbered> |
403 | 373 | </attributes>
|
404 | 374 | </configuration>
|
405 | 375 |
|
|
660 | 630 | </plugin>
|
661 | 631 |
|
662 | 632 | <plugin>
|
663 |
| - <groupId>org.apache.maven.plugins</groupId> |
| 633 | + <groupId>org.apache.maven.plugins</groupId> |
664 | 634 | <artifactId>maven-compiler-plugin</artifactId>
|
665 | 635 | <version>3.1</version>
|
666 | 636 | <configuration>
|
|
771 | 741 | <id>spring-plugins-release</id>
|
772 | 742 | <url>https://repo.spring.io/plugins-release</url>
|
773 | 743 | </pluginRepository>
|
| 744 | + <pluginRepository> |
| 745 | + <id>jcenter</id> |
| 746 | + <url>https://dl.bintray.com/asciidoctor/maven</url> |
| 747 | + </pluginRepository> |
774 | 748 | </pluginRepositories>
|
775 | 749 |
|
776 | 750 | </project>
|
0 commit comments