Skip to content

Commit a6c1188

Browse files
committed
Added default dependencies
1 parent 5ad4f7f commit a6c1188

File tree

1 file changed

+47
-121
lines changed

1 file changed

+47
-121
lines changed

Ch07_XSS/pom.xml

Lines changed: 47 additions & 121 deletions
Original file line numberDiff line numberDiff line change
@@ -1,127 +1,53 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
33
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
4-
<modelVersion>4.0.0</modelVersion>
5-
<parent>
6-
<groupId>de.dominikschadow.javawebsecurity</groupId>
7-
<artifactId>javawebsecurity</artifactId>
8-
<version>1.0.0</version>
9-
</parent>
10-
<artifactId>Ch07_XSS</artifactId>
11-
<packaging>war</packaging>
12-
<name>Ch07_XSS</name>
4+
<modelVersion>4.0.0</modelVersion>
5+
<parent>
6+
<groupId>de.dominikschadow.javawebsecurity</groupId>
7+
<artifactId>javawebsecurity</artifactId>
8+
<version>1.0.0</version>
9+
</parent>
10+
<artifactId>Ch07_XSS</artifactId>
11+
<packaging>war</packaging>
12+
<name>Ch07_XSS</name>
13+
<url>https://github.com/dschadow/Java-Web-Security</url>
14+
<description>Chapter 7 XSS sample project. Requires a server like Apache Tomcat or the Maven Tomcat7 plugin.
15+
After starting, open the web application in your browser at http://localhost:8080/Ch07_XSS</description>
1316

14-
<properties>
15-
<jboss.home>${env.JBOSS_HOME}</jboss.home>
16-
<jboss.domain>default</jboss.domain>
17-
<jboss.bom.version>1.0.2.Final</jboss.bom.version>
18-
</properties>
19-
20-
<dependencyManagement>
21-
<dependencies>
22-
<dependency>
23-
<groupId>org.jboss.bom</groupId>
24-
<artifactId>jboss-javaee-6.0-with-tools</artifactId>
25-
<version>${jboss.bom.version}</version>
26-
<type>pom</type>
27-
<scope>import</scope>
28-
</dependency>
17+
<dependencies>
18+
<dependency>
19+
<groupId>com.sun.faces</groupId>
20+
<artifactId>jsf-api</artifactId>
21+
</dependency>
22+
<dependency>
23+
<groupId>com.sun.faces</groupId>
24+
<artifactId>jsf-impl</artifactId>
25+
</dependency>
26+
<dependency>
27+
<groupId>org.hibernate</groupId>
28+
<artifactId>hibernate-core</artifactId>
29+
</dependency>
30+
<dependency>
31+
<groupId>org.hsqldb</groupId>
32+
<artifactId>hsqldb</artifactId>
33+
</dependency>
34+
<dependency>
35+
<groupId>log4j</groupId>
36+
<artifactId>log4j</artifactId>
37+
</dependency>
38+
</dependencies>
2939

30-
<dependency>
31-
<groupId>org.jboss.bom</groupId>
32-
<artifactId>jboss-javaee-6.0-with-hibernate</artifactId>
33-
<version>${jboss.bom.version}</version>
34-
<type>pom</type>
35-
<scope>import</scope>
36-
</dependency>
37-
38-
<dependency>
39-
<groupId>org.hibernate</groupId>
40-
<artifactId>hibernate-core</artifactId>
41-
<version>4.2.3.Final</version>
42-
<scope>provided</scope>
43-
</dependency>
44-
45-
</dependencies>
46-
</dependencyManagement>
47-
48-
<dependencies>
49-
<dependency>
50-
<groupId>org.jboss.spec.javax.ejb</groupId>
51-
<artifactId>jboss-ejb-api_3.1_spec</artifactId>
52-
<scope>provided</scope>
53-
</dependency>
54-
<dependency>
55-
<groupId>org.jboss.spec.javax.ws.rs</groupId>
56-
<artifactId>jboss-jaxrs-api_1.1_spec</artifactId>
57-
<scope>provided</scope>
58-
</dependency>
59-
<dependency>
60-
<groupId>javax.enterprise</groupId>
61-
<artifactId>cdi-api</artifactId>
62-
<scope>provided</scope>
63-
</dependency>
64-
<dependency>
65-
<groupId>org.hibernate.javax.persistence</groupId>
66-
<artifactId>hibernate-jpa-2.0-api</artifactId>
67-
<scope>provided</scope>
68-
</dependency>
69-
<dependency>
70-
<groupId>org.hibernate</groupId>
71-
<artifactId>hibernate-jpamodelgen</artifactId>
72-
<scope>provided</scope>
73-
</dependency>
74-
<dependency>
75-
<groupId>org.jboss.spec.javax.faces</groupId>
76-
<artifactId>jboss-jsf-api_2.1_spec</artifactId>
77-
<scope>provided</scope>
78-
</dependency>
79-
</dependencies>
80-
81-
<repositories>
82-
<!-- JBoss Repository used for hibernate-validator 4.0.0.GA and Java-ee
83-
spec -->
84-
<repository>
85-
<id>repository.jboss.org</id>
86-
<name>JBoss Repository</name>
87-
<url>http://repository.jboss.org/nexus/content/groups/public-jboss/</url>
88-
</repository>
89-
</repositories>
90-
91-
<build>
92-
<finalName>Ch07_XSS</finalName>
93-
<plugins>
94-
<plugin>
95-
<groupId>org.apache.maven.plugins</groupId>
96-
<artifactId>maven-eclipse-plugin</artifactId>
97-
<version>2.8</version>
98-
<configuration>
99-
<wtpversion>2.0</wtpversion>
100-
<downloadSources>true</downloadSources>
101-
<downloadJavadocs>true</downloadJavadocs>
102-
</configuration>
103-
</plugin>
104-
<plugin>
105-
<groupId>org.apache.maven.plugins</groupId>
106-
<artifactId>maven-compiler-plugin</artifactId>
107-
<version>3.1</version>
108-
<configuration>
109-
<source>1.7</source>
110-
<target>1.7</target>
111-
</configuration>
112-
</plugin>
113-
<plugin>
114-
<groupId>org.codehaus.mojo</groupId>
115-
<artifactId>jboss-maven-plugin</artifactId>
116-
<version>1.4.1</version>
117-
<configuration>
118-
<jbossHome>${jboss.home}</jbossHome>
119-
<serverName>${jboss.domain}</serverName>
120-
<fileNames>
121-
<fileName>${project.build.directory}/${project.build.finalName}.war</fileName>
122-
</fileNames>
123-
</configuration>
124-
</plugin>
125-
</plugins>
126-
</build>
40+
<build>
41+
<finalName>Ch07_XSS</finalName>
42+
<defaultGoal>tomcat7:run-war</defaultGoal>
43+
<plugins>
44+
<plugin>
45+
<artifactId>maven-compiler-plugin</artifactId>
46+
</plugin>
47+
<plugin>
48+
<groupId>org.apache.tomcat.maven</groupId>
49+
<artifactId>tomcat7-maven-plugin</artifactId>
50+
</plugin>
51+
</plugins>
52+
</build>
12753
</project>

0 commit comments

Comments
 (0)