X Tutup
Skip to content

Commit e327df2

Browse files
committed
Introduced dependencyManagement in parent pom
1 parent 3a04e0c commit e327df2

File tree

11 files changed

+105
-117
lines changed

11 files changed

+105
-117
lines changed

Ch04_OutputEscaping/pom.xml

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
1+
<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">
32
<modelVersion>4.0.0</modelVersion>
43
<parent>
54
<groupId>de.dominikschadow.javawebsecurity</groupId>
@@ -9,29 +8,18 @@
98
<artifactId>Ch04_OutputEscaping</artifactId>
109
<packaging>war</packaging>
1110
<name>Ch04_OutputEscaping</name>
11+
<url>https://github.com/dschadow/Java-Web-Security</url>
1212
<description>Chapter 4 Output Escaping sample project. Requires a server like Apache Tomcat.
1313

1414
Open the web application in your browser at http://localhost:8080/Ch04_OutputEscaping</description>
15-
<url>https://github.com/dschadow/Java-Web-Security</url>
1615

17-
<properties>
18-
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
19-
</properties>
20-
2116
<dependencies>
2217
<dependency>
2318
<groupId>org.owasp.esapi</groupId>
2419
<artifactId>esapi</artifactId>
25-
<version>2.0.1</version>
26-
<exclusions>
27-
<exclusion>
28-
<groupId>javax.servlet</groupId>
29-
<artifactId>servlet-api</artifactId>
30-
</exclusion>
31-
</exclusions>
3220
</dependency>
3321
</dependencies>
34-
22+
3523
<build>
3624
<finalName>Ch04_OutputEscaping</finalName>
3725
<plugins>
@@ -50,4 +38,4 @@ Open the web application in your browser at http://localhost:8080/Ch04_OutputEsc
5038
</plugin>
5139
</plugins>
5240
</build>
53-
</project>
41+
</project>

Ch04_OutputEscapingSpring/pom.xml

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
1+
<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">
32
<modelVersion>4.0.0</modelVersion>
43
<parent>
54
<groupId>de.dominikschadow.javawebsecurity</groupId>
@@ -9,21 +8,15 @@
98
<artifactId>Ch04_OutputEscapingSpring</artifactId>
109
<packaging>war</packaging>
1110
<name>Ch04_OutputEscapingSpring</name>
11+
<url>https://github.com/dschadow/Java-Web-Security</url>
1212
<description>Chapter 4 Spring based Output Escaping sample project. Requires a server like Apache Tomcat.
1313

14-
Open the web application in your browser at http://localhost:8080/OutputEscapingSpring/index.html</description>
15-
<url>https://github.com/dschadow/JavaWebAppSecurity</url>
16-
17-
<properties>
18-
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
19-
<spring.version>3.2.3.RELEASE</spring.version>
20-
</properties>
14+
Open the web application in your browser at http://localhost:8080/Ch04_OutputEscapingSpring</description>
2115

2216
<dependencies>
2317
<dependency>
2418
<groupId>org.springframework</groupId>
2519
<artifactId>spring-webmvc</artifactId>
26-
<version>${spring.version}</version>
2720
</dependency>
2821
<dependency>
2922
<groupId>javax.servlet</groupId>
@@ -37,9 +30,9 @@ Open the web application in your browser at http://localhost:8080/OutputEscaping
3730
<version>1.2</version>
3831
</dependency>
3932
</dependencies>
40-
33+
4134
<build>
42-
<finalName>OutputEscapingSpring</finalName>
35+
<finalName>Ch04_OutputEscapingSpring</finalName>
4336
<plugins>
4437
<plugin>
4538
<artifactId>maven-compiler-plugin</artifactId>
@@ -56,4 +49,4 @@ Open the web application in your browser at http://localhost:8080/OutputEscaping
5649
</plugin>
5750
</plugins>
5851
</build>
59-
</project>
52+
</project>

Ch04_OutputEscapingSpring/src/main/webapp/WEB-INF/web.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="OutputEscaping" version="3.0">
2+
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="OutputEscapingSpring" version="2.5">
33
<display-name>Output-Escaping Spring Sample Application</display-name>
44
<listener>
55
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
@@ -14,6 +14,6 @@
1414
<url-pattern>*.html</url-pattern>
1515
</servlet-mapping>
1616
<welcome-file-list>
17-
<welcome-file>index.jsp</welcome-file>
17+
<welcome-file>index.html</welcome-file>
1818
</welcome-file-list>
1919
</web-app>

Ch05_AccessReferenceMaps/pom.xml

Lines changed: 13 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
1+
<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">
32
<modelVersion>4.0.0</modelVersion>
43
<parent>
54
<groupId>de.dominikschadow.javawebsecurity</groupId>
@@ -9,13 +8,20 @@
98
<artifactId>Ch05_AccessReferenceMaps</artifactId>
109
<packaging>jar</packaging>
1110
<name>Ch05_AccessReferenceMaps</name>
11+
<url>https://github.com/dschadow/Java-Web-Security</url>
1212
<description>Chapter 5 AccessReferenceMaps sample project. Both sample classes, IntegerAccessReferenceMapSample and RandomAccessReferenceMapSample, contain main() methods to start the sample.</description>
13-
<url>https://github.com/dschadow/JavaWebAppSecurity</url>
14-
15-
<properties>
16-
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
17-
</properties>
1813

14+
<dependencies>
15+
<dependency>
16+
<groupId>org.owasp.esapi</groupId>
17+
<artifactId>esapi</artifactId>
18+
</dependency>
19+
<dependency>
20+
<groupId>org.hsqldb</groupId>
21+
<artifactId>hsqldb</artifactId>
22+
</dependency>
23+
</dependencies>
24+
1925
<build>
2026
<plugins>
2127
<plugin>
@@ -28,16 +34,4 @@
2834
</plugin>
2935
</plugins>
3036
</build>
31-
<dependencies>
32-
<dependency>
33-
<groupId>org.owasp.esapi</groupId>
34-
<artifactId>esapi</artifactId>
35-
<version>2.0.1</version>
36-
</dependency>
37-
<dependency>
38-
<groupId>org.hsqldb</groupId>
39-
<artifactId>hsqldb</artifactId>
40-
<version>2.2.9</version>
41-
</dependency>
42-
</dependencies>
4337
</project>

Ch06_SQL-Injection/pom.xml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
1+
<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">
32
<modelVersion>4.0.0</modelVersion>
43
<parent>
54
<groupId>de.dominikschadow.javawebsecurity</groupId>
@@ -9,31 +8,24 @@
98
<artifactId>Ch06_SQL-Injection</artifactId>
109
<packaging>jar</packaging>
1110
<name>Ch06_SQL-Injection</name>
11+
<url>https://github.com/dschadow/Java-Web-Security</url>
1212
<description>SQL Injection Beispielprojekt zu Kapitel 6.</description>
13-
<url>https://github.com/dschadow/JavaWebAppSecurity</url>
1413

15-
<properties>
16-
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
17-
</properties>
18-
1914
<dependencies>
2015
<dependency>
2116
<groupId>org.hsqldb</groupId>
2217
<artifactId>hsqldb</artifactId>
23-
<version>2.3.0</version>
2418
</dependency>
2519
<dependency>
2620
<groupId>org.owasp.esapi</groupId>
2721
<artifactId>esapi</artifactId>
28-
<version>2.0.1</version>
2922
</dependency>
3023
<dependency>
3124
<groupId>org.hibernate</groupId>
3225
<artifactId>hibernate-core</artifactId>
33-
<version>4.2.3.Final</version>
3426
</dependency>
3527
</dependencies>
36-
28+
3729
<build>
3830
<plugins>
3931
<plugin>

Ch06_XPath-Injection/pom.xml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
1+
<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">
32
<modelVersion>4.0.0</modelVersion>
43
<parent>
54
<groupId>de.dominikschadow.javawebsecurity</groupId>
@@ -9,13 +8,9 @@
98
<artifactId>Ch06_XPath-Injection</artifactId>
109
<packaging>jar</packaging>
1110
<name>Ch06_XPath-Injection</name>
11+
<url>https://github.com/dschadow/Java-Web-Security</url>
1212
<description>XPath Injection Beispielprojekt zu Kapitel 6.</description>
13-
<url>https://github.com/dschadow/JavaWebAppSecurity</url>
14-
15-
<properties>
16-
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
17-
</properties>
18-
13+
1914
<build>
2015
<plugins>
2116
<plugin>

Ch07_XSS/pom.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
<name>Ch07_XSS</name>
1313

1414
<properties>
15-
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1615
<jboss.home>${env.JBOSS_HOME}</jboss.home>
1716
<jboss.domain>default</jboss.domain>
1817
<jboss.bom.version>1.0.2.Final</jboss.bom.version>

Ch07_XSS_Filter/pom.xml

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
1+
<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">
32
<modelVersion>4.0.0</modelVersion>
43
<parent>
54
<groupId>de.dominikschadow.javawebsecurity</groupId>
@@ -9,36 +8,24 @@
98
<artifactId>Ch07_XSS_Filter</artifactId>
109
<packaging>war</packaging>
1110
<name>Ch07_XSS_Filter</name>
12-
<url>https://github.com/dschadow/JavaWebAppSecurity</url>
11+
<url>https://github.com/dschadow/Java-Web-Security</url>
1312
<description>Chapter 7 XSS filter sample project. Requires a server like Apache Tomcat.
1413

15-
Open the web application in your browser at http://localhost:8080/XSSFilter/</description>
14+
Open the web application in your browser at http://localhost:8080/Ch07_XSS_Filter</description>
1615

17-
<properties>
18-
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
19-
</properties>
20-
2116
<dependencies>
2217
<dependency>
2318
<groupId>org.owasp.esapi</groupId>
2419
<artifactId>esapi</artifactId>
25-
<version>2.0.1</version>
2620
</dependency>
2721
<dependency>
2822
<groupId>javax.servlet</groupId>
29-
<artifactId>servlet-api</artifactId>
30-
<version>2.5</version>
31-
<scope>provided</scope>
32-
</dependency>
33-
<dependency>
34-
<groupId>javax.servlet</groupId>
35-
<artifactId>jstl</artifactId>
36-
<version>1.2</version>
23+
<artifactId>javax.servlet-api</artifactId>
3724
</dependency>
3825
</dependencies>
3926

4027
<build>
41-
<finalName>XSSFilter</finalName>
28+
<finalName>Ch07_XSS_Filter</finalName>
4229
<plugins>
4330
<plugin>
4431
<artifactId>maven-compiler-plugin</artifactId>
@@ -55,4 +42,4 @@ Open the web application in your browser at http://localhost:8080/XSSFilter/</de
5542
</plugin>
5643
</plugins>
5744
</build>
58-
</project>
45+
</project>

Ch07_XSS_JSF/pom.xml

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
3-
http://maven.apache.org/maven-v4_0_0.xsd">
1+
<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">
42
<modelVersion>4.0.0</modelVersion>
53
<parent>
64
<groupId>de.dominikschadow.javawebsecurity</groupId>
@@ -10,30 +8,24 @@
108
<artifactId>Ch07_XSS_JSF</artifactId>
119
<packaging>war</packaging>
1210
<name>Ch07_XSS_JSF</name>
13-
<url>https://github.com/dschadow/JavaWebAppSecurity</url>
11+
<url>https://github.com/dschadow/Java-Web-Security</url>
1412
<description>Chapter 7 XSS with JSF sample project. Requires a server like Apache Tomcat.
1513

16-
Open the web application in your browser at http://localhost:8080/XSSJSF/</description>
17-
18-
<properties>
19-
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
20-
</properties>
14+
Open the web application in your browser at http://localhost:8080/Ch07_XSS_JSF</description>
2115

2216
<dependencies>
2317
<dependency>
2418
<groupId>com.sun.faces</groupId>
2519
<artifactId>jsf-api</artifactId>
26-
<version>2.1.22</version>
2720
</dependency>
2821
<dependency>
2922
<groupId>com.sun.faces</groupId>
3023
<artifactId>jsf-impl</artifactId>
31-
<version>2.1.22</version>
3224
</dependency>
3325
</dependencies>
34-
26+
3527
<build>
36-
<finalName>XSSJSF</finalName>
28+
<finalName>Ch07_XSS_JSF</finalName>
3729
<plugins>
3830
<plugin>
3931
<artifactId>maven-compiler-plugin</artifactId>

Ch08_CSRF/pom.xml

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
1+
<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">
32
<modelVersion>4.0.0</modelVersion>
43
<parent>
54
<groupId>de.dominikschadow.javawebsecurity</groupId>
@@ -9,30 +8,24 @@
98
<artifactId>Ch08_CSRF</artifactId>
109
<packaging>war</packaging>
1110
<name>Ch08_CSRF</name>
12-
<url>https://github.com/dschadow/JavaWebAppSecurity</url>
11+
<url>https://github.com/dschadow/Java-Web-Security</url>
1312
<description>Chapter 8 CSRF sample project. Requires a server like Apache Tomcat.
1413

15-
Open the web application in your browser at http://localhost:8080/CSRF/</description>
16-
17-
<properties>
18-
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
19-
</properties>
14+
Open the web application in your browser at http://localhost:8080/Ch08_CSRF</description>
2015

2116
<dependencies>
2217
<dependency>
2318
<groupId>javax.servlet</groupId>
2419
<artifactId>javax.servlet-api</artifactId>
25-
<version>3.0.1</version>
2620
</dependency>
2721
<dependency>
2822
<groupId>org.owasp.esapi</groupId>
2923
<artifactId>esapi</artifactId>
30-
<version>2.0.1</version>
3124
</dependency>
3225
</dependencies>
33-
26+
3427
<build>
35-
<finalName>CSRF</finalName>
28+
<finalName>Ch08_CSRF</finalName>
3629
<plugins>
3730
<plugin>
3831
<artifactId>maven-compiler-plugin</artifactId>
@@ -57,4 +50,4 @@ Open the web application in your browser at http://localhost:8080/CSRF/</descrip
5750
</plugin>
5851
</plugins>
5952
</build>
60-
</project>
53+
</project>

0 commit comments

Comments
 (0)
X Tutup