Skip to content

Commit 924c704

Browse files
committed
Introduced parent POM structure and modules
1 parent 9086574 commit 924c704

9 files changed

Lines changed: 47 additions & 285 deletions

File tree

CSRF-spring-security/pom.xml

Lines changed: 5 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -2,82 +2,55 @@
22
<project xmlns="http://maven.apache.org/POM/4.0.0"
33
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
44
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<parent>
6+
<groupId>de.dominikschadow.javasecurity</groupId>
7+
<artifactId>javasecurity</artifactId>
8+
<version>1.0.0</version>
9+
</parent>
510
<modelVersion>4.0.0</modelVersion>
611
<groupId>de.dominikschadow.javasecurity</groupId>
712
<artifactId>csrf-spring-security</artifactId>
813
<version>1.0.0</version>
914
<packaging>war</packaging>
1015
<name>Cross-Site Request Forgery - Spring Security</name>
11-
<url>https://github.com/dschadow/JavaSecurity</url>
1216
<description>Cross-Site Request Forgery (CSRF) with Spring Security sample project. Requires a server like Apache Tomcat or the Maven Tomcat7
1317
plugin. After launching, open the web application in your browser at http://localhost:8080/csrf-spring-security
1418
</description>
1519

16-
<properties>
17-
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
18-
<spring.security.version>3.2.5.RELEASE</spring.security.version>
19-
<slf4j.version>1.7.8</slf4j.version>
20-
</properties>
21-
2220
<dependencies>
2321
<dependency>
2422
<groupId>org.springframework.security</groupId>
2523
<artifactId>spring-security-web</artifactId>
26-
<version>${spring.security.version}</version>
2724
</dependency>
2825
<dependency>
2926
<groupId>org.springframework.security</groupId>
3027
<artifactId>spring-security-config</artifactId>
31-
<version>${spring.security.version}</version>
3228
</dependency>
33-
3429
<dependency>
3530
<groupId>javax.servlet</groupId>
3631
<artifactId>javax.servlet-api</artifactId>
37-
<version>3.1.0</version>
38-
<scope>provided</scope>
3932
</dependency>
4033
<dependency>
4134
<groupId>org.slf4j</groupId>
4235
<artifactId>slf4j-api</artifactId>
43-
<version>${slf4j.version}</version>
4436
</dependency>
4537
<dependency>
4638
<groupId>org.slf4j</groupId>
4739
<artifactId>slf4j-log4j12</artifactId>
48-
<version>${slf4j.version}</version>
49-
<scope>runtime</scope>
5040
</dependency>
5141
<dependency>
5242
<groupId>log4j</groupId>
5343
<artifactId>log4j</artifactId>
54-
<version>1.2.17</version>
55-
<scope>runtime</scope>
5644
</dependency>
5745
</dependencies>
5846

5947
<build>
6048
<finalName>csrf-spring-security</finalName>
6149
<defaultGoal>tomcat7:run-war</defaultGoal>
6250
<plugins>
63-
<plugin>
64-
<groupId>org.apache.maven.plugins</groupId>
65-
<artifactId>maven-compiler-plugin</artifactId>
66-
<version>3.2</version>
67-
<configuration>
68-
<source>1.8</source>
69-
<target>1.8</target>
70-
</configuration>
71-
</plugin>
7251
<plugin>
7352
<groupId>org.apache.tomcat.maven</groupId>
7453
<artifactId>tomcat7-maven-plugin</artifactId>
75-
<version>2.2</version>
76-
</plugin>
77-
<plugin>
78-
<groupId>org.apache.maven.plugins</groupId>
79-
<artifactId>maven-war-plugin</artifactId>
80-
<version>2.5</version>
8154
</plugin>
8255
</plugins>
8356
</build>

CSRF/pom.xml

Lines changed: 7 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -2,78 +2,53 @@
22
<project xmlns="http://maven.apache.org/POM/4.0.0"
33
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
44
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<parent>
6+
<groupId>de.dominikschadow.javasecurity</groupId>
7+
<artifactId>javasecurity</artifactId>
8+
<version>1.0.0</version>
9+
</parent>
510
<modelVersion>4.0.0</modelVersion>
611
<groupId>de.dominikschadow.javasecurity</groupId>
712
<artifactId>csrf</artifactId>
813
<version>1.0.0</version>
914
<packaging>war</packaging>
1015
<name>Cross-Site Request Forgery</name>
11-
<url>https://github.com/dschadow/JavaSecurity</url>
12-
<description>Cross-Site Request Forgery (CSRF) sample project. Requires a server like Apache Tomcat or the Maven Tomcat7
16+
<description>Cross-Site Request Forgery (CSRF) sample project. Requires a server like Apache Tomcat or the Maven
17+
Tomcat7
1318
plugin. After launching, open the web application in your browser at http://localhost:8080/csrf
1419
</description>
1520

16-
<properties>
17-
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
18-
<slf4j.version>1.7.8</slf4j.version>
19-
</properties>
20-
2121
<dependencies>
2222
<dependency>
2323
<groupId>javax.servlet</groupId>
2424
<artifactId>javax.servlet-api</artifactId>
25-
<version>3.1.0</version>
26-
<scope>provided</scope>
2725
</dependency>
2826
<dependency>
2927
<groupId>org.slf4j</groupId>
3028
<artifactId>slf4j-api</artifactId>
31-
<version>${slf4j.version}</version>
3229
</dependency>
3330
<dependency>
3431
<groupId>org.slf4j</groupId>
3532
<artifactId>slf4j-log4j12</artifactId>
36-
<version>${slf4j.version}</version>
37-
<scope>runtime</scope>
3833
</dependency>
3934
<dependency>
4035
<groupId>log4j</groupId>
4136
<artifactId>log4j</artifactId>
42-
<version>1.2.17</version>
43-
<scope>runtime</scope>
4437
</dependency>
4538
<dependency>
4639
<groupId>org.apache.commons</groupId>
4740
<artifactId>commons-lang3</artifactId>
48-
<version>3.3.2</version>
4941
</dependency>
5042
</dependencies>
5143

5244
<build>
5345
<finalName>csrf</finalName>
5446
<defaultGoal>tomcat7:run-war</defaultGoal>
5547
<plugins>
56-
<plugin>
57-
<groupId>org.apache.maven.plugins</groupId>
58-
<artifactId>maven-compiler-plugin</artifactId>
59-
<version>3.2</version>
60-
<configuration>
61-
<source>1.8</source>
62-
<target>1.8</target>
63-
</configuration>
64-
</plugin>
6548
<plugin>
6649
<groupId>org.apache.tomcat.maven</groupId>
6750
<artifactId>tomcat7-maven-plugin</artifactId>
68-
<version>2.2</version>
69-
</plugin>
70-
<plugin>
71-
<groupId>org.apache.maven.plugins</groupId>
72-
<artifactId>maven-war-plugin</artifactId>
73-
<version>2.5</version>
7451
</plugin>
7552
</plugins>
7653
</build>
77-
78-
7954
</project>

XSS/pom.xml

Lines changed: 5 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -2,72 +2,52 @@
22
<project xmlns="http://maven.apache.org/POM/4.0.0"
33
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
44
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<parent>
6+
<groupId>de.dominikschadow.javasecurity</groupId>
7+
<artifactId>javasecurity</artifactId>
8+
<version>1.0.0</version>
9+
</parent>
510
<modelVersion>4.0.0</modelVersion>
611
<groupId>de.dominikschadow.javasecurity</groupId>
712
<artifactId>xss</artifactId>
813
<version>1.0.0</version>
914
<packaging>war</packaging>
1015
<name>Cross-Site Scripting</name>
11-
<url>https://github.com/dschadow/JavaSecurity</url>
1216
<description>Cross-Site Scripting (XSS) sample project. Requires a server like Apache Tomcat or the Maven Tomcat7
1317
plugin. After launching, open the web application in your browser at http://localhost:8080/xss
1418
</description>
1519

16-
<properties>
17-
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
18-
<slf4j.version>1.7.8</slf4j.version>
19-
</properties>
20-
2120
<dependencies>
2221
<dependency>
2322
<groupId>org.owasp.encoder</groupId>
2423
<artifactId>encoder</artifactId>
25-
<version>1.1.1</version>
2624
</dependency>
2725
<dependency>
2826
<groupId>org.owasp.encoder</groupId>
2927
<artifactId>encoder-jsp</artifactId>
30-
<version>1.1.1</version>
3128
</dependency>
32-
3329
<dependency>
3430
<groupId>javax.servlet</groupId>
3531
<artifactId>javax.servlet-api</artifactId>
36-
<version>3.1.0</version>
37-
<scope>provided</scope>
3832
</dependency>
3933
<dependency>
4034
<groupId>org.slf4j</groupId>
4135
<artifactId>slf4j-api</artifactId>
42-
<version>${slf4j.version}</version>
4336
</dependency>
4437
<dependency>
4538
<groupId>org.slf4j</groupId>
4639
<artifactId>slf4j-log4j12</artifactId>
47-
<version>${slf4j.version}</version>
48-
<scope>runtime</scope>
4940
</dependency>
5041
<dependency>
5142
<groupId>log4j</groupId>
5243
<artifactId>log4j</artifactId>
53-
<version>1.2.17</version>
54-
<scope>runtime</scope>
5544
</dependency>
5645
</dependencies>
5746

5847
<build>
5948
<finalName>xss</finalName>
6049
<defaultGoal>tomcat7:run-war</defaultGoal>
6150
<plugins>
62-
<plugin>
63-
<groupId>org.apache.maven.plugins</groupId>
64-
<artifactId>maven-compiler-plugin</artifactId>
65-
<version>3.2</version>
66-
<configuration>
67-
<source>1.8</source>
68-
<target>1.8</target>
69-
</configuration>
70-
</plugin>
7151
<plugin>
7252
<groupId>org.apache.tomcat.maven</groupId>
7353
<artifactId>tomcat7-maven-plugin</artifactId>
@@ -77,11 +57,6 @@
7757
<contextFile>${project.basedir}/src/main/resources/context.xml</contextFile>
7858
</configuration>
7959
</plugin>
80-
<plugin>
81-
<groupId>org.apache.maven.plugins</groupId>
82-
<artifactId>maven-war-plugin</artifactId>
83-
<version>2.5</version>
84-
</plugin>
8560
</plugins>
8661
</build>
8762
</project>

crypto-java/pom.xml

Lines changed: 5 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -2,63 +2,36 @@
22
<project xmlns="http://maven.apache.org/POM/4.0.0"
33
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
44
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<parent>
6+
<groupId>de.dominikschadow.javasecurity</groupId>
7+
<artifactId>javasecurity</artifactId>
8+
<version>1.0.0</version>
9+
</parent>
510
<modelVersion>4.0.0</modelVersion>
6-
711
<groupId>de.dominikschadow.javasecurity</groupId>
812
<artifactId>crypto-java</artifactId>
913
<version>1.0.0</version>
1014
<packaging>jar</packaging>
1115
<name>Crypto Java</name>
12-
<url>https://github.com/dschadow/JavaSecurity</url>
1316
<description>Java crypto sample project using Java capabilities to encrypt and decrypt data. Each relevant class provides
1417
its own main method to get started.</description>
1518

16-
<properties>
17-
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
18-
<slf4j.version>1.7.8</slf4j.version>
19-
</properties>
20-
2119
<dependencies>
2220
<dependency>
2321
<groupId>com.google.guava</groupId>
2422
<artifactId>guava</artifactId>
25-
<version>18.0</version>
2623
</dependency>
2724
<dependency>
2825
<groupId>org.slf4j</groupId>
2926
<artifactId>slf4j-api</artifactId>
30-
<version>${slf4j.version}</version>
3127
</dependency>
3228
<dependency>
3329
<groupId>org.slf4j</groupId>
3430
<artifactId>slf4j-log4j12</artifactId>
35-
<version>${slf4j.version}</version>
36-
<scope>runtime</scope>
3731
</dependency>
3832
<dependency>
3933
<groupId>log4j</groupId>
4034
<artifactId>log4j</artifactId>
41-
<version>1.2.17</version>
42-
<scope>runtime</scope>
4335
</dependency>
4436
</dependencies>
45-
46-
<build>
47-
<plugins>
48-
<plugin>
49-
<groupId>org.apache.maven.plugins</groupId>
50-
<artifactId>maven-compiler-plugin</artifactId>
51-
<version>3.2</version>
52-
<configuration>
53-
<source>1.8</source>
54-
<target>1.8</target>
55-
</configuration>
56-
</plugin>
57-
<plugin>
58-
<groupId>org.apache.maven.plugins</groupId>
59-
<artifactId>maven-jar-plugin</artifactId>
60-
<version>2.5</version>
61-
</plugin>
62-
</plugins>
63-
</build>
6437
</project>

0 commit comments

Comments
 (0)