|
3 | 3 | <groupId>org.springframework.samples</groupId> |
4 | 4 | <artifactId>spring-katharsis</artifactId> |
5 | 5 | <version>0.0.1-SNAPSHOT</version> |
| 6 | + <packaging>war</packaging> |
6 | 7 |
|
7 | 8 | <parent> |
8 | 9 | <groupId>org.springframework.boot</groupId> |
9 | 10 | <artifactId>spring-boot-starter-parent</artifactId> |
10 | | - <version>1.2.6.RELEASE</version> |
| 11 | + <version>1.3.3.RELEASE</version> |
11 | 12 | </parent> |
12 | 13 |
|
13 | 14 | <dependencies> |
|
62 | 63 | <java.version>1.8</java.version> |
63 | 64 | <katharsis.version>1.0.0</katharsis.version> |
64 | 65 | <restassured.version>2.4.0</restassured.version> |
| 66 | + <cargo-maven2-plugin.version>1.6.0</cargo-maven2-plugin.version> |
65 | 67 | </properties> |
66 | 68 |
|
67 | 69 |
|
|
71 | 73 | <groupId>org.springframework.boot</groupId> |
72 | 74 | <artifactId>spring-boot-maven-plugin</artifactId> |
73 | 75 | </plugin> |
| 76 | + |
| 77 | + |
| 78 | + <plugin> |
| 79 | + <groupId>org.apache.maven.plugins</groupId> |
| 80 | + <artifactId>maven-surefire-plugin</artifactId> |
| 81 | + <configuration> |
| 82 | + <excludes> |
| 83 | + <exclude>**/*LiveTest.java</exclude> |
| 84 | + </excludes> |
| 85 | + <systemPropertyVariables> |
| 86 | + <!-- <provPersistenceTarget>h2</provPersistenceTarget> --> |
| 87 | + </systemPropertyVariables> |
| 88 | + </configuration> |
| 89 | + </plugin> |
| 90 | + |
| 91 | + <plugin> |
| 92 | + <groupId>org.codehaus.cargo</groupId> |
| 93 | + <artifactId>cargo-maven2-plugin</artifactId> |
| 94 | + <version>${cargo-maven2-plugin.version}</version> |
| 95 | + <configuration> |
| 96 | + <wait>true</wait> |
| 97 | + <container> |
| 98 | + <containerId>tomcat8x</containerId> |
| 99 | + <type>embedded</type> |
| 100 | + <systemProperties> |
| 101 | + <!-- <provPersistenceTarget>cargo</provPersistenceTarget> --> |
| 102 | + </systemProperties> |
| 103 | + </container> |
| 104 | + <configuration> |
| 105 | + <properties> |
| 106 | + <cargo.servlet.port>8082</cargo.servlet.port> |
| 107 | + </properties> |
| 108 | + </configuration> |
| 109 | + </configuration> |
| 110 | + </plugin> |
| 111 | + |
74 | 112 | </plugins> |
| 113 | + |
75 | 114 | </build> |
| 115 | + |
| 116 | + <profiles> |
| 117 | + <profile> |
| 118 | + <id>live</id> |
| 119 | + <build> |
| 120 | + <plugins> |
| 121 | + <plugin> |
| 122 | + <groupId>org.codehaus.cargo</groupId> |
| 123 | + <artifactId>cargo-maven2-plugin</artifactId> |
| 124 | + <executions> |
| 125 | + <execution> |
| 126 | + <id>start-server</id> |
| 127 | + <phase>pre-integration-test</phase> |
| 128 | + <goals> |
| 129 | + <goal>start</goal> |
| 130 | + </goals> |
| 131 | + </execution> |
| 132 | + <execution> |
| 133 | + <id>stop-server</id> |
| 134 | + <phase>post-integration-test</phase> |
| 135 | + <goals> |
| 136 | + <goal>stop</goal> |
| 137 | + </goals> |
| 138 | + </execution> |
| 139 | + </executions> |
| 140 | + </plugin> |
| 141 | + |
| 142 | + <plugin> |
| 143 | + <groupId>org.apache.maven.plugins</groupId> |
| 144 | + <artifactId>maven-surefire-plugin</artifactId> |
| 145 | + <executions> |
| 146 | + <execution> |
| 147 | + <phase>integration-test</phase> |
| 148 | + <goals> |
| 149 | + <goal>test</goal> |
| 150 | + </goals> |
| 151 | + <configuration> |
| 152 | + <excludes> |
| 153 | + <exclude>none</exclude> |
| 154 | + </excludes> |
| 155 | + <includes> |
| 156 | + <include>**/*LiveTest.java</include> |
| 157 | + </includes> |
| 158 | + <systemPropertyVariables> |
| 159 | + <webTarget>cargo</webTarget> |
| 160 | + </systemPropertyVariables> |
| 161 | + </configuration> |
| 162 | + </execution> |
| 163 | + </executions> |
| 164 | + </plugin> |
| 165 | + |
| 166 | + </plugins> |
| 167 | + </build> |
| 168 | + </profile> |
| 169 | + </profiles> |
| 170 | + |
76 | 171 |
|
77 | 172 | </project> |
0 commit comments