-
Notifications
You must be signed in to change notification settings - Fork 11
/
pom.xml
88 lines (88 loc) · 3.06 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
<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.eclipse</groupId>
<artifactId>ui-best-practices</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>pom</packaging>
<name>Eclipse UI best practices</name>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<asciidoctor.maven.plugin.version>3.1.1</asciidoctor.maven.plugin.version>
<best.practices.document.version>v4-DRAFT</best.practices.document.version>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.asciidoctor</groupId>
<artifactId>asciidoctor-maven-plugin</artifactId>
<version>${asciidoctor.maven.plugin.version}</version>
<executions>
<execution>
<id>asciidoc-to-html</id>
<phase>generate-resources</phase>
<goals>
<goal>process-asciidoc</goal>
</goals>
</execution>
</executions>
<configuration>
<!-- enable pedantic mode to validate cross references -->
<enableVerbose>true</enableVerbose>
<sourceDirectory>${basedir}</sourceDirectory>
<sourceDocumentName>index.adoc</sourceDocumentName>
<!-- copy only the images and media directory, otherwise everything from basedir would be copied -->
<resources>
<resource>
<directory>images</directory>
<targetPath>images</targetPath>
</resource>
<resource>
<directory>media</directory>
<targetPath>media</targetPath>
</resource>
</resources>
<attributes>
<!-- configure document attribute "version" to be replaced in the source documents -->
<version>${best.practices.document.version}</version>
<!-- fail for missing attributes https://docs.asciidoctor.org/maven-tools/latest/plugin/tips-and-tricks/ -->
<attribute-missing>warn</attribute-missing>
<!-- all other common settings and attributes should be done in _settings.adoc -->
</attributes>
<!-- fail the build in case of problems -->
<logHandler>
<failIf>
<severity>WARN</severity>
</failIf>
</logHandler>
</configuration>
</plugin>
<!-- verify that AsciiDoc files contain only https urls -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>3.6.0</version>
<dependencies>
<dependency>
<groupId>io.spring.nohttp</groupId>
<artifactId>nohttp-checkstyle</artifactId>
<version>0.0.11</version>
</dependency>
</dependencies>
<configuration>
<configLocation>config/checkstyle-nohttp.xml</configLocation>
<includes>**/*</includes>
<excludes>.git/**/*,target/**/*</excludes>
<sourceDirectories>./</sourceDirectories>
</configuration>
<executions>
<execution>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
<defaultGoal>verify</defaultGoal>
</build>
</project>