|
11 | 11 | <packaging>war</packaging>
|
12 | 12 | <name>bookstore Maven Webapp</name>
|
13 | 13 | <url>http://maven.apache.org</url>
|
| 14 | + |
14 | 15 | <properties>
|
15 | 16 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
16 | 17 | <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
17 | 18 | <maven.compiler.source>1.8</maven.compiler.source>
|
18 | 19 | <maven.compiler.target>1.8</maven.compiler.target>
|
19 | 20 | <failOnMissingWebXml>false</failOnMissingWebXml>
|
20 | 21 | </properties>
|
| 22 | + |
21 | 23 | <dependencies>
|
22 | 24 | <dependency>
|
23 | 25 | <groupId>javax.servlet</groupId>
|
|
79 | 81 | <version>2.0.0-beta.5</version>
|
80 | 82 | </dependency>
|
81 | 83 | </dependencies>
|
| 84 | + |
82 | 85 | <build>
|
83 | 86 | <finalName>bookstore</finalName>
|
84 | 87 | <plugins>
|
|
91 | 94 | <path>/</path>
|
92 | 95 | <contextReloadable>true</contextReloadable>
|
93 | 96 | </configuration>
|
94 |
| - <executions> |
95 |
| - <execution> |
96 |
| - <id>start-tomcat</id> |
97 |
| - <phase>pre-integration-test</phase> |
98 |
| - <goals> |
99 |
| - <goal>run</goal> |
100 |
| - </goals> |
101 |
| - <configuration> |
102 |
| - <fork>true</fork> |
103 |
| - </configuration> |
104 |
| - </execution> |
105 |
| - <execution> |
106 |
| - <id>stop-tomcat</id> |
107 |
| - <phase>post-integration-test</phase> |
108 |
| - <goals> |
109 |
| - <goal>shutdown</goal> |
110 |
| - </goals> |
111 |
| - </execution> |
112 |
| - </executions> |
113 | 97 | </plugin>
|
114 | 98 | <plugin>
|
115 | 99 | <groupId>de.qaware.maven</groupId>
|
|
128 | 112 | </plugin>
|
129 | 113 | </plugins>
|
130 | 114 | </build>
|
| 115 | + |
131 | 116 | <profiles>
|
132 | 117 | <profile>
|
133 | 118 | <id>integration</id>
|
|
155 | 140 | </execution>
|
156 | 141 | </executions>
|
157 | 142 | </plugin>
|
| 143 | + |
| 144 | + <plugin> |
| 145 | + <groupId>org.apache.tomcat.maven</groupId> |
| 146 | + <artifactId>tomcat7-maven-plugin</artifactId> |
| 147 | + <version>2.2</version> |
| 148 | + <configuration> |
| 149 | + <port>8080</port> |
| 150 | + <path>/</path> |
| 151 | + <contextReloadable>true</contextReloadable> |
| 152 | + </configuration> |
| 153 | + <executions> |
| 154 | + <execution> |
| 155 | + <id>start-tomcat</id> |
| 156 | + <phase>pre-integration-test</phase> |
| 157 | + <goals> |
| 158 | + <goal>run</goal> |
| 159 | + </goals> |
| 160 | + <configuration> |
| 161 | + <fork>true</fork> |
| 162 | + </configuration> |
| 163 | + </execution> |
| 164 | + <execution> |
| 165 | + <id>stop-tomcat</id> |
| 166 | + <phase>post-integration-test</phase> |
| 167 | + <goals> |
| 168 | + <goal>shutdown</goal> |
| 169 | + </goals> |
| 170 | + </execution> |
| 171 | + </executions> |
| 172 | + </plugin> |
| 173 | + <plugin> |
| 174 | + <groupId>de.qaware.maven</groupId> |
| 175 | + <artifactId>go-offline-maven-plugin</artifactId> |
| 176 | + <version>1.1.0</version> |
| 177 | + <configuration> |
| 178 | + <dynamicDependencies> |
| 179 | + <DynamicDependency> |
| 180 | + <groupId>org.apache.maven.surefire</groupId> |
| 181 | + <artifactId>surefire-junit4</artifactId> |
| 182 | + <version>2.18.1</version> |
| 183 | + <repositoryType>PLUGIN</repositoryType> |
| 184 | + </DynamicDependency> |
| 185 | + </dynamicDependencies> |
| 186 | + </configuration> |
| 187 | + </plugin> |
158 | 188 | </plugins>
|
159 | 189 | </build>
|
160 | 190 | </profile>
|
|
0 commit comments