|
59 | 59 | <argLine>-Dfile.encoding=UTF-8</argLine> |
60 | 60 | </configuration> |
61 | 61 | </plugin> |
| 62 | + |
| 63 | + <!-- http://stackoverflow.com/questions/4305935/is-it-possible-to-supply-tomcat6s-context-xml-file-via-the-maven-cargo-plugin#4417945 --> |
| 64 | + <plugin> |
| 65 | + <groupId>org.codehaus.cargo</groupId> |
| 66 | + <artifactId>cargo-maven2-plugin</artifactId> |
| 67 | + <version>1.5.0</version> |
| 68 | + <configuration> |
| 69 | + <container> |
| 70 | + <containerId>tomcat8x</containerId> |
| 71 | + <systemProperties> |
| 72 | + <file.encoding>UTF-8</file.encoding> |
| 73 | + <spring.profiles.active>tomcat,datajpa</spring.profiles.active> |
| 74 | + </systemProperties> |
| 75 | + <dependencies> |
| 76 | + <dependency> |
| 77 | + <groupId>org.postgresql</groupId> |
| 78 | + <artifactId>postgresql</artifactId> |
| 79 | + </dependency> |
| 80 | + </dependencies> |
| 81 | + </container> |
| 82 | + <configuration> |
| 83 | + <configfiles> |
| 84 | + <configfile> |
| 85 | + <file>src/main/resources/tomcat/context.xml</file> |
| 86 | + <todir>conf/Catalina/localhost/</todir> |
| 87 | + <tofile>context.xml.default</tofile> |
| 88 | + </configfile> |
| 89 | + </configfiles> |
| 90 | + </configuration> |
| 91 | + <deployables> |
| 92 | + <deployable> |
| 93 | + <groupId>ru.javawebinar</groupId> |
| 94 | + <artifactId>topjava</artifactId> |
| 95 | + <type>war</type> |
| 96 | + <properties> |
| 97 | + <context>${project.build.finalName}</context> |
| 98 | + </properties> |
| 99 | + </deployable> |
| 100 | + </deployables> |
| 101 | + </configuration> |
| 102 | + </plugin> |
| 103 | + |
| 104 | +<!-- |
| 105 | + <plugin> |
| 106 | + <groupId>org.apache.tomcat.maven</groupId> |
| 107 | + <artifactId>tomcat7-maven-plugin</artifactId> |
| 108 | + <version>2.2</version> |
| 109 | + <configuration> |
| 110 | + <contextFile>src/main/resources/tomcat/context.xml</contextFile> |
| 111 | + <systemProperties> |
| 112 | + <file.encoding>UTF-8</file.encoding> |
| 113 | + <spring.profiles.active>tomcat,datajpa</spring.profiles.active> |
| 114 | + </systemProperties> |
| 115 | + <protocol>org.apache.coyote.http11.Http11NioProtocol</protocol> |
| 116 | + </configuration> |
| 117 | + <dependencies> |
| 118 | + <dependency> |
| 119 | + <groupId>org.postgresql</groupId> |
| 120 | + <artifactId>postgresql</artifactId> |
| 121 | + <version>${postgresql.version}</version> |
| 122 | + </dependency> |
| 123 | + </dependencies> |
| 124 | + </plugin> |
| 125 | +--> |
62 | 126 | </plugins> |
63 | 127 | </build> |
64 | 128 |
|
|
103 | 167 | <version>${spring-data-jpa.version}</version> |
104 | 168 | </dependency> |
105 | 169 |
|
| 170 | + <dependency> |
| 171 | + <groupId>org.springframework</groupId> |
| 172 | + <artifactId>spring-webmvc</artifactId> |
| 173 | + <version>${spring.version}</version> |
| 174 | + <exclusions> |
| 175 | + <exclusion> |
| 176 | + <groupId>commons-logging</groupId> |
| 177 | + <artifactId>commons-logging</artifactId> |
| 178 | + </exclusion> |
| 179 | + </exclusions> |
| 180 | + </dependency> |
| 181 | + |
106 | 182 | <dependency> |
107 | 183 | <groupId>org.hibernate</groupId> |
108 | 184 | <artifactId>hibernate-core</artifactId> |
|
119 | 195 | <artifactId>hibernate-validator</artifactId> |
120 | 196 | <version>${hibernate-validator.version}</version> |
121 | 197 | </dependency> |
| 198 | + <dependency> |
| 199 | + <groupId>org.hibernate</groupId> |
| 200 | + <artifactId>hibernate-ehcache</artifactId> |
| 201 | + <version>${hibernate.version}</version> |
| 202 | + </dependency> |
122 | 203 |
|
123 | 204 | <dependency> |
124 | 205 | <groupId>net.sf.ehcache</groupId> |
|
130 | 211 | <groupId>javax.el</groupId> |
131 | 212 | <artifactId>javax.el-api</artifactId> |
132 | 213 | <version>2.2.5</version> |
| 214 | + <scope>provided</scope> |
133 | 215 | </dependency> |
134 | 216 |
|
135 | 217 | <!--Web--> |
136 | 218 | <dependency> |
137 | | - <groupId>javax.servlet</groupId> |
138 | | - <artifactId>javax.servlet-api</artifactId> |
139 | | - <version>3.1.0</version> |
| 219 | + <groupId>org.apache.tomcat</groupId> |
| 220 | + <artifactId>tomcat-servlet-api</artifactId> |
| 221 | + <version>${tomcat.version}</version> |
140 | 222 | <scope>provided</scope> |
141 | 223 | </dependency> |
142 | 224 |
|
|
0 commit comments