-
Notifications
You must be signed in to change notification settings - Fork 0
/
pom.xml
150 lines (140 loc) · 6.93 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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
<?xml version="1.0" encoding="UTF-8"?>
<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>dev.unexist</groupId>
<artifactId>skeleton-arc42</artifactId>
<version>1.0.0-SNAPSHOT</version>
<name>arc42-skeleton</name>
<url>httsp//unexist.dev</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<asciidoctorj.diagram.version>2.0.5</asciidoctorj.diagram.version>
<asciidoctor.maven-plugin.version>2.1.0</asciidoctor.maven-plugin.version>
<maven-clean-plugin.version>1.4</maven-clean-plugin.version>
<sourceDirectory>./src/main/asciidoc</sourceDirectory>
<outputDirectory>./target/static/documentation</outputDirectory>
<asciidocDirectory>./src/main/asciidoc</asciidocDirectory>
<timestamp>${maven.build.timestamp}</timestamp>
<maven.build.timestamp.format>yyyy-MM-dd HH:mm</maven.build.timestamp.format>
<confluence.publisher.version>0.12.0</confluence.publisher.version>
<!-- Confluence config -->
<!-- NOTE: Be careful with the ancestorID, everything will be overwritten -->
<confluence.url>https://unexist.dev</confluence.url>
<confluence.publishingStrategy>APPEND_TO_ANCESTOR</confluence.publishingStrategy>
<!-- Provide these values from env; don't commit them! -->
<confluence.spaceKey></confluence.spaceKey>
<confluence.ancestorId></confluence.ancestorId>
<confluence.publisherUserName></confluence.publisherUserName>
<confluence.publisherPassword></confluence.publisherPassword>
</properties>
<build>
<plugins>
<plugin>
<groupId>maven</groupId>
<artifactId>maven-clean-plugin</artifactId>
<version>${maven-clean-plugin.version}</version>
<configuration>
<filesets>
<fileset>
<directory>src/main/resources/static/documentation</directory>
<followSymlinks>false</followSymlinks>
</fileset>
</filesets>
</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-diagram</artifactId>
<version>${asciidoctorj.diagram.version}</version>
</dependency>
</dependencies>
<configuration>
<sourceDirectory>${sourceDirectory}</sourceDirectory>
<outputDirectory>${outputDirectory}</outputDirectory>
<attributes>
<!-- Uses the <img src="data:image/png;base64> syntax for diagrams -->
<data-uri/>
<!-- Allows access to remote files (eg. code on external GitHub) -->
<imagesdir>./images</imagesdir>
<allow-uri-read>true</allow-uri-read>
</attributes>
<requires>
<require>asciidoctor-diagram</require>
</requires>
<logHandler>
<outputToConsole>true</outputToConsole>
<failIf>
<severity>DEBUG</severity>
</failIf>
</logHandler>
</configuration>
<executions>
<execution>
<id>generate-html-doc</id>
<phase>generate-resources</phase>
<goals>
<goal>process-asciidoc</goal>
</goals>
<configuration>
<backend>html5</backend>
<attributes>
<toc>left</toc>
<sectanchors>true</sectanchors>
<source-highlighter>highlight.js</source-highlighter>
</attributes>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<!-- NOTE: Excludes this plugin from the default profile -->
<profiles>
<profile>
<id>generate-docs-and-publish</id>
<build>
<plugins>
<plugin>
<groupId>org.sahli.asciidoc.confluence.publisher</groupId>
<artifactId>asciidoc-confluence-publisher-maven-plugin</artifactId>
<version>${confluence.publisher.version}</version>
<configuration>
<asciidocRootFolder>${asciidocDirectory}</asciidocRootFolder>
<sourceEncoding>UTF-8</sourceEncoding>
<rootConfluenceUrl>${confluence.url}</rootConfluenceUrl>
<spaceKey>${confluence.spaceKey}</spaceKey>
<ancestorId>${confluence.ancestorId}</ancestorId>
<username>${confluence.publisherUserName}</username>
<password>${confluence.publisherPassword}</password>
<pageTitlePrefix xml:space="preserve"/>
<publishingStrategy>${confluence.publishingStrategy}
</publishingStrategy>
<pageTitleSuffix
xml:space="preserve"> [${project.version}]</pageTitleSuffix>
<versionMessage>Version ${project.version}</versionMessage>
<attributes>
<version>${project.version}</version>
<someOtherKey>value</someOtherKey>
</attributes>
</configuration>
<executions>
<execution>
<id>publish-documentation</id>
<phase>generate-resources</phase>
<goals>
<goal>publish</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>