-
Notifications
You must be signed in to change notification settings - Fork 0
/
pom.xml
162 lines (143 loc) · 6.68 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
<?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>
<parent>
<artifactId>cdoc2</artifactId>
<groupId>ee.cyber.cdoc2</groupId>
<version>1.3.0</version>
</parent>
<artifactId>gatling-tests</artifactId>
<version>1.4.0-SNAPSHOT</version>
<properties>
<lombok.version>1.18.34</lombok.version>
<gatling.version>3.11.5</gatling.version>
<gatling-maven-plugin.version>4.9.6</gatling-maven-plugin.version>
</properties>
<dependencies>
<dependency>
<groupId>ee.cyber.cdoc2</groupId>
<artifactId>cdoc2-lib</artifactId>
<version>1.4.0</version>
</dependency>
<dependency>
<groupId>io.gatling.highcharts</groupId>
<artifactId>gatling-charts-highcharts</artifactId>
<version>${gatling.version}</version>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>${logback-classic.version}</version>
</dependency>
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcpkix-jdk18on</artifactId>
<version>${bouncycastle.version}</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>io.gatling</groupId>
<artifactId>gatling-maven-plugin</artifactId>
<version>${gatling-maven-plugin.version}</version>
</plugin>
<!-- task to generate key store files to use in gatling tests -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>${exec-maven-plugin.version}</version>
<configuration>
<mainClass>ee.cyber.cdoc2.server.datagen.KeyStoreGenerator</mainClass>
<systemProperties>
<systemProperty>
<!-- the folder where the generated files will be written -->
<key>output-dir</key>
<value>${basedir}/src/test/resources/keys/test-clients</value>
</systemProperty>
<systemProperty>
<!-- the password for the generated keystores -->
<key>keystore-password</key>
<value>secret</value>
</systemProperty>
<systemProperty>
<!-- the key alias for the generated entry in the keystore -->
<key>key-alias</key>
<value>client-key</value>
</systemProperty>
<systemProperty>
<!-- location of the root keystore to use to sign certificate in the generated keystore -->
<key>root-keystore</key>
<value>${basedir}/src/test/resources/keys/gatling-ca.p12</value>
</systemProperty>
<systemProperty>
<!-- the root keystore type -->
<key>root-keystore-type</key>
<value>pkcs12</value>
</systemProperty>
<systemProperty>
<!-- the key alias for the entry in the root keystore to use for signing -->
<key>root-key-alias</key>
<value>gatling-ca</value>
</systemProperty>
<systemProperty>
<!-- the root keystore password -->
<key>root-keystore-password</key>
<value>secret</value>
</systemProperty>
</systemProperties>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>3.5.0</version>
<!-- can use a constant from ref-impl repo with next release 1.4.0-->
<!-- <version>${maven-checkstyle-plugin.version}</version>-->
<configuration>
<configLocation>checkstyle.xml</configLocation>
<suppressionsLocation>checkstyle-suppressions.xml</suppressionsLocation>
<sourceDirectories>
<sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
<sourceDirectory>${project.build.testSourceDirectory}</sourceDirectory>
</sourceDirectories>
<consoleOutput>true</consoleOutput>
<failsOnError>true</failsOnError>
<failOnViolation>false</failOnViolation>
<linkXRef>false</linkXRef>
</configuration>
</plugin>
<!-- creates the jar with all dependencies -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>${maven-shade-plugin.version}</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>module-info.class</exclude>
<exclude>META-INF/*</exclude>
<exclude>META-INF/**</exclude>
</excludes>
</filter>
</filters>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>