-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpom.xml
More file actions
1333 lines (1326 loc) · 47.3 KB
/
Copy pathpom.xml
File metadata and controls
1333 lines (1326 loc) · 47.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
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
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<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>de.tum.cit.ase</groupId>
<artifactId>ares</artifactId>
<version>2.1.3</version>
<properties>
<!-- 0. General Project Settings -->
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<!-- 1. Testing: 1.1 JUnit -->
<junit-jupiter-version>6.1.3</junit-jupiter-version>
<junit-platform-version>6.1.3</junit-platform-version>
<!-- 1. Testing: 1.2 jqwik -->
<!-- Pinned to 1.9.3 (newest 1.9.x): the jqwik 1.10.x engine is not stable under
Ares here. Running the full suite, its lifecycle store hits a concurrent
modification (ArrayIndexOutOfBoundsException in StoreRepository.streamAllStores)
when Ares executes thread-spawning jqwik properties, failing JqwickTest
deterministically; 1.9.3 is green. The 1.10.x line also moved to
junit-platform 1.14 while this project builds on junit-platform 6.x, which
likely contributes. Revisit once jqwik ships a JUnit 6 compatible release. -->
<jqwik-version>1.9.3</jqwik-version>
<!-- 1. Testing: 1.3 AssertJ -->
<assertj-version>3.27.7</assertj-version>
<!-- 1. Testing: 1.4 Mockito -->
<mockito-version>5.23.0</mockito-version>
<!-- 2. Architecture: 2.1 Archunit -->
<archunit-version>1.5.0</archunit-version>
<!-- 2. Architecture: 2.2 Wala -->
<wala-version>1.8.0</wala-version>
<!-- Test fixture: genuine third-party JAR in the javax.* namespace -->
<javax-activation-version>1.2.0</javax-activation-version>
<!-- 3. AOP: 3.1 AspectJ -->
<!-- aspectjtools (ajc) 1.9.25 / 1.9.25.1 bundle an Eclipse JDT compiler that throws
an internal NullPointerException ("variableDeclaration is null",
SourceTypeBinding.resolveTypeFor) when weaving an anonymous class that declares
fields. The four JavaInstrumentation*PathMethodAdviceTest classes were refactored
to use named nested classes instead of field-declaring anonymous classes, which
sidesteps that ajc crash, so the toolchain runs cleanly on 1.9.25.1. -->
<aspectj-version>1.9.25.1</aspectj-version>
<aspectj-path>
${user.home}${file.separator}.m2${file.separator}repository${file.separator}org${file.separator}aspectj${file.separator}aspectjrt${file.separator}${aspectj-version}${file.separator}aspectjrt-${aspectj-version}.jar
</aspectj-path>
<!-- 3. AOP: 3.2 Byte Buddy -->
<byte-buddy-version>1.18.12</byte-buddy-version>
<byte-buddy-path>
${project.build.directory}${file.separator}${project.artifactId}-${project.version}-agent.jar
</byte-buddy-path>
<!-- 3. AOP: 3.3 JVM module access -->
<!-- The AspectJ aspects (and the Byte Buddy advice) reflectively read fields of
intercepted JDK objects (e.g. ThreadPoolExecutor.ctl, Socket.delegate,
Executors$AutoShutdownDelegatedExecutorService.cleanable). Under JDK 16+ strong
encapsulation these reads require the corresponding java.base packages to be opened.
This mirrors the jvmArgs the runtime Gradle build applies; without it the test JVM
throws InaccessibleObjectException and the security analysis cannot introspect the
intercepted objects. Student attacks remain blocked by Ares's AOP advice and the
architecture rules, which do not depend on JVM strong encapsulation. -->
<jvm.module.access.args>--add-exports java.base/java.lang=ALL-UNNAMED --add-exports java.base/jdk.internal.misc=ALL-UNNAMED --add-opens java.base/java.io=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.lang.reflect=ALL-UNNAMED --add-opens java.base/java.net=ALL-UNNAMED --add-opens java.base/java.nio=ALL-UNNAMED --add-opens java.base/java.nio.channels=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.util.concurrent=ALL-UNNAMED --add-opens java.base/java.util.concurrent.atomic=ALL-UNNAMED --add-opens java.base/java.util.concurrent.locks=ALL-UNNAMED --add-opens java.base/jdk.internal.misc=ALL-UNNAMED --add-opens java.base/sun.net.www.protocol.http=ALL-UNNAMED --add-opens java.base/sun.net.www.protocol.https=ALL-UNNAMED --add-opens java.base/sun.nio.ch=ALL-UNNAMED --add-opens jdk.unsupported/sun.misc=ALL-UNNAMED</jvm.module.access.args>
<!-- 4. AST: 4.1 JavaParser -->
<java-parser-version>3.28.2</java-parser-version>
<!-- 5. Formats: YAML and XML (JSON handled via Jackson) -->
<yaml-version>2.22.2</yaml-version>
<!-- 6. Large Tooling Libraries -->
<commons-io-version>2.22.0</commons-io-version>
<jaxb-api-version>2.3.1</jaxb-api-version>
<!-- 7. Small Tooling Libraries -->
<jgrapht-core-version>1.5.3</jgrapht-core-version>
<!-- 8. Logging -->
<logback-version>1.6.3</logback-version>
<!-- 8. API -->
<apiguardian-api-version>1.1.2</apiguardian-api-version>
<!-- Others -->
<spotless.version>3.10.0</spotless.version>
<!-- if JaCoCo is not executed -->
<argLine></argLine>
<!-- Isolate test classes so WALA state and test-created threads cannot accumulate
in one long-lived JVM. The signed outcome cache preserves cross-fork reuse. -->
<surefire-reuse-forks>false</surefire-reuse-forks>
<jacoco-version>0.8.15</jacoco-version>
<!-- BUNDLE-level minima, shared by the `coverage` profile (one local full-suite
run) and the `coverage-aggregate` profile (the merged CI runs) so that the two
gates cannot drift apart. -->
<jacoco-line-coverage-minimum>0.55</jacoco-line-coverage-minimum>
<jacoco-branch-coverage-minimum>0.35</jacoco-branch-coverage-minimum>
<jacoco-method-coverage-minimum>0.65</jacoco-method-coverage-minimum>
<!-- full certificate fingerprint: 23E62BB282A473EE4DDA2F8763EFD39363D21A8D -->
<gpg.key.id>23E62BB282A473EE4DDA2F8763EFD39363D21A8D</gpg.key.id>
</properties>
<dependencyManagement>
<dependencies>
<!-- Pin opencsv's transitive commons-lang3 to a current version. opencsv's
bean-mapping transitives (commons-beanutils, commons-text) are excluded on
the opencsv dependency itself since Ares only uses opencsv's raw CSV reader,
not its bean features. commons-lang3 cannot be excluded: opencsv's
CSVReader/CSVParser call it at construction time. -->
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.20.0</version>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<!-- 1. Testing: 1.1 JUnit -->
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-params</artifactId>
<version>${junit-jupiter-version}</version>
<!-- 3 Cases:
src/test/java/de/tum/cit/ase/ares/api/util/LruCacheTest.java
src/test/java/de/tum/cit/ase/ares/api/util/ClassMemberAccessorTest.java
src/test/java/de/tum/cit/ase/ares/integration/testuser/NetworkUser.java
-->
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>${junit-jupiter-version}</version>
<!-- 1 Case:
src/test/java/de/tum/cit/ase/ares/testutilities/UserBased.java
-->
</dependency>
<!-- JUnit 4 API only (no vintage engine): there are no JUnit 4 tests to run, but
the throwable sanitization compiles against junit.framework.* and
org.junit.* (JUnit 4) types so it can duplicate/sanitize legacy assertion
errors. junit-vintage-engine was removed; this supplies just the API.
2 Cases:
src/main/java/de/tum/cit/ase/ares/api/internal/sanitization/SafeTypeThrowableSanitizer.java
src/main/java/de/tum/cit/ase/ares/api/internal/sanitization/ThrowableSets.java
-->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.13.2</version>
</dependency>
<dependency>
<groupId>org.junit.platform</groupId>
<artifactId>junit-platform-testkit</artifactId>
<version>${junit-platform-version}</version>
<!-- Multiple Cases -->
</dependency>
<!-- Not Required
Included in junit-jupiter-params and junit-jupiter-engine
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>${junit-jupiter-version}</version>
</dependency>
Included in junit-platform-testkit
<dependency>
<groupId>org.junit.platform</groupId>
<artifactId>junit-platform-launcher</artifactId>
<version>${junit-platform-version}</version>
</dependency>
-->
<!-- 1. Testing: 1.2 jqwik -->
<dependency>
<groupId>net.jqwik</groupId>
<artifactId>jqwik</artifactId>
<version>${jqwik-version}</version>
<scope>provided</scope>
<!-- Multiple Cases -->
</dependency>
<!-- 1. Testing: 1.3 Mockito -->
<!-- mockito-inline was discontinued after 5.2.0; its inline mock-maker is the
default in mockito-core since 5.x, so we depend on mockito-core directly. -->
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>${mockito-version}</version>
<!-- Multiple Cases -->
</dependency>
<!-- 1. Testing: 1.4 AssertJ -->
<dependency>
<groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId>
<version>${assertj-version}</version>
</dependency>
<!-- 2. Architecture: 2.1 Archunit -->
<dependency>
<groupId>com.tngtech.archunit</groupId>
<artifactId>archunit-junit5</artifactId>
<version>${archunit-version}</version>
<!-- 1 Case:
src/main/java/de/tum/cit/ase/ares/api/securitytest/java/specific/PathLocationProvider.java
-->
</dependency>
<!-- Not required
<dependency>
<groupId>com.tngtech.archunit</groupId>
<artifactId>archunit</artifactId>
<version>${archunit-version}</version>
</dependency>
-->
<!-- 2. Architecture: 2.2 Wala -->
<dependency>
<groupId>com.ibm.wala</groupId>
<artifactId>com.ibm.wala.core</artifactId>
<version>${wala-version}</version>
<!-- Multiple Cases -->
</dependency>
<dependency>
<groupId>com.sun.activation</groupId>
<artifactId>javax.activation</artifactId>
<version>${javax-activation-version}</version>
<scope>test</scope>
<!-- Regression fixture for origin-based WALA dependency classification -->
</dependency>
<!-- 3. AOP: 3.1 AspectJ -->
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjrt</artifactId>
<version>${aspectj-version}</version>
</dependency>
<!-- Not required
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjweaver</artifactId>
<version>${aspectj-version}</version>
</dependency>
-->
<!-- 3. AOP: 3.2 Byte Buddy -->
<dependency>
<groupId>net.bytebuddy</groupId>
<artifactId>byte-buddy</artifactId>
<version>${byte-buddy-version}</version>
<!-- Multiple Cases -->
</dependency>
<dependency>
<groupId>net.bytebuddy</groupId>
<artifactId>byte-buddy-agent</artifactId>
<version>${byte-buddy-version}</version>
<!-- Multiple Cases -->
</dependency>
<!-- 4. AST: 4.1 JavaParser -->
<dependency>
<groupId>com.github.javaparser</groupId>
<artifactId>javaparser-symbol-solver-core</artifactId>
<version>${java-parser-version}</version>
<!-- 1. Case:
src/main/java/de/tum/cit/ase/ares/api/ast/model/RecursionCheck.java
-->
</dependency>
<!-- Not Required
Included in javaparser-symbol-solver-core
<dependency>
<groupId>com.github.javaparser</groupId>
<artifactId>javaparser-core</artifactId>
<version>${java-parser-version}</version>
</dependency>
-->
<!-- 5. Formats: YAML, XML and JSON (all via Jackson) -->
<dependency>
<groupId>com.fasterxml.jackson.dataformat</groupId>
<artifactId>jackson-dataformat-yaml</artifactId>
<version>${yaml-version}</version>
</dependency>
<!-- 6. Large Tooling Libraries -->
<!-- commons-io is NOT used by Ares itself; it is only a security-interception
target so the AspectJ pointcut and instrumentation policy can reference
org.apache.commons.io.FileUtils.forceDelete (a way students could delete
files). It is scoped 'provided' so it stays on the compile/weave/test
classpath (keeping that interception resolvable) without leaking into the
runtime/transitive footprint of Ares consumers. -->
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>${commons-io-version}</version>
<scope>provided</scope>
</dependency>
<!-- javax.xml.bind (JAXB) is NOT used by Ares itself; it is only a
security-interception target so the AspectJ pointcut
(JavaAspectJFileSystemPointcutDefinitions.aj) can reference
javax.xml.bind.Marshaller/Unmarshaller (I-086/TD-030 - the JDK removed JAXB
as a standard module from Java 11 onwards, so these pointcuts otherwise
reference types absent from the compile/weave classpath entirely and are
unverifiable). Scoped 'provided' for the same reason as commons-io above:
keep the interception resolvable without leaking into consumers' transitive
footprint. -->
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>${jaxb-api-version}</version>
<scope>provided</scope>
</dependency>
<!-- 7. Small Tooling Libraries -->
<dependency>
<groupId>com.opencsv</groupId>
<artifactId>opencsv</artifactId>
<version>5.12.0</version>
<exclusions>
<exclusion>
<groupId>commons-beanutils</groupId>
<artifactId>commons-beanutils</artifactId>
</exclusion>
<exclusion>
<groupId>org.apache.commons</groupId>
<artifactId>commons-text</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.jgrapht</groupId>
<artifactId>jgrapht-core</artifactId>
<version>${jgrapht-core-version}</version>
</dependency>
<!-- 8. Logging -->
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>${logback-version}</version>
</dependency>
<!-- 8. API -->
<dependency>
<groupId>org.apiguardian</groupId>
<artifactId>apiguardian-api</artifactId>
<version>${apiguardian-api-version}</version>
</dependency>
<!-- Add JSR-305 for javax.annotation.Nonnull/Nullable -->
<dependency>
<groupId>com.google.code.findbugs</groupId>
<artifactId>jsr305</artifactId>
<version>3.0.2</version>
</dependency>
</dependencies>
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>**/*</include>
</includes>
</resource>
<resource>
<!-- I-062: shipping .java/.aj source from src/main/java as a resource looks
like incidental packaging bloat at a glance, but it is a genuine, traced
runtime dependency, not incidental: AspectJAJCopyFiles.csv (also under
src/main/java, see the '**/*.csv' include below) lists these exact source
files as copy 'Source' entries, consumed at runtime by JavaCSVFileLoader
via FileTools.resolveFileOnSourceDirectory - the code-generation flow that
assembles a consuming project's woven security test case reads these
shipped .aj/.java files back out of this jar. Narrowing this resource's
includes without also changing that CSV-driven flow would silently break
AOP test-case generation for consumers; do not narrow it in isolation. -->
<directory>src/main/java</directory>
<includes>
<include>**/*.java</include>
<include>**/*.aj</include>
<include>**/*.properties</include>
<include>**/*.yaml</include>
<include>**/*.yml</include>
<include>**/*.xml</include>
<include>**/*.csv</include>
<include>**/*.txt</include>
<include>**/*.md</include>
<include>**/*.cfg</include>
<include>**/*.so</include>
<include>**/*.sh</include>
</includes>
<filtering>false</filtering>
</resource>
</resources>
<plugins>
<!-- 1. Clean -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<version>3.5.0</version>
</plugin>
<!-- 2. Validate -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>3.6.3</version>
<executions>
<execution>
<id>enforce-versions</id>
<phase>validate</phase>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireMavenVersion>
<version>[3.9,)</version>
</requireMavenVersion>
<requireJavaVersion>
<version>[9,)</version>
</requireJavaVersion>
</rules>
</configuration>
</execution>
<execution>
<id>enforce-no-student-code-in-trusted-packages</id>
<phase>process-test-classes</phase>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireFilesDontExist>
<files>
<!-- Required for de.tum.cit.ase.ares.api.security.ArtemisSecurityConfigurationTest -->
<!-- <file>${project.build.outputDirectory}/abc/def/</file> -->
<file>${project.build.outputDirectory}/ch/qos/logback/</file>
<file>${project.build.outputDirectory}/com/github/javaparser/</file>
<file>${project.build.outputDirectory}/com/intellij/</file>
<file>${project.build.outputDirectory}/com/sun/</file>
<!-- We cannot fulfill this one because we are building those classes here
<file>${project.build.outputDirectory}/de/tum/cit/ase/ares/api/</file> -->
<file>${project.build.outputDirectory}/de/tum/in/test/api/</file>
<file>${project.build.outputDirectory}/java/</file>
<file>${project.build.outputDirectory}/javax/</file>
<file>${project.build.outputDirectory}/jdk/</file>
<file>${project.build.outputDirectory}/net/jqwik/</file>
<file>${project.build.outputDirectory}/org/apache/</file>
<file>${project.build.outputDirectory}/org/assertj/</file>
<file>${project.build.outputDirectory}/org/eclipse/</file>
<file>${project.build.outputDirectory}/org/jacoco/</file>
<file>${project.build.outputDirectory}/org/json/</file>
<file>${project.build.outputDirectory}/org/junit/</file>
<file>${project.build.outputDirectory}/org/opentest4j/</file>
<file>${project.build.outputDirectory}/sun/</file>
<file>${project.build.outputDirectory}/org/gradle/</file>
<file>${project.build.outputDirectory}/worker/org/gradle/</file>
</files>
</requireFilesDontExist>
</rules>
</configuration>
</execution>
</executions>
</plugin>
<!-- 3. Compile -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.15.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>3.5.0</version>
</plugin>
<plugin>
<groupId>dev.aspectj</groupId>
<artifactId>aspectj-maven-plugin</artifactId>
<version>1.14.1</version>
<dependencies>
<dependency>
<groupId>org.aspectj</groupId>
<!-- Kept in sync with the aspectjrt runtime via the shared property;
see the aspectj-version note for why this is pinned to 1.9.24. -->
<artifactId>aspectjtools</artifactId>
<version>${aspectj-version}</version>
</dependency>
</dependencies>
<configuration>
<forceAjcCompile>true</forceAjcCompile>
<complianceLevel>17</complianceLevel>
<source>17</source>
<target>17</target>
<showWeaveInfo>true</showWeaveInfo>
</configuration>
<executions>
<execution>
<id>weave-test-classes</id>
<phase>process-test-classes</phase>
<goals>
<goal>test-compile</goal>
</goals>
</execution>
<execution>
<id>weave-main-classes</id>
<phase>compile</phase>
<goals>
<goal>compile</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- 4. Test -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.5.6</version>
<configuration>
<forkCount>1</forkCount>
<!-- Use a fresh fork for every test class. WALA's mutable scope and graph,
instrumentation state and non-daemon threads therefore cannot accumulate
across the complete suite. -->
<reuseForks>${surefire-reuse-forks}</reuseForks>
<!-- Kill (and report) a hung forked JVM rather than letting CI run until
the runner dies. 2400s sits above a legitimate full-suite run yet below
the 45-minute CI job timeout, so a real hang is caught with a report. -->
<forkedProcessTimeoutInSeconds>2400</forkedProcessTimeoutInSeconds>
<argLine>@{argLine} -Xmx6g -javaagent:${byte-buddy-path} -Xbootclasspath/a:${aspectj-path} ${jvm.module.access.args}</argLine>
</configuration>
</plugin>
<!-- 5. Package -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.5.1</version>
<executions>
<execution>
<id>default-jar</id>
<phase>process-classes</phase>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<archive>
<manifestEntries>
<Sealed>true</Sealed>
<Premain-Class>de.tum.cit.ase.ares.api.aop.java.instrumentation.JavaInstrumentationAgent</Premain-Class>
<Can-Redefine-Classes>true</Can-Redefine-Classes>
<Can-Retransform-Classes>true</Can-Retransform-Classes>
<Can-Set-Native-Method-Prefix>true</Can-Set-Native-Method-Prefix>
<Boot-Class-Path></Boot-Class-Path>
</manifestEntries>
</archive>
<includes>
<include>**/*.class</include>
<include>**/*.java</include>
<include>**/*.aj</include>
<include>**/*.properties</include>
<include>**/*.yaml</include>
<include>**/*.yml</include>
<include>**/*.xml</include>
<include>**/*.csv</include>
<include>**/*.txt</include>
<include>**/*.md</include>
<include>**/*.cfg</include>
<include>**/*.so</include>
<include>**/*.sh</include>
<include>**/META-INF/**</include>
</includes>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.12.0</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
<configuration>
<failOnError>true</failOnError>
<tags>
<tag>
<name>apiNote</name>
<placement>a</placement>
<head>API Note:</head>
</tag>
<tag>
<name>implSpec</name>
<placement>a</placement>
<head>Implementation Requirements:</head>
</tag>
<tag>
<name>implNote</name>
<placement>a</placement>
<head>Implementation Note:</head>
</tag>
<tag>
<name>param</name>
</tag>
<tag>
<name>return</name>
</tag>
<tag>
<name>throws</name>
</tag>
<tag>
<name>since</name>
</tag>
<tag>
<name>version</name>
</tag>
<tag>
<name>serialData</name>
</tag>
<tag>
<name>see</name>
</tag>
</tags>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.4.0</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
<version>3.1.4</version>
<executions>
<execution>
<id>install-main-jar</id>
<phase>install</phase>
<goals>
<goal>install-file</goal>
</goals>
<configuration>
<file>${project.build.directory}${file.separator}${project.build.finalName}.jar</file>
<groupId>${project.groupId}</groupId>
<artifactId>${project.artifactId}</artifactId>
<version>${project.version}</version>
<packaging>jar</packaging>
</configuration>
</execution>
<execution>
<id>install-pom</id>
<phase>package</phase>
<goals>
<goal>install-file</goal>
</goals>
<configuration>
<file>${basedir}${file.separator}pom.xml
</file> <!-- Ensure this is correctly pointing to your POM file -->
<groupId>${project.groupId}</groupId>
<artifactId>${project.artifactId}</artifactId>
<version>${project.version}</version>
<packaging>pom</packaging>
</configuration>
</execution>
<execution>
<id>install-javadoc-jar</id>
<phase>install</phase>
<goals>
<goal>install-file</goal>
</goals>
<configuration>
<file>${project.build.directory}${file.separator}${project.build.finalName}-javadoc.jar
</file>
<groupId>${project.groupId}</groupId>
<artifactId>${project.artifactId}</artifactId>
<version>${project.version}</version>
<packaging>jar</packaging>
<classifier>javadoc</classifier>
</configuration>
</execution>
<execution>
<id>install-sources-jar</id>
<phase>install</phase>
<goals>
<goal>install-file</goal>
</goals>
<configuration>
<file>${project.build.directory}${file.separator}${project.build.finalName}-sources.jar
</file>
<groupId>${project.groupId}</groupId>
<artifactId>${project.artifactId}</artifactId>
<version>${project.version}</version>
<packaging>jar</packaging>
<classifier>sources</classifier>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.6.2</version>
<executions>
<!-- Create agent jar before tests so surefire -javaagent path exists -->
<execution>
<id>shade-agent-before-test</id>
<phase>process-classes</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<shadedArtifactAttached>true</shadedArtifactAttached>
<shadedClassifierName>agent</shadedClassifierName>
<transformers>
<transformer
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<manifestEntries>
<Premain-Class>
de.tum.cit.ase.ares.api.aop.java.instrumentation.JavaInstrumentationAgent
</Premain-Class>
<Can-Redefine-Classes>true</Can-Redefine-Classes>
<Can-Retransform-Classes>true</Can-Retransform-Classes>
<Can-Set-Native-Method-Prefix>true</Can-Set-Native-Method-Prefix>
<Boot-Class-Path></Boot-Class-Path>
</manifestEntries>
</transformer>
</transformers>
<artifactSet>
<includes>
<include>de.tum.cit.ase:ares</include>
</includes>
</artifactSet>
<!-- Surefire loads this agent jar via -javaagent, which makes the JVM append it to
the system classpath next to target/classes. Both then carry logback.xml, so logback
reports it "occurs multiple times on the classpath". Dropping the copy from this
test-only agent jar removes the duplicate while leaving the package-time agent jar
(the distributed artifact) byte-for-byte unchanged. -->
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>logback.xml</exclude>
</excludes>
</filter>
</filters>
</configuration>
</execution>
<!-- Keep existing package-time shaded agent -->
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<shadedArtifactAttached>true</shadedArtifactAttached>
<shadedClassifierName>agent</shadedClassifierName>
<transformers>
<transformer
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<manifestEntries>
<Premain-Class>
de.tum.cit.ase.ares.api.aop.java.instrumentation.JavaInstrumentationAgent
</Premain-Class>
<Can-Redefine-Classes>true</Can-Redefine-Classes>
<Can-Retransform-Classes>true</Can-Retransform-Classes>
<Can-Set-Native-Method-Prefix>true</Can-Set-Native-Method-Prefix>
<Boot-Class-Path></Boot-Class-Path>
</manifestEntries>
</transformer>
</transformers>
<artifactSet>
<includes>
<include>de.tum.cit.ase:ares</include>
</includes>
</artifactSet>
</configuration>
</execution>
</executions>
</plugin>
<!-- 6. Verify -->
<!-- 7. Install -->
<!-- 8. Site -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>3.22.0</version>
</plugin>
<!-- 9. Deploy -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>3.1.4</version>
</plugin>
<!-- Manual execution -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<version>2.21.0</version>
</plugin>
<plugin>
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
<version>${spotless.version}</version>
<configuration>
<encoding>UTF-8</encoding>
<formats>
<format>
<includes>
<include>*.xml</include>
<include>*.java</include>
<include>.gitignore</include>
</includes>
<trimTrailingWhitespace/>
<endWithNewline/>
<indent>
<tabs>true</tabs>
<spacesPerTab>4</spacesPerTab>
</indent>
</format>
</formats>
<java>
<removeUnusedImports/>
<importOrder>
<file>${basedir}${file.separator}.settings${file.separator}eclipse-rules.importorder</file>
</importOrder>
<eclipse>
<version>4.17.0</version>
<file>${basedir}${file.separator}.settings${file.separator}eclipse-formatter-rules.xml
</file>
</eclipse>
</java>
</configuration>
</plugin>
<!-- Static analysis: the failing goals are bound to package so every local or CI
artefact build crosses the same Checkstyle, PMD, CPD and SpotBugs gate. The
goals may also be run directly for faster feedback; report-only goals remain
available for inspection.
The rule sets live in .settings next to the Eclipse formatter rules. They are
deliberately trimmed so that no rule contradicts the formatter (which owns
indentation, tabs, line length and import order) and no rule objects to a
deliberate security idiom; see the comment in each file. The findings that
remain are build failures rather than report-only warnings. -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>3.6.0</version>
<configuration>
<configLocation>${basedir}${file.separator}.settings${file.separator}checkstyle-rules.xml</configLocation>
<failOnViolation>true</failOnViolation>
<failsOnError>true</failsOnError>
<violationSeverity>error</violationSeverity>
<consoleOutput>true</consoleOutput>
</configuration>
<executions>
<execution>
<id>checkstyle-quality-gate</id>
<phase>package</phase>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
<version>3.28.0</version>
<configuration>
<rulesets>
<ruleset>${basedir}${file.separator}.settings${file.separator}pmd-rules.xml</ruleset>
</rulesets>
<excludeFromFailureFile>${basedir}${file.separator}.settings${file.separator}cpd-allowed-duplications.txt</excludeFromFailureFile>
<failOnViolation>true</failOnViolation>
<printFailingErrors>true</printFailingErrors>
</configuration>
<executions>
<execution>
<id>pmd-quality-gate</id>
<phase>package</phase>
<goals>
<goal>check</goal>
<goal>cpd-check</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-maven-plugin</artifactId>
<version>4.10.4.0</version>
<configuration>
<excludeFilterFile>${basedir}${file.separator}.settings${file.separator}spotbugs-exclude.xml</excludeFilterFile>
<failOnError>true</failOnError>
</configuration>
<executions>
<execution>
<id>spotbugs-quality-gate</id>
<phase>package</phase>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<name>Ares</name>
<description>A JUnit 5 Extension for secure Artemis Java Testing.</description>
<url>https://github.com/ls1intum/Ares2</url>
<inceptionYear>2024</inceptionYear>
<licenses>
<license>
<name>MIT</name>
<url>https://opensource.org/licenses/MIT</url>
<comments>See https://github.com/ls1intum/Ares2/blob/master/LICENSE</comments>
</license>
</licenses>
<organization>
<name>Technical University of Munich, School of Computation, Information and Technology , Research Group Applied
Software Engineering
</name>
<url>https://ase.cit.tum.de/</url>
</organization>
<developers>
<developer>
<id>MarkusPaulsen</id>
<name>Markus Paulsen</name>
<email>markus.paulsen@tum.de</email>
<url>https://ase.cit.tum.de/people/paulsen/</url>
<organization>Technical University of Munich, School of Computation, Information and Technology , Research
Group Applied Software Engineering
</organization>
<organizationUrl>https://ase.cit.tum.de/</organizationUrl>
<roles>
<role>Scientific Researcher</role>
</roles>
<timezone>Europe/Berlin</timezone>
</developer>
<developer>
<id>SarpSahinalp</id>
<name>Sarp Sahinalp</name>
<email>sarp.sahinalp@tum.de</email>
<url>https://ase.cit.tum.de/people/paulsen/</url>
<organization>Technical University of Munich, School of Computation, Information and Technology , Research
Group Applied Software Engineering
</organization>
<organizationUrl>https://ase.cit.tum.de/</organizationUrl>
<roles>
<role>Thesis Student</role>
</roles>
<timezone>Europe/Berlin</timezone>
</developer>
<developer>
<id>AnirudhZaveri</id>
<name>Anirudh Zaveri</name>
<email>anirudh.zaveri@tum.de</email>
<url>https://ase.cit.tum.de/people/paulsen/</url>
<organization>Technical University of Munich, School of Computation, Information and Technology , Research
Group Applied Software Engineering
</organization>
<organizationUrl>https://ase.cit.tum.de/</organizationUrl>
<roles>
<role>Thesis Student</role>
</roles>
<timezone>Europe/Berlin</timezone>
</developer>
</developers>
<contributors>
<contributor>
<name>Christian Femers</name>
<email>christian.femers@tum.de</email>
<organization>Technical University of Munich</organization>
<organizationUrl>https://www.tum.de</organizationUrl>
<roles>
<role>Creator of Ares 1.0</role>
</roles>
<timezone>Europe/Berlin</timezone>
</contributor>
</contributors>
<scm>
<url>https://github.com/ls1intum/Ares2</url>
<connection>scm:git:https://github.com/ls1intum/Ares2.git</connection>
<developerConnection>scm:git:https://github.com/ls1intum/Ares2.git</developerConnection>
</scm>
<profiles>
<!-- Test selection for CI. Architecture tests run separately from functional tests.
The functional AOP integration tests are selected by method name in the CI workflow,
one job for each architecture/AOP mode combination. Neither profile is active by
default, so a plain `mvn test` still runs the whole suite locally and for any
downstream consumer.
The architecture tests are selected by package rather than moved into a directory of
their own: 13 of them sit in the same package as the code they exercise and call its
package-private members, so moving them would mean widening the visibility of the
security internals purely to satisfy a CI layout. -->
<profile>
<id>architecture-tests</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<includes>
<include>**/integration/architecture/**/*Test.java</include>
</includes>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>functional-tests</id>