|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<!-- |
| 3 | +
|
| 4 | + Copyright (c) 2024 Oracle and/or its affiliates. All rights reserved. |
| 5 | +
|
| 6 | + This program and the accompanying materials are made available under the |
| 7 | + terms of the Eclipse Public License v. 2.0, which is available at |
| 8 | + http://www.eclipse.org/legal/epl-2.0. |
| 9 | +
|
| 10 | + This Source Code may also be made available under the following Secondary |
| 11 | + Licenses when the conditions for such availability set forth in the |
| 12 | + Eclipse Public License v. 2.0 are satisfied: GNU General Public License, |
| 13 | + version 2 with the GNU Classpath Exception, which is available at |
| 14 | + https://www.gnu.org/software/classpath/license.html. |
| 15 | +
|
| 16 | + SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 |
| 17 | +
|
| 18 | +--> |
| 19 | +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 20 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
| 21 | + <modelVersion>4.0.0</modelVersion> |
| 22 | + |
| 23 | + <name>Documentation - Solutions</name> |
| 24 | + <description>Documentation - User Guide (Old)</description> |
| 25 | + <groupId>org.eclipse.persistence</groupId> |
| 26 | + <artifactId>org.eclipse.persistence.documentation.userguide</artifactId> |
| 27 | + <version>5.0.0-SNAPSHOT</version> |
| 28 | + <packaging>pom</packaging> |
| 29 | + |
| 30 | + <parent> |
| 31 | + <groupId>org.eclipse.persistence</groupId> |
| 32 | + <artifactId>org.eclipse.persistence.documentation</artifactId> |
| 33 | + <version>5.0.0-SNAPSHOT</version> |
| 34 | + <relativePath>../pom.xml</relativePath> |
| 35 | + </parent> |
| 36 | + |
| 37 | + <properties> |
| 38 | + <source.document.name>main.adoc</source.document.name> |
| 39 | + <source.document.directory>${project.basedir}/src/main/asciidoc</source.document.directory> |
| 40 | + <output.document.name>user-guide</output.document.name> |
| 41 | + </properties> |
| 42 | + |
| 43 | + <build> |
| 44 | + <plugins> |
| 45 | + <plugin> |
| 46 | + <artifactId>maven-resources-plugin</artifactId> |
| 47 | + <executions> |
| 48 | + <execution> |
| 49 | + <id>copy-source-documents</id> |
| 50 | + <phase>generate-resources</phase> |
| 51 | + </execution> |
| 52 | + </executions> |
| 53 | + </plugin> |
| 54 | + <plugin> |
| 55 | + <groupId>org.apache.maven.plugins</groupId> |
| 56 | + <artifactId>maven-dependency-plugin</artifactId> |
| 57 | + <executions> |
| 58 | + <execution> |
| 59 | + <id>unpack-shared-docs</id> |
| 60 | + <phase>generate-resources</phase> |
| 61 | + </execution> |
| 62 | + </executions> |
| 63 | + </plugin> |
| 64 | + <plugin> |
| 65 | + <groupId>org.asciidoctor</groupId> |
| 66 | + <artifactId>asciidoctor-maven-plugin</artifactId> |
| 67 | + <executions> |
| 68 | + <execution> |
| 69 | + <id>asciidoc-to-html</id> |
| 70 | + <phase>generate-resources</phase> |
| 71 | + <configuration> |
| 72 | + <outputFile>${output.document.name}.html</outputFile> |
| 73 | + </configuration> |
| 74 | + </execution> |
| 75 | + <execution> |
| 76 | + <id>asciidoc-to-html-img-text</id> |
| 77 | + <phase>generate-resources</phase> |
| 78 | + </execution> |
| 79 | + <execution> |
| 80 | + <id>asciidoc-to-pdf</id> |
| 81 | + <phase>generate-resources</phase> |
| 82 | + <configuration> |
| 83 | + <outputFile>${output.document.name}.pdf</outputFile> |
| 84 | + </configuration> |
| 85 | + </execution> |
| 86 | + <execution> |
| 87 | + <id>asciidoc-to-epub</id> |
| 88 | + <phase>generate-resources</phase> |
| 89 | + <configuration> |
| 90 | + <outputFile>${output.document.name}.epub</outputFile> |
| 91 | + </configuration> |
| 92 | + </execution> |
| 93 | + </executions> |
| 94 | + </plugin> |
| 95 | + </plugins> |
| 96 | + </build> |
| 97 | +</project> |
0 commit comments