|
46 | 46 | <artifactId>tomcat-dbcp</artifactId> |
47 | 47 | <version>${tomcat-dbcp.version}</version> |
48 | 48 | </dependency> |
49 | | - |
| 49 | + |
| 50 | + <dependency> |
| 51 | + <groupId>com.h2database</groupId> |
| 52 | + <artifactId>h2</artifactId> |
| 53 | + <version>${h2.version}</version> |
| 54 | + </dependency> |
| 55 | + |
50 | 56 | <!-- utils --> |
51 | 57 |
|
52 | 58 | <dependency> |
|
127 | 133 | <version>${maven-surefire-plugin.version}</version> |
128 | 134 | <configuration> |
129 | 135 | <excludes> |
130 | | - <!-- <exclude>**/*ProductionTest.java</exclude> --> |
| 136 | + <exclude>**/*IntegrationTest.java</exclude> |
131 | 137 | </excludes> |
132 | 138 | <systemPropertyVariables> |
133 | 139 | <!-- <provPersistenceTarget>h2</provPersistenceTarget> --> |
134 | 140 | </systemPropertyVariables> |
135 | 141 | </configuration> |
136 | 142 | </plugin> |
137 | | - |
138 | | - <plugin> |
139 | | - <groupId>org.codehaus.cargo</groupId> |
140 | | - <artifactId>cargo-maven2-plugin</artifactId> |
141 | | - <version>${cargo-maven2-plugin.version}</version> |
142 | | - <configuration> |
143 | | - <wait>true</wait> |
144 | | - <container> |
145 | | - <containerId>jetty8x</containerId> |
146 | | - <type>embedded</type> |
147 | | - <systemProperties> |
148 | | - <!-- <provPersistenceTarget>cargo</provPersistenceTarget> --> |
149 | | - </systemProperties> |
150 | | - </container> |
151 | | - <configuration> |
152 | | - <properties> |
153 | | - <cargo.servlet.port>8082</cargo.servlet.port> |
154 | | - </properties> |
155 | | - </configuration> |
156 | | - </configuration> |
157 | | - </plugin> |
158 | | - |
159 | 143 | </plugins> |
160 | 144 |
|
161 | 145 | </build> |
162 | 146 |
|
| 147 | + <profiles> |
| 148 | + <profile> |
| 149 | + <id>integration</id> |
| 150 | + <build> |
| 151 | + <plugins> |
| 152 | + <plugin> |
| 153 | + <groupId>org.apache.maven.plugins</groupId> |
| 154 | + <artifactId>maven-surefire-plugin</artifactId> |
| 155 | + <executions> |
| 156 | + <execution> |
| 157 | + <phase>integration-test</phase> |
| 158 | + <goals> |
| 159 | + <goal>test</goal> |
| 160 | + </goals> |
| 161 | + <configuration> |
| 162 | + <excludes> |
| 163 | + <exclude>**/*LiveTest.java</exclude> |
| 164 | + </excludes> |
| 165 | + <includes> |
| 166 | + <include>**/*IntegrationTest.java</include> |
| 167 | + </includes> |
| 168 | + </configuration> |
| 169 | + </execution> |
| 170 | + </executions> |
| 171 | + <configuration> |
| 172 | + <systemPropertyVariables> |
| 173 | + <test.mime>json</test.mime> |
| 174 | + </systemPropertyVariables> |
| 175 | + </configuration> |
| 176 | + </plugin> |
| 177 | + </plugins> |
| 178 | + </build> |
| 179 | + </profile> |
| 180 | + </profiles> |
| 181 | + |
163 | 182 | <properties> |
164 | 183 | <!-- Spring --> |
165 | 184 | <org.springframework.version>4.2.5.RELEASE</org.springframework.version> |
|
170 | 189 | <hibernate.version>3.6.10.Final</hibernate.version> |
171 | 190 | <mysql-connector-java.version>5.1.38</mysql-connector-java.version> |
172 | 191 | <tomcat-dbcp.version>7.0.47</tomcat-dbcp.version> |
| 192 | + <h2.version>1.4.191</h2.version> |
173 | 193 |
|
174 | 194 | <!-- logging --> |
175 | 195 | <org.slf4j.version>1.7.13</org.slf4j.version> |
|
0 commit comments