diff --git a/webgoat-release/.gitignore b/webgoat-release/.gitignore new file mode 100644 index 000000000..1428faf7e --- /dev/null +++ b/webgoat-release/.gitignore @@ -0,0 +1,4 @@ +target/ +.idea/ +*.iml +dependency-reduced-pom.xml \ No newline at end of file diff --git a/webgoat-release/README.md b/webgoat-release/README.md new file mode 100644 index 000000000..61389f009 --- /dev/null +++ b/webgoat-release/README.md @@ -0,0 +1,18 @@ +# Releasing WebGoat + +## Introduction + +This project will create a release for WebGoat ready for distribution. +This project creates a war with all the lessons included. + +## Details + +The following steps happen during the release: + +* Download the webgoat-container.war from the repository +* Unpack the war +* Download the dist-plugin.zip from the repository +* Unpack the lessons +* Build the war again (webgoat-release-${version}.war) +* Create the executable jar (webgoat-release-${version}-war-exec.jar) + diff --git a/webgoat-release/pom.xml b/webgoat-release/pom.xml new file mode 100644 index 000000000..d84491733 --- /dev/null +++ b/webgoat-release/pom.xml @@ -0,0 +1,124 @@ + + WebGoat + 4.0.0 + org.owasp.webgoat + webgoat-release + war + 6.1.0 + + + + maven2-repository.dev.java.net + Java.net Maven 2 Repository + http://download.java.net/maven/2 + + + + + + 2.2.2 + + local + 1.0 + ${project.build.directory}/war/ + ${war.output.dir}/plugin_lessons + + + + + + + + + org.apache.maven.plugins + maven-dependency-plugin + 2.10 + + + unpack-war + generate-resources + + unpack + + + + + org.owasp.webgoat + webgoat-container + ${project.version} + war + + + ${war.output.dir} + + + + unpack-lessons-zip + generate-resources + + unpack + + + false + + + **/*.jar + org.owasp.webgoat.lesson + dist + ${lessons.version} + zip + plugins + + + ${lessons.output.dir} + + + + + + + org.apache.maven.plugins + maven-war-plugin + 2.4 + + ${war.output.dir} + + + true + + + ${project.name} + ${project.version} + ${build.number} + + + + + + + org.apache.tomcat.maven + tomcat7-maven-plugin + 2.1 + + http://localhost:8080/manager + /WebGoat + exec + + + + tomcat-run + + exec-war-only + + package + + + + + +