aboutsummaryrefslogtreecommitdiffstats
path: root/services/activity-spec/activity-spec-web/pom.xml
diff options
context:
space:
mode:
Diffstat (limited to 'services/activity-spec/activity-spec-web/pom.xml')
-rw-r--r--services/activity-spec/activity-spec-web/pom.xml69
1 files changed, 65 insertions, 4 deletions
diff --git a/services/activity-spec/activity-spec-web/pom.xml b/services/activity-spec/activity-spec-web/pom.xml
index a1df9771fd..d565010c75 100644
--- a/services/activity-spec/activity-spec-web/pom.xml
+++ b/services/activity-spec/activity-spec-web/pom.xml
@@ -26,6 +26,70 @@
</activation>
<build>
<plugins>
+ <plugin>
+ <artifactId>maven-resources-plugin</artifactId>
+ <version>3.0.2</version>
+ <executions>
+ <execution>
+ <id>copy-activity-spec-docker-assembly</id>
+ <phase>verify</phase>
+ <goals>
+ <goal>copy-resources</goal>
+ </goals>
+ <configuration>
+ <outputDirectory>target/activity-spec-docker-assembly</outputDirectory>
+ <resources>
+ <resource>
+ <directory>${project.basedir}/activity-spec-docker-assembly</directory>
+ </resource>
+ </resources>
+ </configuration>
+ </execution>
+ <execution>
+ <id>copy-static-configuration-files</id>
+ <phase>verify</phase>
+ <goals>
+ <goal>copy-resources</goal>
+ </goals>
+ <configuration>
+ <outputDirectory>target/activity-spec-docker-assembly</outputDirectory>
+ <resources>
+ <resource>
+ <directory>${project.basedir}/activity-spec-service/src/main/resources/config</directory>
+ <includes>
+ <include>logback.xml</include>
+ </includes>
+ </resource>
+ </resources>
+ </configuration>
+ </execution>
+ <execution>
+ <id>copy-resources</id>
+ <phase>verify</phase>
+ <goals>
+ <goal>copy-resources</goal>
+ </goals>
+ <configuration>
+ <outputDirectory>target/activity-spec-docker-assembly</outputDirectory>
+ <resources>
+ <resource>
+ <directory>${project.basedir}/activity-spec-war/target</directory>
+ <includes>
+ <include>activity-spec-war-${project.version}.war</include>
+ </includes>
+ </resource>
+ <resource>
+ <directory>${project.basedir}/activity-spec-api-docs/target
+ </directory>
+ <includes>
+ <include>activity-spec-api-docs-${project.version}.war</include>
+ </includes>
+ </resource>
+ </resources>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
<plugin>
<groupId>io.fabric8</groupId>
<artifactId>docker-maven-plugin</artifactId>
@@ -37,11 +101,8 @@
<tags>
<tag>${project.version}</tag>
</tags>
- <dockerFileDir>${project.basedir}</dockerFileDir>
+ <dockerFileDir>${project.basedir}/target/activity-spec-docker-assembly</dockerFileDir>
<dockerFile>Dockerfile</dockerFile>
- <args>
- <ARTIFACT_VERSION>${project.version}</ARTIFACT_VERSION>
- </args>
</build>
</image>
</images>