aboutsummaryrefslogtreecommitdiffstats
path: root/lib/pom.xml
blob: c8b1edc649ff054b0f2f5a5431100e2823c5977e (plain)
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
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
<?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>

  <!-- The AspectJ root POM is the parent, but this module is not a submodule -->
  <parent>
    <groupId>org.aspectj</groupId>
    <artifactId>aspectj-parent</artifactId>
    <version>1.9.7.BUILD-SNAPSHOT</version>
  </parent>

  <artifactId>lib</artifactId>

  <name>AspectJ Test Libraries</name>
  <description>
    This module downloads + installs libraries used by many tests, especially those running as Ant jobs. You should not
    build this module during every build because it is somewhat slow, downloading stuff from 3rd-party websites,
    unzipping some libraries (e.g. a full Ant distribution) and creating new ZIP files (e.g. source JARs, compound JARs
    containing multiple libraries).

    So just run 'mvn compile' once after cloning the AspectJ repository and you should be all set to subsequently build
    AspectJ itself. If you forget this step, a Maven Enforcer rule in the AspectJ root POM will fail the build and
    remind you to build this module.

    Normally you never have to call 'mvn clean' here, but if for some reason the installed libraries are in an
    inconsistent state (e.g. after an incomplete download), you can do so and then run 'mvn compile' again.

    BTW, running 'mvn compile' multiple times will not repeat any download via Maven Dependency or Download Maven
    plugins, but repeat all zip/unzip steps in TrueZIP Maven plugin. So try not to call it unnecessarily.
  </description>

  <!-- TODO: Add lib (for now, then finally lib) to .gitignore -->

  <properties>
    <lib.ant.name>apache-ant</lib.ant.name>
    <lib.ant.artifact>${lib.ant.name}-${lib.ant.version}</lib.ant.artifact>
  </properties>

  <build>
    <plugins>

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-enforcer-plugin</artifactId>
        <executions>
          <execution>
            <!--
              Deactivate this execution from the parent, because here it would be counter-productive, given the fact
              that this module must be built before the enforcer rule can even pass elsewhere.
            -->
            <id>enforce-libraries-exist</id>
            <phase>none</phase>
          </execution>
        </executions>
      </plugin>

      <plugin>
        <groupId>com.googlecode.maven-download-plugin</groupId>
        <artifactId>download-maven-plugin</artifactId>
        <version>1.6.1</version>
        <executions>
          <execution>
            <id>download-ant-binaries</id>
            <phase>generate-resources</phase>
            <goals>
              <goal>wget</goal>
            </goals>
            <configuration>
              <url>https://archive.apache.org/dist/ant/binaries/${lib.ant.artifact}-bin.zip</url>
              <outputDirectory>ant</outputDirectory>
              <sha1>3fa9f816a0c4c63249efad8e6225f2e83794f0c0</sha1>
            </configuration>
          </execution>
          <execution>
            <id>download-ant-sources</id>
            <phase>generate-resources</phase>
            <goals>
              <goal>wget</goal>
            </goals>
            <configuration>
              <url>https://archive.apache.org/dist/ant/source/${lib.ant.artifact}-src.zip</url>
              <outputDirectory>ant</outputDirectory>
              <sha1>b9f3c8c31bb6c9069ad5b655059a17769af12f20</sha1>
            </configuration>
          </execution>
          <execution>
            <id>download-beanutils-sources</id>
            <phase>generate-resources</phase>
            <goals>
              <goal>wget</goal>
            </goals>
            <configuration>
              <url>https://github.com/apache/commons-beanutils/archive/refs/tags/${lib.commons.beanutils.tag}.zip</url>
              <outputDirectory>commons</outputDirectory>
              <outputFileName>commons-beanutils-${lib.commons.beanutils.version}-sources.jar</outputFileName>
              <sha1>b2c02afe7e6475cd7c811932b8415d171a8afa00</sha1>
            </configuration>
          </execution>
          <execution>
            <id>download-collections-sources</id>
            <phase>generate-resources</phase>
            <goals>
              <goal>wget</goal>
            </goals>
            <configuration>
              <url>https://github.com/apache/commons-collections/archive/refs/tags/${lib.commons.collections.tag}.zip</url>
              <outputDirectory>commons</outputDirectory>
              <outputFileName>commons-collections-${lib.commons.collections.version}-sources.jar</outputFileName>
              <sha1>824cacd0aafe21a94fb142388fd62f28a12df5ef</sha1>
            </configuration>
          </execution>
          <execution>
            <id>download-digester-sources</id>
            <phase>generate-resources</phase>
            <goals>
              <goal>wget</goal>
            </goals>
            <configuration>
              <url>https://github.com/apache/commons-digester/archive/refs/tags/${lib.commons.digester.tag}.zip</url>
              <outputDirectory>commons</outputDirectory>
              <outputFileName>commons-digester-${lib.commons.digester.version}-sources.jar</outputFileName>
              <sha1>49f653c7ea726301c564f9662b72c051fee9390a</sha1>
            </configuration>
          </execution>
          <execution>
            <id>download-logging-sources</id>
            <phase>generate-resources</phase>
            <goals>
              <goal>wget</goal>
            </goals>
            <configuration>
              <url>https://github.com/apache/commons-logging/archive/refs/tags/${lib.commons.logging.tag}.zip</url>
              <outputDirectory>commons</outputDirectory>
              <outputFileName>commons-logging-${lib.commons.logging.version}-sources.jar</outputFileName>
              <sha1>c61a373f6d50ff8fcfba900934f7254d44f9735b</sha1>
            </configuration>
          </execution>
          <execution>
            <id>download-docbook-dtd</id>
            <phase>generate-resources</phase>
            <goals>
              <goal>wget</goal>
            </goals>
            <configuration>
              <url>https://www.oasis-open.org/docbook/xml/4.1.2/docbkx412.zip</url>
              <outputDirectory>docbook</outputDirectory>
              <outputFileName>docbkx412.zip</outputFileName>
              <sha1>b9ae7a41056bfaf885581812d60651b7b5531519</sha1>
            </configuration>
          </execution>
          <execution>
            <id>download-docbook-xsl</id>
            <phase>generate-resources</phase>
            <goals>
              <goal>wget</goal>
            </goals>
            <configuration>
              <url>https://sourceforge.net/projects/docbook/files/OldFiles/docbook-xsl-1.44.zip/download</url>
              <outputDirectory>docbook</outputDirectory>
              <outputFileName>docbook-xsl-1.44.zip</outputFileName>
              <sha1>626e7bee806ea14812f6f95cc2d187ab6ba9114a</sha1>
            </configuration>
          </execution>
          <!--
            Obsolete because we uploaded both binary and source JARs to GitHub Packages, so we can use JDiff as a
            normal dependency. Keep this for reference, so we can remember where we found it.
          -->
          <!--
          <execution>
            <id>download-jdiff</id>
            <phase>generate-resources</phase>
            <goals>
              <goal>wget</goal>
            </goals>
            <configuration>
              <url>https://downloads.sourceforge.net/project/jedit-plugins/JDiffPlugin/1.3/JDiffPlugin-1.3.zip</url>
              <outputDirectory>jdiff</outputDirectory>
              <outputFileName>JDiffPlugin-1.3.zip</outputFileName>
              <sha1>eba63fd845203c6b245fbcb81c0de8e2c83d16c7</sha1>
            </configuration>
          </execution>
          -->
        </executions>
      </plugin>

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-dependency-plugin</artifactId>
        <version>3.1.2</version>
        <executions>
          <execution>
            <id>copy</id>
            <phase>generate-resources</phase>
            <goals>
              <goal>copy</goal>
            </goals>
            <configuration>
              <artifactItems>

                <artifactItem>
                  <!-- Available from GitHub Packages (needs special repository declaration) -->
                  <groupId>org.aspectj</groupId>
                  <artifactId>org.eclipse.jdt.core</artifactId>
                  <version>${jdt.core.version}</version>
                  <type>jar</type>
                  <overWrite>false</overWrite>
                  <outputDirectory>jdtcore-aj</outputDirectory>
                  <destFileName>jdtcore-for-aspectj.jar</destFileName>
                </artifactItem>
                <artifactItem>
                  <!-- Available from GitHub Packages (needs special repository declaration) -->
                  <groupId>org.aspectj</groupId>
                  <artifactId>org.eclipse.jdt.core</artifactId>
                  <version>${jdt.core.version}</version>
                  <type>java-source</type>
                  <classifier>sources</classifier>
                  <overWrite>false</overWrite>
                  <outputDirectory>jdtcore-aj</outputDirectory>
                  <destFileName>jdtcore-for-aspectj-src.zip</destFileName>
                </artifactItem>

                <artifactItem>
                  <!-- Available from GitHub Packages (needs special repository declaration) -->
                  <groupId>org.aspectj</groupId>
                  <artifactId>asm-renamed</artifactId>
                  <version>${asm.version}</version>
                  <type>jar</type>
                  <overWrite>false</overWrite>
                  <outputDirectory>asm</outputDirectory>
                  <destFileName>asm-${asm.version}.renamed.jar</destFileName>
                </artifactItem>
                <artifactItem>
                  <!-- Available from GitHub Packages (needs special repository declaration) -->
                  <groupId>org.aspectj</groupId>
                  <artifactId>asm-renamed</artifactId>
                  <version>${asm.version}</version>
                  <type>java-source</type>
                  <classifier>sources</classifier>
                  <overWrite>false</overWrite>
                  <outputDirectory>asm</outputDirectory>
                  <destFileName>asm-${asm.version}.renamed-src.zip</destFileName>
                </artifactItem>
                <artifactItem>
                  <!-- Binary is identical to committed version in branch 'jdtcore-new' -->
                  <groupId>com.googlecode.jarjar</groupId>
                  <artifactId>jarjar</artifactId>
                  <version>1.3</version>
                  <type>jar</type>
                  <overWrite>false</overWrite>
                  <outputDirectory>jarjar</outputDirectory>
                  <destFileName>jarjar-1.3.jar</destFileName>
                </artifactItem>
                <artifactItem>
                  <!-- Binary is identical to committed version -->
                  <groupId>junit</groupId>
                  <artifactId>junit</artifactId>
                  <version>3.8.1</version>
                  <type>jar</type>
                  <overWrite>false</overWrite>
                  <outputDirectory>junit</outputDirectory>
                  <destFileName>junit.jar</destFileName>
                </artifactItem>
                <artifactItem>
                  <!-- Binary is identical to committed version -->
                  <!-- TODO: Is this redundant JUnit JAR in ant/lib really necessary? If so, why? -->
                  <groupId>junit</groupId>
                  <artifactId>junit</artifactId>
                  <version>3.8.1</version>
                  <type>jar</type>
                  <overWrite>false</overWrite>
                  <outputDirectory>ant/lib</outputDirectory>
                  <destFileName>junit.jar</destFileName>
                </artifactItem>
                <artifactItem>
                  <!-- Binary is identical to committed version -->
                  <groupId>junit</groupId>
                  <artifactId>junit</artifactId>
                  <version>3.8.1</version>
                  <type>jar</type>
                  <classifier>sources</classifier>
                  <overWrite>false</overWrite>
                  <outputDirectory>junit</outputDirectory>
                  <destFileName>junit-src.zip</destFileName>
                </artifactItem>

                <!-- Jython does not seem to be used anywhere in AspectJ -->

                <artifactItem>
                  <!-- Binary is a bit newer than committed version, but produces identical results in 'docs' -->
                  <groupId>saxon</groupId>
                  <artifactId>saxon</artifactId>
                  <version>6.5.3</version>
                  <type>jar</type>
                  <overWrite>false</overWrite>
                  <outputDirectory>saxon</outputDirectory>
                  <destFileName>saxon.jar</destFileName>
                </artifactItem>
                <artifactItem>
                  <!-- Binary is identical to committed version -->
                  <groupId>regexp</groupId>
                  <artifactId>regexp</artifactId>
                  <version>${lib.regexp.version}</version>
                  <type>jar</type>
                  <overWrite>false</overWrite>
                  <outputDirectory>regexp</outputDirectory>
                  <destFileName>jakarta-regexp-1.2.jar</destFileName>
                </artifactItem>

                <!--
                  About commons.jar + commons-src.zip:
                    - Beanutils Binaries are commons-beanutils:commons-beanutils:1.4 (no sources on Maven Central, but
                      https://github.com/apache/commons-beanutils/archive/refs/tags/BEANUTILS_1_4.zip)
                    - Collections: Binaries are commons-collections:commons-collections:2.0 (no sources on Maven Central, but
                      https://github.com/apache/commons-collections/archive/refs/tags/collections-2.0.zip)
                    - Digester: Binaries are commons-digester:commons-digester:1.3 (no sources on Maven Central, but
                      https://github.com/apache/commons-digester/archive/refs/tags/DIGESTER_1_3.zip)
                    - Logging: Binaries are commons-logging:commons-logging:1.0.1 (no sources on Maven Central, but
                      https://github.com/apache/commons-logging/archive/refs/tags/LOGGING_1_0_1.zip)
                -->
                <artifactItem>
                  <!-- Binary is identical to committed version -->
                  <!-- TODO: not used anywhere -> remove -->
                  <groupId>commons-beanutils</groupId>
                  <artifactId>commons-beanutils</artifactId>
                  <version>${lib.commons.beanutils.version}</version>
                  <type>jar</type>
                  <overWrite>false</overWrite>
                  <outputDirectory>commons</outputDirectory>
                  <destFileName>commons-beanutils-${lib.commons.beanutils.version}.jar</destFileName>
                </artifactItem>
                <artifactItem>
                  <!-- Binary is identical to committed version -->
                  <!-- TODO: not used anywhere -> remove -->
                  <groupId>commons-collections</groupId>
                  <artifactId>commons-collections</artifactId>
                  <version>2.0</version>
                  <type>jar</type>
                  <overWrite>false</overWrite>
                  <outputDirectory>commons</outputDirectory>
                  <destFileName>commons-collections-2.0.jar</destFileName>
                </artifactItem>
                <artifactItem>
                  <!-- Binary is identical to committed version -->
                  <!-- TODO: used in module 'testing' -->
                  <groupId>commons-digester</groupId>
                  <artifactId>commons-digester</artifactId>
                  <version>${lib.commons.digester.version}</version>
                  <type>jar</type>
                  <overWrite>false</overWrite>
                  <outputDirectory>commons</outputDirectory>
                  <destFileName>commons-digester-${lib.commons.digester.version}.jar</destFileName>
                </artifactItem>
                <artifactItem>
                  <!-- Binary is identical to committed version -->
                  <!-- TODO: used in modules 'org.aspectj.matcher' -->
                  <groupId>commons-logging</groupId>
                  <artifactId>commons-logging</artifactId>
                  <version>${lib.commons.logging.version}</version>
                  <type>jar</type>
                  <overWrite>false</overWrite>
                  <outputDirectory>commons</outputDirectory>
                  <destFileName>commons-logging-${lib.commons.logging.version}.jar</destFileName>
                </artifactItem>

                <!-- Libraries used to create HTML docs from XML DocBook files -->
                <artifactItem>
                  <!-- Binary is identical to committed version -->
                  <groupId>fop</groupId>
                  <artifactId>fop</artifactId>
                  <version>0.20.5</version>
                  <type>jar</type>
                  <overWrite>false</overWrite>
                  <outputDirectory>docbook</outputDirectory>
                  <destFileName>fop.jar</destFileName>
                </artifactItem>
                <artifactItem>
                  <!-- Binary is identical to committed version -->
                  <groupId>batik</groupId>
                  <artifactId>batik-1.5-fop</artifactId>
                  <version>0.20-5</version>
                  <type>jar</type>
                  <overWrite>false</overWrite>
                  <outputDirectory>docbook</outputDirectory>
                  <destFileName>batik.jar</destFileName>
                </artifactItem>

              </artifactItems>
            </configuration>
          </execution>
        </executions>
      </plugin>

      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>truezip-maven-plugin</artifactId>
        <version>1.2</version>
        <!--
          The TrueZIP plugin can seamlessly copy out of or into (nested) ZIP files as if they were normal file system
          paths. No additional moves and deletes with Antrun are necessary.
        -->
        <executions>
          <execution>
            <id>unzip-ant-binaries</id>
            <phase>process-resources</phase>
            <goals>
              <goal>copy</goal>
            </goals>
            <configuration>
              <verbose>true</verbose>
              <fileset>
                <directory>ant/${lib.ant.artifact}-bin.zip/${lib.ant.artifact}</directory>
                <outputDirectory>ant</outputDirectory>
              </fileset>
            </configuration>
          </execution>
          <execution>
            <id>zip-ant-sources</id>
            <phase>process-resources</phase>
            <goals>
              <goal>copy</goal>
            </goals>
            <configuration>
              <verbose>true</verbose>
              <fileset>
                <directory>ant/${lib.ant.artifact}-src.zip/${lib.ant.artifact}/src/main</directory>
                <outputDirectory>ant/ant-src.zip</outputDirectory>
              </fileset>
            </configuration>
          </execution>
          <execution>
            <id>zip-beanutils-binaries</id>
            <phase>process-resources</phase>
            <goals>
              <goal>copy</goal>
            </goals>
            <configuration>
              <verbose>true</verbose>
              <fileset>
                <directory>commons/commons-beanutils-${lib.commons.beanutils.version}.jar</directory>
                <outputDirectory>commons/commons.jar</outputDirectory>
              </fileset>
            </configuration>
          </execution>
          <execution>
            <id>zip-collections-binaries</id>
            <phase>process-resources</phase>
            <goals>
              <goal>copy</goal>
            </goals>
            <configuration>
              <verbose>true</verbose>
              <fileset>
                <directory>commons/commons-collections-${lib.commons.collections.version}.jar</directory>
                <outputDirectory>commons/commons.jar</outputDirectory>
              </fileset>
            </configuration>
          </execution>
          <execution>
            <id>zip-digester-binaries</id>
            <phase>process-resources</phase>
            <goals>
              <goal>copy</goal>
            </goals>
            <configuration>
              <verbose>true</verbose>
              <fileset>
                <directory>commons/commons-digester-${lib.commons.digester.version}.jar</directory>
                <outputDirectory>commons/commons.jar</outputDirectory>
              </fileset>
            </configuration>
          </execution>
          <execution>
            <id>zip-logging-binaries</id>
            <phase>process-resources</phase>
            <goals>
              <goal>copy</goal>
            </goals>
            <configuration>
              <verbose>true</verbose>
              <fileset>
                <directory>commons/commons-logging-${lib.commons.logging.version}.jar</directory>
                <outputDirectory>commons/commons.jar</outputDirectory>
              </fileset>
            </configuration>
          </execution>
          <execution>
            <id>zip-beanutils-sources</id>
            <phase>process-resources</phase>
            <goals>
              <goal>copy</goal>
            </goals>
            <configuration>
              <verbose>true</verbose>
              <fileset>
                <directory>commons/commons-beanutils-${lib.commons.beanutils.version}-sources.jar/commons-beanutils-${lib.commons.beanutils.tag}/src/java</directory>
                <outputDirectory>commons/commons-src.zip</outputDirectory>
              </fileset>
            </configuration>
          </execution>
          <execution>
            <id>zip-collections-sources</id>
            <phase>process-resources</phase>
            <goals>
              <goal>copy</goal>
            </goals>
            <configuration>
              <verbose>true</verbose>
              <fileset>
                <directory>commons/commons-collections-${lib.commons.collections.version}-sources.jar/commons-collections-${lib.commons.collections.tag}/src/java</directory>
                <outputDirectory>commons/commons-src.zip</outputDirectory>
              </fileset>
            </configuration>
          </execution>
          <execution>
            <id>zip-digester-sources</id>
            <phase>process-resources</phase>
            <goals>
              <goal>copy</goal>
            </goals>
            <configuration>
              <verbose>true</verbose>
              <fileset>
                <directory>commons/commons-digester-${lib.commons.digester.version}-sources.jar/commons-digester-${lib.commons.digester.tag}/src/java</directory>
                <outputDirectory>commons/commons-src.zip</outputDirectory>
              </fileset>
            </configuration>
          </execution>
          <execution>
            <id>zip-logging-sources</id>
            <phase>process-resources</phase>
            <goals>
              <goal>copy</goal>
            </goals>
            <configuration>
              <verbose>true</verbose>
              <fileset>
                <directory>commons/commons-logging-${lib.commons.logging.version}-sources.jar/commons-logging-${lib.commons.logging.tag}/src/java</directory>
                <outputDirectory>commons/commons-src.zip</outputDirectory>
              </fileset>
            </configuration>
          </execution>
          <execution>
            <id>unzip-docbook-dtd</id>
            <phase>process-resources</phase>
            <goals>
              <goal>copy</goal>
            </goals>
            <configuration>
              <verbose>true</verbose>
              <fileset>
                <directory>docbook/docbkx412.zip</directory>
                <outputDirectory>docbook/docbook-dtd</outputDirectory>
              </fileset>
            </configuration>
          </execution>
          <execution>
            <id>unzip-docbook-xsl</id>
            <phase>process-resources</phase>
            <goals>
              <goal>copy</goal>
            </goals>
            <configuration>
              <verbose>true</verbose>
              <fileset>
                <directory>docbook/docbook-xsl-1.44.zip/docbook-xsl-1.44</directory>
                <outputDirectory>docbook/docbook-xsl</outputDirectory>
              </fileset>
            </configuration>
          </execution>
          <!--
            Obsolete because we uploaded both binary and source JARs to GitHub Packages, so we can use JDiff as a normal
            dependency. Keep this for reference, so we can remember how we built it. After download + zip the deployment
            was made right from the lib/jdiff directory, using the following commands (without the line breaks):

            mvn -Dfile=jdiff.jar -DrepositoryId=github -Durl=https://maven.pkg.github.com/kriegaex/aspectj-packages
              -DgroupId=jdiff -DartifactId=jdiff -Dpackaging=jar -Dversion=1.3
              deploy:deploy-file

            mvn -Dfile=jdiff-src.zip -DrepositoryId=github -Durl=https://maven.pkg.github.com/kriegaex/aspectj-packages
              -DgroupId=jdiff -DartifactId=jdiff -Dpackaging=jar -Dversion=1.3
              -Dtypes=java-source -Dclassifier=sources
              deploy:deploy-file

            The second command yields an error, trying to re-upload a POM, but that is no problem because the POM would
            be identical to the one already uploaded with the first command.
          -->
          <!--
          <execution>
            <id>zip-jdiff-binaries</id>
            <phase>process-resources</phase>
            <goals>
              <goal>copy</goal>
            </goals>
            <configuration>
              <verbose>true</verbose>
              <fileset>
                <directory>jdiff/JDiffPlugin-1.3.zip/JDiffPlugin.jar</directory>
                <outputDirectory>jdiff/jdiff.jar</outputDirectory>
                <includes>
                  <include>**/*.class</include>
                </includes>
                <excludes>
                  <exclude>jdiff/options/**</exclude>
                  <exclude>jdiff/*.class</exclude>
                </excludes>
              </fileset>
            </configuration>
          </execution>
          <execution>
            <id>zip-jdiff-sources</id>
            <phase>process-resources</phase>
            <goals>
              <goal>copy</goal>
            </goals>
            <configuration>
              <verbose>true</verbose>
              <fileset>
                <directory>jdiff/JDiffPlugin-1.3.zip/JDiffPlugin</directory>
                <outputDirectory>jdiff/jdiff-src.zip</outputDirectory>
                <includes>
                  <include>**/*.java</include>
                </includes>
                <excludes>
                  <exclude>jdiff/options/**</exclude>
                  <exclude>jdiff/*.java</exclude>
                </excludes>
              </fileset>
            </configuration>
          </execution>
          -->
        </executions>
      </plugin>

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-clean-plugin</artifactId>
        <executions>
          <execution>
            <id>clean-up-libs</id>
            <phase>clean</phase>
            <goals>
              <goal>clean</goal>
            </goals>
            <configuration>
              <filesets>
                <fileset>
                  <directory>.</directory>
                  <includes>
                    <include>ant/**</include>
                    <include>asm/**</include>
                    <include>commons/**</include>
                    <include>jarjar/**</include>
                    <!-- Obsolete because JDiff is on GitHub Packages now. Keep for reference. -->
                    <!--<include>jdiff/**</include>-->
                    <include>jdtcore-aj/**</include>
                    <include>junit/**</include>
                    <include>regexp/**</include>
                    <include>saxon/**</include>
                  </includes>
                  <followSymlinks>false</followSymlinks>
                </fileset>
              </filesets>
            </configuration>
          </execution>
        </executions>
      </plugin>

    </plugins>
  </build>

  <dependencies>
    <dependency>
      <groupId>org.aspectj</groupId>
      <artifactId>asm-renamed</artifactId>
    </dependency>
    <dependency>
      <groupId>org.aspectj</groupId>
      <artifactId>org.eclipse.jdt.core</artifactId>
    </dependency>
  </dependencies>

</project>