|
8 | 8 | <name>OWASP Benchmark Project</name> |
9 | 9 | <url>https://www.owasp.org/index.php/Benchmark</url> |
10 | 10 | <profiles> |
| 11 | + <profile> |
| 12 | + <id>permute</id> |
| 13 | + <properties> |
| 14 | + <skipTests>true</skipTests> |
| 15 | + </properties> |
| 16 | + <build> |
| 17 | + <plugins> |
| 18 | + <plugin> |
| 19 | + <artifactId>maven-clean-plugin</artifactId> |
| 20 | + <version>2.6.1</version> |
| 21 | + <configuration> |
| 22 | + <filesets> |
| 23 | + <fileset> |
| 24 | + <directory>src/main/java/org/owasp/benchmark/testcode</directory> |
| 25 | + <includes> |
| 26 | + <include>**/BenchmarkTest*</include> |
| 27 | + </includes> |
| 28 | + <followSymlinks>false</followSymlinks> |
| 29 | + </fileset> |
| 30 | + <fileset> |
| 31 | + <directory>src/main/webapp</directory> |
| 32 | + <includes> |
| 33 | + <include>**/BenchmarkTest*</include> |
| 34 | + <include>**/*Index*</include> |
| 35 | + </includes> |
| 36 | + <followSymlinks>false</followSymlinks> |
| 37 | + </fileset> |
| 38 | + </filesets> |
| 39 | + </configuration> |
| 40 | + </plugin> |
| 41 | + </plugins> |
| 42 | + </build> |
| 43 | + </profile> |
| 44 | + |
| 45 | + <profile> |
| 46 | + <id>crawler</id> |
| 47 | + <build> |
| 48 | + <plugins> |
| 49 | + <plugin> |
| 50 | + <groupId>org.codehaus.mojo</groupId> |
| 51 | + <artifactId>exec-maven-plugin</artifactId> |
| 52 | + <version>1.4.0</version> |
| 53 | + <executions> |
| 54 | + <execution> |
| 55 | + <phase>validate</phase> |
| 56 | + <goals> |
| 57 | + <goal>java</goal> |
| 58 | + </goals> |
| 59 | + <configuration> |
| 60 | + <mainClass>org.owasp.benchmark.tools.BenchmarkRunner</mainClass> |
| 61 | + </configuration> |
| 62 | + </execution> |
| 63 | + </executions> |
| 64 | + </plugin> |
| 65 | + </plugins> |
| 66 | + </build> |
| 67 | + </profile> |
| 68 | + |
| 69 | + |
11 | 70 | <profile> |
12 | 71 | <id>benchmarkscore</id> |
13 | 72 | <build> |
|
130 | 189 | </build> |
131 | 190 | </profile> |
132 | 191 |
|
| 192 | + <profile> |
| 193 | + <id>deploywcontrast</id> |
| 194 | + <properties> |
| 195 | + <skipTests>true</skipTests> |
| 196 | + </properties> |
| 197 | + <build> |
| 198 | + <plugins> |
| 199 | + <plugin> |
| 200 | + <artifactId>maven-antrun-plugin</artifactId> |
| 201 | + <version>1.7</version> |
| 202 | + <executions> |
| 203 | + <execution> |
| 204 | + <id>ldap-server</id> |
| 205 | + <phase>package</phase> |
| 206 | + <goals> |
| 207 | + <goal>run</goal> |
| 208 | + </goals> |
| 209 | + <configuration> |
| 210 | + <target> |
| 211 | + <ant target="run" antfile="${basedir}/src/config/build.xml"> |
| 212 | + <reference torefid="maven.compile.classpath" refid="maven.compile.classpath" /> |
| 213 | + </ant> |
| 214 | + </target> |
| 215 | + </configuration> |
| 216 | + </execution> |
| 217 | + </executions> |
| 218 | + </plugin> |
| 219 | + <plugin> |
| 220 | + <groupId>org.codehaus.cargo</groupId> |
| 221 | + <artifactId>cargo-maven2-plugin</artifactId> |
| 222 | + <version>1.4.9</version> |
| 223 | + <configuration> |
| 224 | + <container> |
| 225 | + <timeout>300000</timeout> |
| 226 | + <containerId>tomcat8x</containerId> |
| 227 | + <zipUrlInstaller> |
| 228 | + <url>http://archive.apache.org/dist/tomcat/tomcat-8/v8.0.21/bin/apache-tomcat-8.0.21.zip</url> |
| 229 | + </zipUrlInstaller> |
| 230 | + </container> |
| 231 | + <properties> |
| 232 | + <cargo.jvmargs>-XX:MaxPermSize=6G -Xms1G –Xmx8G</cargo.jvmargs> |
| 233 | + </properties> |
| 234 | + <configuration> |
| 235 | + <properties> |
| 236 | + <cargo.jvmargs> |
| 237 | + -Xmx4G |
| 238 | + -javaagent:${basedir}/forcontrast/contrast.jar=${basedir}/forcontrast/contrast.config |
| 239 | + -Dcontrast.dir=${basedir}/forcontrast/working |
| 240 | + -Dcontrast.saveresults=always |
| 241 | + -Dcontrast.noteamserver.enable=true |
| 242 | + -Dcontrast.teamserver.suppress=true |
| 243 | + </cargo.jvmargs> |
| 244 | + <cargo.servlet.port>8443</cargo.servlet.port> |
| 245 | + <cargo.protocol>https</cargo.protocol> |
| 246 | + <cargo.tomcat.connector.clientAuth>false</cargo.tomcat.connector.clientAuth> |
| 247 | + <cargo.tomcat.connector.sslProtocol>TLS</cargo.tomcat.connector.sslProtocol> |
| 248 | + <cargo.tomcat.connector.keystoreFile>../../../../.keystore</cargo.tomcat.connector.keystoreFile> |
| 249 | + <cargo.tomcat.connector.keystorePass>changeit</cargo.tomcat.connector.keystorePass> |
| 250 | + <cargo.tomcat.connector.keyAlias>tomcat</cargo.tomcat.connector.keyAlias> |
| 251 | + <cargo.tomcat.httpSecure>true</cargo.tomcat.httpSecure> |
| 252 | + </properties> |
| 253 | + </configuration> |
| 254 | + </configuration> |
| 255 | + </plugin> |
| 256 | + </plugins> |
| 257 | + </build> |
| 258 | + </profile> |
| 259 | + |
133 | 260 | <profile> |
134 | 261 | <id>time</id> |
135 | 262 | <build> |
|
215 | 342 | </profile> |
216 | 343 | </profiles> |
217 | 344 |
|
| 345 | + <repositories> |
| 346 | + <repository> |
| 347 | + <id>jenkins-releases</id> |
| 348 | + <url>http://repo.jenkins-ci.org/releases/</url> |
| 349 | + </repository> |
| 350 | + </repositories> |
| 351 | + |
218 | 352 | <dependencies> |
219 | 353 |
|
| 354 | + <dependency> |
| 355 | + <groupId>org.seleniumhq.selenium</groupId> |
| 356 | + <artifactId>selenium-server-standalone</artifactId> |
| 357 | + <version>2.46.0</version> |
| 358 | + </dependency> |
| 359 | + |
220 | 360 | <dependency> |
221 | 361 | <groupId>org.slf4j</groupId> |
222 | 362 | <artifactId>slf4j-api</artifactId> |
|
523 | 663 | </compilerArgs> |
524 | 664 | </configuration> |
525 | 665 | </plugin> |
526 | | - <plugin> |
527 | | - <groupId>com.internetitem</groupId> |
528 | | - <artifactId>write-properties-file-maven-plugin</artifactId> |
529 | | - <version>1.0.1</version> |
530 | | - <executions> |
531 | | - <execution> |
532 | | - <id>benchmarkVersion</id> |
533 | | - <phase>validate</phase> |
534 | | - <goals> |
535 | | - <goal>write-properties-file</goal> |
536 | | - </goals> |
537 | | - <configuration> |
538 | | - <filename>build.properties</filename> |
539 | | - <outputDirectory>${basedir}/src/main/resources/</outputDirectory> |
540 | | - <properties> |
541 | | - <property> |
542 | | - <name>version</name> |
543 | | - <value>${project.version}</value> |
544 | | - </property> |
545 | | - </properties> |
546 | | - </configuration> |
547 | | - </execution> |
548 | | - </executions> |
549 | | - </plugin> |
550 | | - |
551 | 666 | <!-- FindBugs Static Analysis --> |
552 | 667 | <plugin> |
553 | 668 | <groupId>org.codehaus.mojo</groupId> |
|
0 commit comments