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" >
2- <modelVersion >4.0.0</modelVersion >
3- <groupId >org.baeldung</groupId >
4- <artifactId >spring-hibernate3</artifactId >
5- <version >0.1-SNAPSHOT</version >
6-
7- <name >spring-hibernate3</name >
8- <packaging >war</packaging >
9-
10- <dependencies >
11-
12- <!-- Spring -->
13-
14- <dependency >
15- <groupId >org.springframework</groupId >
16- <artifactId >spring-web</artifactId >
17- <version >${org.springframework.version} </version >
18- </dependency >
19- <dependency >
20- <groupId >org.springframework</groupId >
21- <artifactId >spring-orm</artifactId >
22- <version >${org.springframework.version} </version >
23- </dependency >
24- <dependency >
25- <groupId >org.springframework</groupId >
26- <artifactId >spring-context</artifactId >
27- <version >${org.springframework.version} </version >
28- </dependency >
29-
30- <!-- persistence -->
31-
32- <dependency >
33- <groupId >org.hibernate</groupId >
34- <artifactId >hibernate-core</artifactId >
35- <version >${hibernate.version} </version >
36- </dependency >
37- <dependency >
38- <groupId >org.javassist</groupId >
39- <artifactId >javassist</artifactId >
40- <version >3.17.1-GA</version >
41- </dependency >
42- <dependency >
43- <groupId >mysql</groupId >
44- <artifactId >mysql-connector-java</artifactId >
45- <version >${mysql-connector-java.version} </version >
46- <scope >runtime</scope >
47- </dependency >
48-
49- <!-- utils -->
50-
51- <dependency >
52- <groupId >com.google.guava</groupId >
53- <artifactId >guava</artifactId >
54- <version >${guava.version} </version >
55- </dependency >
56-
57- <!-- test scoped -->
58-
59- <dependency >
60- <groupId >org.apache.commons</groupId >
61- <artifactId >commons-lang3</artifactId >
62- <version >${commons-lang3.version} </version >
63- <scope >test</scope >
64- </dependency >
65-
66- <dependency >
67- <groupId >org.springframework</groupId >
68- <artifactId >spring-test</artifactId >
69- <version >${org.springframework.version} </version >
70- <scope >test</scope >
71- </dependency >
72-
73- <dependency >
74- <groupId >junit</groupId >
75- <artifactId >junit-dep</artifactId >
76- <version >${junit.version} </version >
77- <scope >test</scope >
78- </dependency >
79-
80- <dependency >
81- <groupId >org.hamcrest</groupId >
82- <artifactId >hamcrest-core</artifactId >
83- <version >${org.hamcrest.version} </version >
84- <scope >test</scope >
85- </dependency >
86- <dependency >
87- <groupId >org.hamcrest</groupId >
88- <artifactId >hamcrest-library</artifactId >
89- <version >${org.hamcrest.version} </version >
90- <scope >test</scope >
91- </dependency >
92-
93- <dependency >
94- <groupId >org.mockito</groupId >
95- <artifactId >mockito-core</artifactId >
96- <version >${mockito.version} </version >
97- <scope >test</scope >
98- </dependency >
99-
100- </dependencies >
101-
102- <build >
103- <finalName >spring-hibernate3</finalName >
104- <resources >
105- <resource >
106- <directory >src/main/resources</directory >
107- <filtering >true</filtering >
108- </resource >
109- </resources >
110-
111- <plugins >
112-
113- <plugin >
114- <groupId >org.apache.maven.plugins</groupId >
115- <artifactId >maven-surefire-plugin</artifactId >
116- <version >${maven-surefire-plugin.version} </version >
117- <configuration >
118- <excludes >
119- <!-- <exclude>**/*ProductionTest.java</exclude> -->
120- </excludes >
121- <systemPropertyVariables >
122- <!-- <provPersistenceTarget>h2</provPersistenceTarget> -->
123- </systemPropertyVariables >
124- </configuration >
125- </plugin >
126-
127- <plugin >
128- <groupId >org.codehaus.cargo</groupId >
129- <artifactId >cargo-maven2-plugin</artifactId >
130- <version >${cargo-maven2-plugin.version} </version >
131- <configuration >
132- <wait >true</wait >
133- <container >
134- <containerId >jetty8x</containerId >
135- <type >embedded</type >
136- <systemProperties >
137- <!-- <provPersistenceTarget>cargo</provPersistenceTarget> -->
138- </systemProperties >
139- </container >
140- <configuration >
141- <properties >
142- <cargo .servlet.port>8082</cargo .servlet.port>
143- </properties >
144- </configuration >
145- </configuration >
146- </plugin >
147-
148- </plugins >
149-
150- </build >
151-
152- <properties >
153- <!-- Spring -->
154- <org .springframework.version>3.2.3.RELEASE</org .springframework.version>
155- <org .springframework.security.version>3.1.4.RELEASE</org .springframework.security.version>
156-
157- <!-- persistence -->
158- <hibernate .version>3.6.10.Final</hibernate .version>
159- <mysql-connector-java .version>5.1.25</mysql-connector-java .version>
160-
161- <!-- logging -->
162- <org .slf4j.version>1.7.5</org .slf4j.version>
163- <logback .version>1.0.11</logback .version>
164-
165- <!-- various -->
166- <hibernate-validator .version>5.0.1.Final</hibernate-validator .version>
167-
168- <!-- util -->
169- <guava .version>14.0.1</guava .version>
170- <commons-lang3 .version>3.1</commons-lang3 .version>
171-
172- <!-- testing -->
173- <org .hamcrest.version>1.3</org .hamcrest.version>
174- <junit .version>4.11</junit .version>
175- <mockito .version>1.9.5</mockito .version>
176-
177- <httpcore .version>4.2.4</httpcore .version>
178- <httpclient .version>4.2.5</httpclient .version>
179-
180- <rest-assured .version>1.8.0</rest-assured .version>
181- <groovy .version>1.8.9</groovy .version>
182-
183- <!-- Maven plugins -->
184- <cargo-maven2-plugin .version>1.4.2</cargo-maven2-plugin .version>
185- <maven-surefire-plugin .version>2.14.1</maven-surefire-plugin .version>
186- </properties >
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" >
3+ <modelVersion >4.0.0</modelVersion >
4+ <groupId >org.baeldung</groupId >
5+ <artifactId >spring-hibernate3</artifactId >
6+ <version >0.1-SNAPSHOT</version >
7+
8+ <name >spring-hibernate3</name >
9+ <packaging >war</packaging >
10+
11+ <dependencies >
12+
13+ <!-- Spring -->
14+
15+ <dependency >
16+ <groupId >org.springframework</groupId >
17+ <artifactId >spring-web</artifactId >
18+ <version >${org.springframework.version} </version >
19+ </dependency >
20+ <dependency >
21+ <groupId >org.springframework</groupId >
22+ <artifactId >spring-orm</artifactId >
23+ <version >${org.springframework.version} </version >
24+ </dependency >
25+ <dependency >
26+ <groupId >org.springframework</groupId >
27+ <artifactId >spring-context</artifactId >
28+ <version >${org.springframework.version} </version >
29+ </dependency >
30+
31+ <!-- persistence -->
32+
33+ <dependency >
34+ <groupId >org.hibernate</groupId >
35+ <artifactId >hibernate-core</artifactId >
36+ <version >${hibernate.version} </version >
37+ </dependency >
38+ <dependency >
39+ <groupId >org.javassist</groupId >
40+ <artifactId >javassist</artifactId >
41+ <version >${javassist.version} </version >
42+ </dependency >
43+ <dependency >
44+ <groupId >mysql</groupId >
45+ <artifactId >mysql-connector-java</artifactId >
46+ <version >${mysql-connector-java.version} </version >
47+ <scope >runtime</scope >
48+ </dependency >
49+
50+ <dependency >
51+ <groupId >org.apache.tomcat</groupId >
52+ <artifactId >tomcat-dbcp</artifactId >
53+ <version >${tomcat-dbcp.version} </version >
54+ </dependency >
55+
56+ <!-- utils -->
57+
58+ <dependency >
59+ <groupId >com.google.guava</groupId >
60+ <artifactId >guava</artifactId >
61+ <version >${guava.version} </version >
62+ </dependency >
63+
64+ <!-- test scoped -->
65+
66+ <dependency >
67+ <groupId >org.apache.commons</groupId >
68+ <artifactId >commons-lang3</artifactId >
69+ <version >${commons-lang3.version} </version >
70+ <scope >test</scope >
71+ </dependency >
72+
73+ <dependency >
74+ <groupId >org.springframework</groupId >
75+ <artifactId >spring-test</artifactId >
76+ <version >${org.springframework.version} </version >
77+ <scope >test</scope >
78+ </dependency >
79+
80+ <dependency >
81+ <groupId >junit</groupId >
82+ <artifactId >junit-dep</artifactId >
83+ <version >${junit.version} </version >
84+ <scope >test</scope >
85+ </dependency >
86+
87+ <dependency >
88+ <groupId >org.hamcrest</groupId >
89+ <artifactId >hamcrest-core</artifactId >
90+ <version >${org.hamcrest.version} </version >
91+ <scope >test</scope >
92+ </dependency >
93+ <dependency >
94+ <groupId >org.hamcrest</groupId >
95+ <artifactId >hamcrest-library</artifactId >
96+ <version >${org.hamcrest.version} </version >
97+ <scope >test</scope >
98+ </dependency >
99+
100+ <dependency >
101+ <groupId >org.mockito</groupId >
102+ <artifactId >mockito-core</artifactId >
103+ <version >${mockito.version} </version >
104+ <scope >test</scope >
105+ </dependency >
106+
107+ </dependencies >
108+
109+ <build >
110+ <finalName >spring-hibernate3</finalName >
111+ <resources >
112+ <resource >
113+ <directory >src/main/resources</directory >
114+ <filtering >true</filtering >
115+ </resource >
116+ </resources >
117+
118+ <plugins >
119+
120+ <plugin >
121+ <groupId >org.apache.maven.plugins</groupId >
122+ <artifactId >maven-surefire-plugin</artifactId >
123+ <version >${maven-surefire-plugin.version} </version >
124+ <configuration >
125+ <excludes >
126+ <!-- <exclude>**/*ProductionTest.java</exclude> -->
127+ </excludes >
128+ <systemPropertyVariables >
129+ <!-- <provPersistenceTarget>h2</provPersistenceTarget> -->
130+ </systemPropertyVariables >
131+ </configuration >
132+ </plugin >
133+
134+ <plugin >
135+ <groupId >org.codehaus.cargo</groupId >
136+ <artifactId >cargo-maven2-plugin</artifactId >
137+ <version >${cargo-maven2-plugin.version} </version >
138+ <configuration >
139+ <wait >true</wait >
140+ <container >
141+ <containerId >jetty8x</containerId >
142+ <type >embedded</type >
143+ <systemProperties >
144+ <!-- <provPersistenceTarget>cargo</provPersistenceTarget> -->
145+ </systemProperties >
146+ </container >
147+ <configuration >
148+ <properties >
149+ <cargo .servlet.port>8082</cargo .servlet.port>
150+ </properties >
151+ </configuration >
152+ </configuration >
153+ </plugin >
154+
155+ </plugins >
156+
157+ </build >
158+
159+ <properties >
160+ <!-- Spring -->
161+ <org .springframework.version>3.2.3.RELEASE</org .springframework.version>
162+ <org .springframework.security.version>3.1.4.RELEASE</org .springframework.security.version>
163+ <javassist .version>3.18.0-GA</javassist .version>
164+
165+ <!-- persistence -->
166+ <hibernate .version>3.6.10.Final</hibernate .version>
167+ <mysql-connector-java .version>5.1.25</mysql-connector-java .version>
168+ <tomcat-dbcp .version>7.0.41</tomcat-dbcp .version>
169+
170+ <!-- logging -->
171+ <org .slf4j.version>1.7.5</org .slf4j.version>
172+ <logback .version>1.0.11</logback .version>
173+
174+ <!-- various -->
175+ <hibernate-validator .version>5.0.1.Final</hibernate-validator .version>
176+
177+ <!-- util -->
178+ <guava .version>14.0.1</guava .version>
179+ <commons-lang3 .version>3.1</commons-lang3 .version>
180+
181+ <!-- testing -->
182+ <org .hamcrest.version>1.3</org .hamcrest.version>
183+ <junit .version>4.11</junit .version>
184+ <mockito .version>1.9.5</mockito .version>
185+
186+ <httpcore .version>4.2.4</httpcore .version>
187+ <httpclient .version>4.2.5</httpclient .version>
188+
189+ <rest-assured .version>1.8.1</rest-assured .version>
190+ <groovy .version>1.8.9</groovy .version>
191+
192+ <!-- Maven plugins -->
193+ <cargo-maven2-plugin .version>1.4.2</cargo-maven2-plugin .version>
194+ <maven-surefire-plugin .version>2.15</maven-surefire-plugin .version>
195+ </properties >
187196
188197</project >
0 commit comments