This repository has been archived by the owner on Jul 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpom.xml
346 lines (322 loc) · 15.9 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
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
<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>
<parent>
<groupId>com.buschmais.jqassistant</groupId>
<artifactId>jqa-uber-parent</artifactId>
<version>2.4.0-SNAPSHOT</version>
<relativePath/>
</parent>
<groupId>com.buschmais.jqassistant.plugin</groupId>
<artifactId>parent</artifactId>
<version>2.4.0-SNAPSHOT</version>
<packaging>pom</packaging>
<name>jQAssistant Plugin Parent POM</name>
<url>https://jqassistant.org/</url>
<inceptionYear>2016</inceptionYear>
<organization>
<name>jQAssistant Development Team</name>
<url>https://jqassistant.org</url>
</organization>
<licenses>
<license>
<name>GNU General Public License, v3</name>
<url>https://www.gnu.org/licenses/gpl-3.0.html</url>
</license>
</licenses>
<scm>
<connection>scm:git:git@github.com:jqassistant/jqa-plugin-parent.git</connection>
<developerConnection>scm:git:git@github.com:jqassistant/jqa-plugin-parent.git</developerConnection>
<url>https://github.com/jqassistant/jqa-plugin-parent</url>
<tag>HEAD</tag>
</scm>
<description>
The parent POM for all plugins developed by the jQAssistant team. It defines a standard
of actions, checks and dependencies required by each jQAssistant plugin.
</description>
<properties>
<jqa-bom.version>2.4.0-SNAPSHOT</jqa-bom.version>
<jqa-core-framework.version>2.4.0-SNAPSHOT</jqa-core-framework.version>
<jqa-neo4jbackend.version>2.4.0-SNAPSHOT</jqa-neo4jbackend.version>
</properties>
<build>
<resources>
<resource>
<directory>${project.basedir}/src/main/resources</directory>
<includes>
<include>META-INF/jqassistant-plugin.xml</include>
</includes>
<filtering>true</filtering>
</resource>
<resource>
<directory>${project.basedir}/src/main/resources</directory>
<excludes>
<exclude>META-INF/jqassistant-plugin.xml</exclude>
</excludes>
<filtering>false</filtering>
</resource>
</resources>
<plugins>
<plugin>
<groupId>com.buschmais.jqassistant</groupId>
<artifactId>jqassistant-maven-plugin</artifactId>
</plugin>
<plugin>
<!-- Copies the XSL stylesheets to a subdirectory of the
! the build directory. They are needed to process the XML
! descriptors of jQAssistant during the generation of the
! documentation.
!-->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>unpack-asciidoc-stylesheets</id>
<goals>
<goal>unpack</goal>
</goals>
<phase>process-sources</phase>
<configuration>
<outputDirectory>${project.build.directory}/xml2asciidoc</outputDirectory>
<artifactItems>
<artifactItem>
<groupId>com.buschmais.jqassistant.build</groupId>
<artifactId>asciidoc</artifactId>
<type>zip</type>
<classifier>xsl</classifier>
<version>${jqassistant.build.version}</version>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>xml-maven-plugin</artifactId>
<executions>
<execution>
<id>transform-xml2asciidoc</id>
<goals>
<goal>transform</goal>
</goals>
<phase>process-sources</phase>
<configuration>
<transformationSets>
<!-- Plugin -->
<transformationSet>
<dir>src/main/resources/META-INF</dir>
<includes>
<include>jqassistant-plugin.xml</include>
</includes>
<stylesheet>
${project.build.directory}/xml2asciidoc/plugin.xsl
</stylesheet>
<outputDir>${project.build.directory}/generated-sources/asciidoc</outputDir>
<fileMappers>
<fileMapper implementation="org.codehaus.plexus.components.io.filemappers.RegExpFileMapper">
<pattern>^jqassistant-plugin\.xml$</pattern>
<replacement>plugin.adoc</replacement>
</fileMapper>
</fileMappers>
<parameters>
<parameter>
<name>groupId</name>
<value>${project.groupId}</value>
</parameter>
<parameter>
<name>artifactId</name>
<value>${project.artifactId}</value>
</parameter>
</parameters>
</transformationSet>
<!-- Rules -->
<transformationSet>
<dir>src/main/resources/META-INF</dir>
<includes>
<include>jqassistant-rules/*.xml</include>
</includes>
<stylesheet>
${project.build.directory}/xml2asciidoc/rules.xsl
</stylesheet>
<outputDir>${project.build.directory}/generated-sources/asciidoc</outputDir>
<fileMappers>
<fileMapper implementation="org.codehaus.plexus.components.io.filemappers.RegExpFileMapper">
<pattern>^(.*)$</pattern>
<replacement>$1.adoc</replacement>
</fileMapper>
</fileMappers>
</transformationSet>
<!-- Group Summary -->
<transformationSet>
<dir>src/main/resources/META-INF</dir>
<includes>
<include>jqassistant-rules/*.xml</include>
</includes>
<stylesheet>
${project.build.directory}/xml2asciidoc/group-summary.xsl
</stylesheet>
<outputDir>${project.build.directory}/generated-sources/asciidoc</outputDir>
<fileMappers>
<fileMapper implementation="org.codehaus.plexus.components.io.filemappers.RegExpFileMapper">
<pattern>^(.*)$</pattern>
<replacement>$1-group-summary.adoc</replacement>
</fileMapper>
</fileMappers>
</transformationSet>
<!-- Constraint Summary -->
<transformationSet>
<dir>src/main/resources/META-INF</dir>
<includes>
<include>jqassistant-rules/*.xml</include>
</includes>
<stylesheet>
${project.build.directory}/xml2asciidoc/constraint-summary.xsl
</stylesheet>
<outputDir>${project.build.directory}/generated-sources/asciidoc</outputDir>
<fileMappers>
<fileMapper implementation="org.codehaus.plexus.components.io.filemappers.RegExpFileMapper">
<pattern>^(.*)$</pattern>
<replacement>$1-constraint-summary.adoc</replacement>
</fileMapper>
</fileMappers>
</transformationSet>
<!-- Concept Summary -->
<transformationSet>
<dir>src/main/resources/META-INF</dir>
<includes>
<include>jqassistant-rules/*.xml</include>
</includes>
<stylesheet>
${project.build.directory}/xml2asciidoc/concept-summary.xsl
</stylesheet>
<outputDir>${project.build.directory}/generated-sources/asciidoc</outputDir>
<fileMappers>
<fileMapper implementation="org.codehaus.plexus.components.io.filemappers.RegExpFileMapper">
<pattern>^(.*)$</pattern>
<replacement>$1-concept-summary.adoc</replacement>
</fileMapper>
</fileMappers>
</transformationSet>
</transformationSets>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>net.sf.saxon</groupId>
<artifactId>saxon</artifactId>
<version>8.7</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
</plugin>
<plugin>
<!-- Builds a jar with the Asciidoctor based documentation
! of the plugin and all needed stuff. This artifact
! is required for building the user manual of jQAssistant.
!-->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>attach-asciidoc</id>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.cyclonedx</groupId>
<artifactId>cyclonedx-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
<dependencyManagement>
<dependencies>
<!--
! Here goes all dependencies to the core framework
! Please keep in mind that the version of the plugin parent
! MUST match the version of core framework of jQAssistant!
!-->
<dependency>
<groupId>com.buschmais.jqassistant</groupId>
<artifactId>bom</artifactId>
<version>${jqa-bom.version}</version>
<scope>import</scope>
<type>pom</type>
</dependency>
<dependency>
<groupId>com.buschmais.jqassistant.core</groupId>
<artifactId>scanner</artifactId>
<version>${jqa-core-framework.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.buschmais.jqassistant.core</groupId>
<artifactId>report</artifactId>
<version>${jqa-core-framework.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.buschmais.jqassistant.core</groupId>
<artifactId>store</artifactId>
<version>${jqa-core-framework.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.buschmais.jqassistant.core</groupId>
<artifactId>shared</artifactId>
<version>${jqa-core-framework.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.buschmais.jqassistant.core</groupId>
<artifactId>rule</artifactId>
<version>${jqa-core-framework.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.buschmais.jqassistant.core</groupId>
<artifactId>analysis</artifactId>
<version>${jqa-core-framework.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.buschmais.jqassistant.core</groupId>
<artifactId>test</artifactId>
<version>${jqa-core-framework.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.buschmais.xo</groupId>
<artifactId>xo.api</artifactId>
<version>${xo.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.buschmais.xo</groupId>
<artifactId>xo.spi</artifactId>
<version>${xo.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.buschmais.xo</groupId>
<artifactId>xo.neo4.api</artifactId>
<version>${xo.version}</version>
<scope>provided</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>com.buschmais.jqassistant.build</groupId>
<artifactId>asciidoc</artifactId>
<type>zip</type>
<classifier>xsl</classifier>
<version>${jqassistant.build.version}</version>
<!-- The scope must be provided otherwise it will be part of the distribution -->
<scope>provided</scope>
</dependency>
</dependencies>
</project>