373 lines
15 KiB
XML
373 lines
15 KiB
XML
<?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/maven-v4_0_0.xsd">
|
|
|
|
<name>webgoat-container</name>
|
|
<modelVersion>4.0.0</modelVersion>
|
|
<artifactId>webgoat-container</artifactId>
|
|
<packaging>war</packaging>
|
|
|
|
<parent>
|
|
<groupId>org.owasp.webgoat</groupId>
|
|
<artifactId>webgoat-parent</artifactId>
|
|
<version>8.0-SNAPSHOT</version>
|
|
</parent>
|
|
|
|
<properties>
|
|
<start-class>org.owasp.webgoat.WebGoat</start-class>
|
|
</properties>
|
|
|
|
<profiles>
|
|
<profile>
|
|
<id>run-integration-tests</id>
|
|
<activation>
|
|
<activeByDefault>false</activeByDefault>
|
|
<property>
|
|
<name>run-integration</name>
|
|
<value>true</value>
|
|
</property>
|
|
</activation>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.tomcat.maven</groupId>
|
|
<artifactId>tomcat7-maven-plugin</artifactId>
|
|
<version>2.3-SNAPSHOT</version>
|
|
<configuration>
|
|
<server>local_tomcat</server>
|
|
<url>http://localhost:8080/manager</url>
|
|
<path>/WebGoat</path>
|
|
<attachArtifactClassifier>exec</attachArtifactClassifier>
|
|
<contextReloadable>true</contextReloadable>
|
|
<useSeparateTomcatClassLoader>true</useSeparateTomcatClassLoader>
|
|
<contextFile>${project.basedir}/src/main/old/WEB-INF/context.xml</contextFile>
|
|
</configuration>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.owasp.webgoat</groupId>
|
|
<artifactId>webgoat-container</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
</dependencies>
|
|
<executions>
|
|
<execution>
|
|
<id>tomcat-run</id>
|
|
<goals>
|
|
<goal>exec-war-only</goal>
|
|
</goals>
|
|
<phase>package</phase>
|
|
</execution>
|
|
<execution>
|
|
<id>tomcat-startup</id>
|
|
<phase>pre-integration-test</phase>
|
|
<goals>
|
|
<goal>run-war-only</goal>
|
|
</goals>
|
|
<configuration>
|
|
<port>8888</port>
|
|
<fork>true</fork>
|
|
</configuration>
|
|
</execution>
|
|
<!-- At post-integration-test phase, stop the embedded Tomcat server. -->
|
|
<execution>
|
|
<id>tomcat-shutdown</id>
|
|
<phase>post-integration-test</phase>
|
|
<goals>
|
|
<goal>shutdown</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-failsafe-plugin</artifactId>
|
|
<version>${maven-failsafe-plugin.version}</version>
|
|
<executions>
|
|
<execution>
|
|
<goals>
|
|
<goal>integration-test</goal>
|
|
<goal>verify</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
</profiles>
|
|
|
|
<build>
|
|
<resources>
|
|
<resource>
|
|
<directory>src/main/java</directory>
|
|
</resource>
|
|
<resource>
|
|
<directory>src/main/resources</directory>
|
|
<filtering>true</filtering>
|
|
<includes>
|
|
<include>**/application.properties</include>
|
|
</includes>
|
|
</resource>
|
|
<resource>
|
|
<directory>src/main/resources</directory>
|
|
</resource>
|
|
</resources>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>com.spotify</groupId>
|
|
<artifactId>docker-maven-plugin</artifactId>
|
|
<version>0.4.10</version>
|
|
<configuration>
|
|
<imageName>webgoat/${project.artifactId}</imageName>
|
|
<dockerDirectory>src/main/docker</dockerDirectory>
|
|
<resources>
|
|
<resource>
|
|
<targetPath>/</targetPath>
|
|
<directory>${project.build.directory}</directory>
|
|
<include>${project.build.finalName}.war</include>
|
|
</resource>
|
|
</resources>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-jar-plugin</artifactId>
|
|
<version>${maven-jar-plugin.version}</version>
|
|
<executions>
|
|
<execution>
|
|
<id>create-jar</id>
|
|
<phase>compile</phase>
|
|
<goals>
|
|
<goal>jar</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>build-helper-maven-plugin</artifactId>
|
|
<version>${build-helper-maven-plugin.version}</version>
|
|
<executions>
|
|
<execution>
|
|
<id>attach-artifacts</id>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>attach-artifact</goal>
|
|
</goals>
|
|
<configuration>
|
|
<artifacts>
|
|
<artifact>
|
|
<file>${project.build.directory}/webgoat-container-${project.version}.jar</file>
|
|
</artifact>
|
|
</artifacts>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-resources-plugin</artifactId>
|
|
<version>2.6</version>
|
|
<configuration>
|
|
<delimiters>
|
|
<delimiter>@</delimiter>
|
|
</delimiters>
|
|
<useDefaultDelimiters>false</useDefaultDelimiters>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
<version>${maven-compiler-plugin.version}</version>
|
|
<configuration>
|
|
<source>1.8</source>
|
|
<target>1.8</target>
|
|
<encoding>ISO-8859-1</encoding>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
<version>${maven-surefire-plugin.version}</version>
|
|
<configuration>
|
|
<excludes>
|
|
<exclude>**/*IT.java</exclude>
|
|
</excludes>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
<configuration>
|
|
<!-- See http://docs.spring.io/spring-boot/docs/current/reference/html/howto-build.html#howto-extract-specific-libraries-when-an-executable-jar-runs -->
|
|
<requiresUnpack>
|
|
<dependency>
|
|
<groupId>org.thymeleaf.extra</groupId>
|
|
<artifactId>thymeleaf-extras-springsecurity4</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.asciidoctor</groupId>
|
|
<artifactId>asciidoctorj</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.jruby</groupId>
|
|
<artifactId>jruby-complete</artifactId>
|
|
</dependency>
|
|
</requiresUnpack>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-web</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-actuator</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.tomcat.embed</groupId>
|
|
<artifactId>tomcat-embed-jasper</artifactId>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-configuration-processor</artifactId>
|
|
<optional>true</optional>
|
|
</dependency>
|
|
<!--<dependency>-->
|
|
<!--<groupId>org.springframework.boot</groupId>-->
|
|
<!--<artifactId>spring-boot-devtools</artifactId>-->
|
|
<!--<optional>true</optional>-->
|
|
<!--</dependency>-->
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-loader</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.fasterxml.jackson.dataformat</groupId>
|
|
<artifactId>jackson-dataformat-yaml</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.asciidoctor</groupId>
|
|
<artifactId>asciidoctorj</artifactId>
|
|
<version>1.5.4</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>javax.servlet</groupId>
|
|
<artifactId>jstl</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-security</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-thymeleaf</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.thymeleaf.extras</groupId>
|
|
<artifactId>thymeleaf-extras-springsecurity4</artifactId>
|
|
<version>2.1.2.RELEASE</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>javax.activation</groupId>
|
|
<artifactId>activation</artifactId>
|
|
<version>${activation.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.h2database</groupId>
|
|
<artifactId>h2</artifactId>
|
|
<version>${h2.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>axis</groupId>
|
|
<artifactId>axis</artifactId>
|
|
<version>${axis.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>axis</groupId>
|
|
<artifactId>axis-saaj</artifactId>
|
|
<version>${axis-saaj.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>axis</groupId>
|
|
<artifactId>axis-jaxrpc</artifactId>
|
|
<version>${axis-jaxrpc.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>axis</groupId>
|
|
<artifactId>axis-ant</artifactId>
|
|
<version>${axis-ant.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>hsqldb</groupId>
|
|
<artifactId>hsqldb</artifactId>
|
|
<version>${hsqldb.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>wsdl4j</groupId>
|
|
<artifactId>wsdl4j</artifactId>
|
|
<version>${wsdl4j.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>ecs</groupId>
|
|
<artifactId>ecs</artifactId>
|
|
<version>${ecs.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>javax.transaction</groupId>
|
|
<artifactId>javax.transaction-api</artifactId>
|
|
<version>${javax.transaction-api.version}</version>
|
|
</dependency>
|
|
|
|
<!-- Apache Commons Upload -->
|
|
<dependency>
|
|
<groupId>commons-fileupload</groupId>
|
|
<artifactId>commons-fileupload</artifactId>
|
|
<version>${commons-fileupload.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.google.guava</groupId>
|
|
<artifactId>guava</artifactId>
|
|
<version>${guava.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.spotify</groupId>
|
|
<artifactId>docker-maven-plugin</artifactId>
|
|
<version>0.4.10</version>
|
|
</dependency>
|
|
|
|
<!-- ************* END spring MVC and related dependencies ************** -->
|
|
<!-- ************* START: Dependencies for Unit and Integration Testing ************** -->
|
|
<dependency>
|
|
<groupId>junit</groupId>
|
|
<artifactId>junit</artifactId>
|
|
<version>${junit.version}</version>
|
|
<type>jar</type>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.seleniumhq.selenium</groupId>
|
|
<artifactId>selenium-java</artifactId>
|
|
<version>${selenium-java.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.saucelabs</groupId>
|
|
<artifactId>sauce_junit</artifactId>
|
|
<version>${sauce_junit.version}</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<!-- ************* END: Dependencies for Unit and Integration Testing ************** -->
|
|
<!-- ************* END: <dependencies> ************** -->
|
|
</dependencies>
|
|
|
|
</project>
|