-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathpom.xml
113 lines (107 loc) · 5.01 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright (c) 2018 - Arcade Analytics LTD (https://arcadeanalytics.com)
-->
<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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.arcadedb</groupId>
<artifactId>arcadedb-doc</artifactId>
<version>23.10.1</version>
<packaging>war</packaging>
<properties>
<asciidoctor.maven.plugin.version>3.1.1</asciidoctor.maven.plugin.version>
<asciidoctorj.version>2.5.1</asciidoctorj.version>
<asciidoctorj.diagram.version>2.3.1</asciidoctorj.diagram.version>
<asciidoctorj.pdf.version>2.3.19</asciidoctorj.pdf.version>
<jetty-maven-plugin.version>11.0.24</jetty-maven-plugin.version>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>${jetty-maven-plugin.version}</version>
<configuration>
<webAppSourceDirectory>${project.basedir}/target/generated-docs</webAppSourceDirectory>
<webApp>
<contextPath>/</contextPath>
<!--<descriptor>${project.basedir}/src/over/here/web.xml</descriptor>-->
<!--<jettyEnvXml>${project.basedir}/src/over/here/jetty-env.xml</jettyEnvXml>-->
</webApp>
</configuration>
</plugin>
<plugin>
<groupId>org.asciidoctor</groupId>
<artifactId>asciidoctor-maven-plugin</artifactId>
<version>${asciidoctor.maven.plugin.version}</version>
<dependencies>
<dependency>
<groupId>org.asciidoctor</groupId>
<artifactId>asciidoctorj-pdf</artifactId>
<version>${asciidoctorj.pdf.version}</version>
</dependency>
<dependency>
<groupId>org.asciidoctor</groupId>
<artifactId>asciidoctorj-diagram</artifactId>
<version>${asciidoctorj.diagram.version}</version>
</dependency>
</dependencies>
<configuration>
<requires>
<require>asciidoctor-diagram</require>
</requires>
<preserveDirectories>true</preserveDirectories>
<backend>html5</backend>
<attributes>
<source-highlighter>rouge</source-highlighter>
<imagesdir>./images</imagesdir>
<allow-uri-read>true</allow-uri-read>
<toc>left</toc>
<icons>font</icons>
<sectanchors>true</sectanchors>
<!-- set the idprefix to blank -->
<!--<idprefix/>-->
<idseparator>-</idseparator>
<docinfo1>true</docinfo1>
</attributes>
</configuration>
<executions>
<execution>
<id>output-html</id>
<phase>generate-resources</phase>
<goals>
<goal>process-asciidoc</goal>
</goals>
<configuration>
<sourceDocumentName>index.adoc</sourceDocumentName>
<outputFile>index.html</outputFile>
</configuration>
</execution>
<execution>
<id>generate-pdf-doc</id>
<phase>generate-resources</phase>
<goals>
<goal>process-asciidoc</goal>
</goals>
<configuration>
<backend>pdf</backend>
<sourceDocumentName>manual.adoc</sourceDocumentName>
<outputFile>ArcadeDB-Manual.pdf</outputFile>
<attributes>
<imagesdir>${project.build.directory}/generated-docs/images</imagesdir>
<imagesoutdir>${project.build.directory}/generated-docs/images</imagesoutdir>
<icons>font</icons>
<pagenums/>
<toc/>
<idprefix/>
<idseparator>-</idseparator>
</attributes>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>