-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathpom.xml
More file actions
347 lines (322 loc) · 16.3 KB
/
pom.xml
File metadata and controls
347 lines (322 loc) · 16.3 KB
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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2016 NumberFour AG.
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License v1.0
which accompanies this distribution, and is available at
http://www.eclipse.org/legal/epl-v10.html
Contributors:
NumberFour AG - Initial API and implementation
-->
<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>
<artifactId>eu.numberfour.n4js.doc</artifactId>
<packaging>eclipse-plugin</packaging>
<description>Converting AsciiDoc to HTML5, bundles documentation with IDE</description>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<asciidoctor.maven.plugin.version>1.5.3</asciidoctor.maven.plugin.version>
<asciidoctorj.version>1.5.4</asciidoctorj.version>
<jruby.version>1.7.21</jruby.version>
<asciidoctorj.pdf.version>1.5.0-alpha.11</asciidoctorj.pdf.version>
<asciidoctor-epub3.version>1.5.0-alpha.6</asciidoctor-epub3.version>
<exec-maven-plugin.version>1.5.0</exec-maven-plugin.version>
<eclipse.html>eclipse-html</eclipse.html>
<website.html>website-html</website.html>
<epub.target.dir>${basedir}/target/epub</epub.target.dir>
<pdf.dir>${basedir}/target/pdf</pdf.dir>
<eclipseHelpBaseDir>${basedir}/target</eclipseHelpBaseDir>
<eclipseHelpDir>${eclipseHelpBaseDir}/${eclipse.html}</eclipseHelpDir>
<eclipseUserguidesDir>${eclipseHelpDir}/userguides</eclipseUserguidesDir>
<help.userguides.list>userguide-list.txt</help.userguides.list>
<help.articles.list>article-list.txt</help.articles.list>
<indices.dir>${basedir}/src-gen/indices</indices.dir>
<dist>dist</dist>
<distribution.dir>${basedir}/${dist}</distribution.dir>
</properties>
<parent>
<groupId>eu.numberfour.n4js</groupId>
<artifactId>eu.numberfour.n4js.docs</artifactId>
<version>0.0.1-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<pluginRepositories>
<pluginRepository>
<id>bintray.jmini.maven</id>
<url>http://dl.bintray.com/jmini/maven/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
<build>
<defaultGoal>process-resources</defaultGoal>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<configuration>
<verbose>true</verbose>
<filesets combine.children="append">
<fileset>
<directory>${distribution.dir}</directory>
<includes>
<include>${eclipse.html}/**</include>
</includes>
<excludes>
</excludes>
<followSymlinks>false</followSymlinks>
</fileset>
</filesets>
</configuration>
</plugin>
<plugin>
<groupId>org.asciidoctor</groupId>
<artifactId>asciidoctor-maven-plugin</artifactId>
<version>${asciidoctor.maven.plugin.version}</version>
<dependencies>
<!-- Comment this section to use the default jruby artifact provided by the plugin -->
<dependency>
<groupId>org.jruby</groupId>
<artifactId>jruby-complete</artifactId>
<version>${jruby.version}</version>
</dependency>
<!-- Comment this section to use the default AsciidoctorJ artifact provided by the plugin -->
<dependency>
<groupId>org.asciidoctor</groupId>
<artifactId>asciidoctorj</artifactId>
<version>${asciidoctorj.version}</version>
</dependency>
<dependency>
<groupId>org.asciidoctor</groupId>
<artifactId>asciidoctorj-pdf</artifactId>
<version>${asciidoctorj.pdf.version}</version>
</dependency>
<dependency>
<groupId>org.asciidoctor</groupId>
<artifactId>asciidoctorj-epub3</artifactId>
<version>${asciidoctor-epub3.version}</version>
</dependency>
</dependencies>
<executions>
<!-- Generate Eclipse HTML-->
<execution>
<id>asciidoc-to-eclipse-html</id>
<phase>generate-resources</phase>
<goals>
<goal>process-asciidoc</goal>
</goals>
<configuration>
<sourceDirectory>src/</sourceDirectory>
<preserveDirectories>true</preserveDirectories>
<outputDirectory>${project.build.directory}/${eclipse.html}</outputDirectory>
<backend>html5</backend>
<sourceHighlighter>highlightjs</sourceHighlighter>
<attributes> <!-- Individual attributes per conversion execution -->
<toc>false</toc> <!-- No embedded TOC -->
<stylesdir>../styles</stylesdir>
<stylesheet>foundation.css</stylesheet>
<highlightjsdir>../scripts</highlightjsdir>
<highlightjs-theme>n4jshighlighter</highlightjs-theme>
<experimental>true</experimental>
<commandkey>⌘</commandkey>
<icons>font</icons>
<sectanchors>true</sectanchors>
<idprefix/>
<idseparator>-</idseparator>
<doctype>book</doctype>
<linkcss>true</linkcss>
<docinfodir>${basedir}/src/_eclipseheader</docinfodir>
<imagesdir></imagesdir>
<docinfo1>true</docinfo1>
</attributes>
</configuration>
</execution>
<!-- PDF Generation of User Guides -->
<execution>
<id>asciidoc-to-pdf</id>
<phase>generate-resources</phase>
<goals>
<goal>process-asciidoc</goal>
</goals>
<configuration>
<skip>true</skip> <!-- Execution skipped! -->
<sourceDirectory>src/</sourceDirectory>
<outputDirectory>${pdf.dir}</outputDirectory>
<backend>pdf</backend>
<sourceHighlighter>highlightjs</sourceHighlighter>
<highlightjsdir>/scripts</highlightjsdir>
<highlightjs-theme>n4jshighlighter</highlightjs-theme>
<attributes>
<toc>left</toc>
<icons>font</icons>
<sectanchors>true</sectanchors>
<idprefix/>
<idseparator>-</idseparator>
<docinfo1>false</docinfo1>
</attributes>
</configuration>
</execution>
</executions>
</plugin>
<!-- eclipse-help file list generation -->
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<!-- userguides file list generation -->
<execution>
<id>userguide-page-list-creation</id>
<phase>generate-resources</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<echo>Running directory listing dir=${eclipseUserguidesDir}</echo>
<fileset id="eclipseuserguides.pages" dir="${eclipseUserguidesDir}" includes="*.html" excludes=""/>
<pathconvert pathsep="${line.separator}" property="prop.dist.contents" refid="eclipseuserguides.pages">
<map from="${project.build.directory}" to="${dist}" />
</pathconvert>
<echo encoding="${file.encoding}" >${prop.dist.contents}</echo>
<echo encoding="${file.encoding}" output="${indices.dir}/${help.userguides.list}">${prop.dist.contents}</echo>
</target>
</configuration>
</execution>
<!-- articles and features file list generation -->
<execution>
<id>article-page-list-creation</id>
<phase>generate-resources</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<echo>Running directory listing dir=${eclipseHelpDir}</echo>
<fileset id="eclipsehelp.articles.pages" dir="${eclipseHelpDir}" includes="**/*.html" excludes="index.html,userguides/*.html,_headers/**/*.html,generated-docs/**/*.html"/>
<pathconvert pathsep="${line.separator}" property="prop.dist.contents" refid="eclipsehelp.articles.pages">
<map from="${project.build.directory}" to="${dist}" />
</pathconvert>
<echo encoding="${file.encoding}" >${prop.dist.contents}</echo>
<echo encoding="${file.encoding}" output="${indices.dir}/${help.articles.list}">${prop.dist.contents}</echo>
</target>
</configuration>
</execution>
</executions>
</plugin>
<!--
Plugin to copy the final output from the /target/ folder into the /dist/folder
-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>${maven-resources-plugin.version}</version>
<executions>
<execution>
<id>distribute-eclipse-help-content</id>
<phase>generate-resources</phase>
<configuration>
<outputDirectory>${distribution.dir}</outputDirectory>
<overwrite>true</overwrite>
<includeEmptyDirs>true</includeEmptyDirs>
<resources>
<resource>
<directory>${project.build.directory}</directory>
<includes>
<!-- Insert more folders here. Make sure that folders end with slash ('/') -->
<include>${eclipse.html}/</include>
</includes>
<filtering>false</filtering>
</resource>
</resources>
</configuration>
<goals>
<goal>copy-resources</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- HTML to Eclipse TOC.XML -->
<plugin>
<groupId>com.bsiag.geneclipsetoc</groupId>
<artifactId>geneclipsetoc-maven-plugin</artifactId>
<version>1.0.2</version>
<executions>
<!-- generating userguides TOC -->
<execution>
<id>userguides-toc</id>
<phase>generate-resources</phase>
<goals>
<goal>geneclipsetoc</goal>
</goals>
<configuration>
<sourceFolder>${basedir}</sourceFolder>
<pagesListFile>${indices.dir}/${help.userguides.list}</pagesListFile>
<outputTocFile>${indices.dir}/userguides.xml</outputTocFile>
</configuration>
</execution>
<!-- generating articles TOC -->
<execution>
<id>articles-toc</id>
<phase>generate-resources</phase>
<goals>
<goal>geneclipsetoc</goal>
</goals>
<configuration>
<sourceFolder>${basedir}</sourceFolder>
<pagesListFile>${indices.dir}/${help.articles.list}</pagesListFile>
<outputTocFile>${indices.dir}/articles.xml</outputTocFile>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<!-- disable tycho functionality in case of "-Dtycho.mode=maven" on command line -->
<profile>
<id>tycho.mode.maven</id>
<activation>
<property>
<name>tycho.mode</name>
<value>maven</value>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-packaging-plugin</artifactId>
<version>${tycho.version}</version>
<executions>
<execution> <id>default-build-qualifier</id> <phase /> </execution>
<execution> <id>default-validate-version</id> <phase /> </execution>
<execution> <id>default-validate-id</id> <phase /> </execution>
<execution> <id>default-package-plugin</id> <phase /> </execution>
</executions>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-compiler-plugin</artifactId>
<version>${tycho.version}</version>
<executions>
<execution> <id>default-compile</id> <phase /> </execution>
</executions>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-p2-plugin</artifactId>
<version>${tycho.version}</version>
<executions>
<execution> <id>default-p2-metadata-default</id> <phase /> </execution>
<execution> <id>attach-p2-metadata</id> <phase /> </execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>