Skip to content

Commit 9592618

Browse files
authored
Merge pull request #599 from adamretter/master
Test built package in Integration Test
2 parents 910972b + 6806d35 commit 9592618

File tree

2 files changed

+54
-1
lines changed

2 files changed

+54
-1
lines changed

pom.xml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
<project.build.target>1.8</project.build.target>
5050

5151
<exist.version>5.3.0-SNAPSHOT</exist.version>
52+
<shared-resources.version>0.8.4</shared-resources.version>
5253
<node.version>v10.22.1</node.version>
5354
<npm.version>6.14.6</npm.version>
5455

@@ -250,6 +251,53 @@
250251
</executions>
251252
</plugin>
252253
<!-- 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>
253301
<plugin>
254302
<groupId>io.fabric8</groupId>
255303
<artifactId>docker-maven-plugin</artifactId>
@@ -264,6 +312,11 @@
264312
<ports>
265313
<port>8080:8080</port>
266314
</ports>
315+
<volumes>
316+
<bind>
317+
<volume>${project.build.directory}/autodeploy:/exist/autodeploy</volume>
318+
</bind>
319+
</volumes>
267320
<wait>
268321
<log>Server has started, listening on</log>
269322
<time>120000</time>

xar-assembly.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<category id="apps">Applications</category>
1515
<category id="doc">Documentation</category>
1616
<dependency processor="http://exist-db.org" semver-min="${exist.version}"/>
17-
<dependency package="http://exist-db.org/apps/shared" semver-min="0.8.2"/>
17+
<dependency package="http://exist-db.org/apps/shared" semver-min="${shared-resources.version}"/>
1818
<prepare>pre-install.xql</prepare>
1919
<changelog>
2020
<change xmlns="http://exist-db.org/xquery/repo" version="5.2.0">

0 commit comments

Comments
 (0)