-
Notifications
You must be signed in to change notification settings - Fork 0
/
pom.xml
351 lines (344 loc) · 12.2 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
347
348
349
350
351
<?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>
<groupId>org.t246osslab.easybuggy</groupId>
<artifactId>easybuggy</artifactId>
<version>1-SNAPSHOT</version>
<packaging>war</packaging>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<easybuggy-port>8080</easybuggy-port>
<!-- default properties (JDK 1.7 or earlier) -->
<jvm.args.perm.size>-XX:MaxPermSize=128m</jvm.args.perm.size>
<jvm.args.gc.log.path>-Xloggc:logs/gc.log</jvm.args.gc.log.path>
<jvm.args.print.heap.at.gc>-XX:+PrintHeapAtGC</jvm.args.print.heap.at.gc>
<jvm.args.print.gc.details>-XX:+PrintGCDetails</jvm.args.print.gc.details>
<jvm.args.print.gc.date.stamps>-XX:+PrintGCDateStamps</jvm.args.print.gc.date.stamps>
<jvm.args.gc.log.file.rotation>-XX:+UseGCLogFileRotation</jvm.args.gc.log.file.rotation>
<jvm.args.number.of.gc.log.files>-XX:NumberOfGCLogFiles=5</jvm.args.number.of.gc.log.files>
<jvm.args.gc.log.file.size>-XX:GCLogFileSize=10M</jvm.args.gc.log.file.size>
</properties>
<profiles>
<profile>
<id>JDK8-Switch</id>
<activation>
<jdk>1.8</jdk>
</activation>
<properties>
<jvm.args.perm.size>-XX:MaxMetaspaceSize=128m</jvm.args.perm.size>
<jvm.args.gc.log.path>-Xloggc:logs/gc_%p_%t.log</jvm.args.gc.log.path>
</properties>
</profile>
<profile>
<id>JDK11-Switch</id>
<activation>
<jdk>11</jdk>
</activation>
<properties>
<jvm.args.perm.size>-XX:MaxMetaspaceSize=128m</jvm.args.perm.size>
<jvm.args.gc.log.path>-Xlog:gc*:logs/gc_%p_%t.log:time,level,tags:filecount=5,filesize=10M</jvm.args.gc.log.path>
<!-- TODO Remove these properties -->
<jvm.args.print.heap.at.gc>-Dummy=Dummy</jvm.args.print.heap.at.gc>
<jvm.args.print.gc.details>-Dummy=Dummy</jvm.args.print.gc.details>
<jvm.args.print.gc.date.stamps>-Dummy=Dummy</jvm.args.print.gc.date.stamps>
<jvm.args.gc.log.file.rotation>-Dummy=Dummy</jvm.args.gc.log.file.rotation>
<jvm.args.number.of.gc.log.files>-Dummy=Dummy</jvm.args.number.of.gc.log.files>
<jvm.args.gc.log.file.size>-Dummy=Dummy</jvm.args.gc.log.file.size>
</properties>
</profile>
</profiles>
<dependencies>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.0.1</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.servlet.jsp</groupId>
<artifactId>jsp-api</artifactId>
<version>2.2</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
<version>1.2</version>
</dependency>
<dependency>
<groupId>org.apache.derby</groupId>
<artifactId>derby</artifactId>
<version>10.8.3.0</version>
</dependency>
<dependency>
<groupId>javassist</groupId>
<artifactId>javassist</artifactId>
<version>3.12.1.GA</version>
</dependency>
<dependency>
<groupId>org.openjdk.jol</groupId>
<artifactId>jol-core</artifactId>
<version>0.6</version>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.25</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.5.0</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>1.5.0</version>
</dependency>
<dependency>
<groupId>org.apache.directory.server</groupId>
<artifactId>apacheds-all</artifactId>
<version>1.5.5</version>
<exclusions>
<exclusion>
<groupId>org.apache.directory.shared</groupId>
<artifactId>shared-ldap</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.owasp.esapi</groupId>
<artifactId>esapi</artifactId>
<version>2.1.0.1</version>
</dependency>
<dependency>
<groupId>ognl</groupId>
<artifactId>ognl</artifactId>
<version>3.0.17</version>
</dependency>
<dependency>
<groupId>com.sun.mail</groupId>
<artifactId>javax.mail</artifactId>
<version>1.5.1</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>1.1.1</version>
<executions>
<execution>
<id>enforce-java</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireMavenVersion>
<version>[3.0.0,)</version>
</requireMavenVersion>
<requireJavaVersion>
<version>[1.6,)</version>
<message>[ERROR] OLD JDK [${java.version}] in use.
EasyBuggy requires JDK 1.6 or later</message>
</requireJavaVersion>
</rules>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.owasp</groupId>
<artifactId>dependency-check-maven</artifactId>
<version>6.1.6</version>
<configuration>
<format>ALL</format>
<!-- <failBuildOnCVSS>8</failBuildOnCVSS>
use internal mirroring of CVE contents
Suppress files
E.g. a company-wide suppression file and local project file
-->
<!--
<cveUrlModified>http://internal-mirror.mycorp.com/nvdcve-1.1-modified.json.gz</cveUrlModified>
<cveUrlBase>http://internal-mirror.mycorp.com/nvdcve-1.1-%d.json.gz</cveUrlBase>
<suppressionFiles>
<suppressionFile>http://example.org/suppression.xml</suppressionFile>
<suppressionFile>project-suppression.xml</suppressionFile>
</suppressionFiles>
-->
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>create-empty-directory-and-english-properties</id>
<phase>process-classes</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<tasks>
<mkdir dir="logs" />
<copy file="${basedir}/src/main/resources/messages_en.properties"
tofile="${project.build.outputDirectory}/messages.properties" />
<copy file="${basedir}/src/main/resources/indexpage_en.properties"
tofile="${project.build.outputDirectory}/indexpage.properties" />
<delete
file="${project.build.outputDirectory}/org/t246osslab/easybuggy/core/utils/DeleteClassWhileMavenBuild.class" />
</tasks>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<version>3.3.1</version>
<configuration>
<failOnMissingWebXml>false</failOnMissingWebXml>
<warName>ROOT</warName>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat7-maven-plugin</artifactId>
<version>2.1</version>
<executions>
<execution>
<id>tomcat-run</id>
<goals>
<goal>exec-war-only</goal>
</goals>
<phase>package</phase>
<configuration>
<path>/</path>
<enableNaming>true</enableNaming>
<finalName>easybuggy.jar</finalName>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.2</version>
<executions>
<execution>
<id>startup-uber-start</id>
<phase>install</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<classpathScope>test</classpathScope>
<executable>java</executable>
<arguments>
<argument>${jvm.args.perm.size}</argument>
<argument>${jvm.args.gc.log.path}</argument>
<argument>-Xmx256m</argument>
<argument>-XX:MaxDirectMemorySize=90m</argument>
<argument>-XX:+UseSerialGC</argument>
<argument>${jvm.args.print.heap.at.gc}</argument>
<argument>${jvm.args.print.gc.details}</argument>
<argument>${jvm.args.print.gc.date.stamps}</argument>
<argument>${jvm.args.gc.log.file.rotation}</argument>
<argument>${jvm.args.number.of.gc.log.files}</argument>
<argument>${jvm.args.gc.log.file.size}</argument>
<argument>-XX:GCTimeLimit=15</argument>
<argument>-XX:GCHeapFreeLimit=50</argument>
<argument>-XX:+HeapDumpOnOutOfMemoryError</argument>
<argument>-XX:HeapDumpPath=logs/</argument>
<argument>-XX:ErrorFile=logs/hs_err_pid%p.log</argument>
<!-- <argument>-XX:NativeMemoryTracking=summary</argument> -->
<!-- Auto kill JVM when OOME occurs: For post-8u92 JDKs -->
<!-- <argument>-XX:+CrashOnOutOfMemoryError</argument> -->
<!-- Auto kill JVM when OOME occurs: For Linux -->
<!-- <argument>-XX:OnOutOfMemoryError="kill -9 %p"</argument> -->
<!-- Auto kill JVM when OOME occurs: For Windows -->
<!-- -XX:OnOutOfMemoryError=taskkill /F /PID %p -->
<!-- UnlockCommercialFeatures/FlightRecorder: For Oracle Java commercial use -->
<!-- <argument>-XX:+UnlockCommercialFeatures</argument> <argument>-XX:+FlightRecorder</argument> -->
<!-- <argument>-agentpath:/root/eclipse/plugins/org.zeroturnaround.eclipse.embedder_7.0.8.RELEASE/jrebel/lib/libjrebel64.so</argument> -->
<argument>-agentlib:jdwp=transport=dt_socket,server=y,address=9009,suspend=n</argument>
<argument>-Dderby.stream.error.file=logs/derby.log</argument>
<argument>-Dderby.infolog.append=true</argument>
<argument>-Dderby.language.logStatementText=true</argument>
<argument>-Dderby.locks.deadlockTrace=true</argument>
<argument>-Dderby.locks.monitor=true</argument>
<argument>-Dderby.storage.rowLocking=true</argument>
<argument>-Dcom.sun.management.jmxremote</argument>
<argument>-Dcom.sun.management.jmxremote.port=7900</argument>
<argument>-Dcom.sun.management.jmxremote.ssl=false</argument>
<argument>-Dcom.sun.management.jmxremote.authenticate=false</argument>
<!-- <argument>-Djava.security.manager</argument>
<argument>-Djava.security.policy=catalina.policy</argument> -->
<!-- <argument>-Deasybuggy.mode=only-vulnerabilities</argument> -->
<argument>-ea</argument>
<argument>-jar</argument>
<argument>target/easybuggy.jar</argument>
<argument>-httpPort=${easybuggy-port}</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
<!--# Changes for Software Composition Analysis Scan using Snyk
#By ASecurityGuru
-->
<plugin>
<groupId>io.snyk</groupId>
<artifactId>snyk-maven-plugin</artifactId>
<version>2.0.0</version>
<inherited>false</inherited>
<configuration>
<org>asecurityguru</org>
</configuration>
</plugin>
<!-- Snyk Changes for SCA Ends Here -->
</plugins>
<pluginManagement>
<plugins>
<!--This plugin's configuration is used to store Eclipse m2e settings
only. It has no influence on the Maven build itself. -->
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-antrun-plugin
</artifactId>
<versionRange>[1.3,)</versionRange>
<goals>
<goal>run</goal>
</goals>
</pluginExecutionFilter>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>