summaryrefslogtreecommitdiffstats
path: root/services/activity-spec/activity-spec-web/pom.xml
blob: c4226b973baccc55215a77a7e9ece4bd7cf4fd5c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xmlns="http://maven.apache.org/POM/4.0.0"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <artifactId>activity-spec-web</artifactId>
    <packaging>pom</packaging>

    <parent>
        <groupId>org.onap.sdc.activityspec</groupId>
        <artifactId>activity-spec</artifactId>
        <version>1.3.0-SNAPSHOT</version>
    </parent>

    <modules>
        <module>activity-spec-service</module>
        <module>activity-spec-war</module>
        <module>activity-spec-api-docs</module>
    </modules>

    <profiles>
        <profile>
            <id>docker</id>
            <activation>
                <activeByDefault>false</activeByDefault>
            </activation>
            <build>
                <plugins>
                  <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <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>
                        <configuration>
                            <images>
                                <image>
                                    <name>onap/activity-spec</name>
                                    <build>
                                        <tags>
                                            <tag>${project.version}</tag>
                                        </tags>
                                        <dockerFileDir>${project.basedir}/target/activity-spec-docker-assembly</dockerFileDir>
                                        <dockerFile>Dockerfile</dockerFile>
                                    </build>
                                </image>
                            </images>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>
</project>