|
49 | 49 | <project.build.target>1.8</project.build.target>
|
50 | 50 |
|
51 | 51 | <exist.version>5.3.0-SNAPSHOT</exist.version>
|
| 52 | + <shared-resources.version>0.8.2</shared-resources.version> |
52 | 53 | <node.version>v10.22.1</node.version>
|
53 | 54 | <npm.version>6.14.6</npm.version>
|
54 | 55 |
|
|
250 | 251 | </executions>
|
251 | 252 | </plugin>
|
252 | 253 | <!-- start up Server in Docker for integration-test -->
|
| 254 | + <plugin> |
| 255 | + <groupId>com.github.monkeywie</groupId> |
| 256 | + <artifactId>copy-rename-maven-plugin</artifactId> |
| 257 | + <version>1.0</version> |
| 258 | + <executions> |
| 259 | + <execution> |
| 260 | + <id>prepare-autodeploy</id> |
| 261 | + <phase>pre-integration-test</phase> |
| 262 | + <goals> |
| 263 | + <goal>copy</goal> |
| 264 | + </goals> |
| 265 | + <configuration> |
| 266 | + <fileSets> |
| 267 | + <fileSet> |
| 268 | + <sourceFile>${project.build.directory}/${project.artifactId}-${project.version}.xar</sourceFile> |
| 269 | + <destinationFile>${project.build.directory}/autodeploy/${project.artifactId}-${project.version}.xar</destinationFile> |
| 270 | + </fileSet> |
| 271 | + </fileSets> |
| 272 | + </configuration> |
| 273 | + </execution> |
| 274 | + </executions> |
| 275 | + </plugin> |
| 276 | + <plugin> |
| 277 | + <groupId>org.exist-db.maven.plugins</groupId> |
| 278 | + <artifactId>public-xar-repo-plugin</artifactId> |
| 279 | + <version>1.2.0</version> |
| 280 | + <executions> |
| 281 | + <execution> |
| 282 | + <id>prepare-autodeploy-deps</id> |
| 283 | + <phase>pre-integration-test</phase> |
| 284 | + <goals> |
| 285 | + <goal>resolve</goal> |
| 286 | + </goals> |
| 287 | + <configuration> |
| 288 | + <repoUri>http://exist-db.org/exist/apps/public-repo</repoUri> |
| 289 | + <outputDirectory>${project.build.directory}/autodeploy/</outputDirectory> |
| 290 | + <existDbVersion>${exist.version}</existDbVersion> |
| 291 | + <packages> |
| 292 | + <package> |
| 293 | + <abbrev>shared</abbrev> |
| 294 | + <version>${shared-resources.version}</version> |
| 295 | + </package> |
| 296 | + </packages> |
| 297 | + </configuration> |
| 298 | + </execution> |
| 299 | + </executions> |
| 300 | + </plugin> |
253 | 301 | <plugin>
|
254 | 302 | <groupId>io.fabric8</groupId>
|
255 | 303 | <artifactId>docker-maven-plugin</artifactId>
|
|
264 | 312 | <ports>
|
265 | 313 | <port>8080:8080</port>
|
266 | 314 | </ports>
|
| 315 | + <volumes> |
| 316 | + <bind> |
| 317 | + <volume>${project.build.directory}/autodeploy:/exist/autodeploy</volume> |
| 318 | + </bind> |
| 319 | + </volumes> |
267 | 320 | <wait>
|
268 | 321 | <log>Server has started, listening on</log>
|
269 | 322 | <time>120000</time>
|
|
0 commit comments