blob: 0206ebae77a7ea0b8eba138e4d6f10d728591174 [file] [log] [blame]
Stone, Avi (as206k)50324342018-04-12 15:46:31 +03001<?xml version="1.0" encoding="UTF-8"?>
2<project
3 xmlns="http://maven.apache.org/POM/4.0.0"
4 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5 <modelVersion>4.0.0</modelVersion>
6 <groupId>org.onap.sdc.dcae</groupId>
7 <artifactId>dcae_dt_be_main</artifactId>
8 <version>1806.0.1-SNAPSHOT</version>
9 <packaging>pom</packaging>
10
11 <parent>
12 <groupId>org.springframework.boot</groupId>
13 <artifactId>spring-boot-starter-parent</artifactId>
14 <version>1.5.9.RELEASE</version>
15 <relativePath/>
16 <!-- lookup parent from repository -->
17 </parent>
18
19 <dependencies>
20 <dependency>
21 <groupId>org.onap.sdc.dcae.property</groupId>
22 <artifactId>DCAE-DT-PROPERTY</artifactId>
23 <version>${project.version}</version>
24 <exclusions>
25 <exclusion>
26 <groupId>org.slf4j</groupId>
27 <artifactId>slf4j-api</artifactId>
28 </exclusion>
29 <exclusion>
30 <groupId>log4j</groupId>
31 <artifactId>log4j</artifactId>
32 </exclusion>
33 </exclusions>
34 </dependency>
35 </dependencies>
36
37 <properties>
38 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
39 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
40 <java.version>1.8</java.version>
41 </properties>
42 <build>
43 <plugins>
44 <plugin>
45 <groupId>org.jacoco</groupId>
46 <artifactId>jacoco-maven-plugin</artifactId>
47 <version>0.7.9</version>
48 <executions>
49 <execution>
50 <id>default-prepare-agent</id>
51 <goals>
52 <goal>prepare-agent</goal>
53 </goals>
54 </execution>
55 <execution>
56 <id>default-report</id>
57 <goals>
58 <goal>report</goal>
59 </goals>
60 </execution>
61 </executions>
62 </plugin>
63 </plugins>
64 </build>
65 <profiles>
66 <profile>
67 <id>all</id>
68 <activation>
69 <activeByDefault>true</activeByDefault>
70 </activation>
71 <modules>
72 <module>dcaedt_validator</module>
73 <module>dcaedt_catalog</module>
74 <module>dcaedt_be</module>
75 <module>dcaedt_tools</module>
76 </modules>
77 </profile>
78 <profile>
79 <id>docker</id>
80 <properties>
81 <!-- Docker tags -->
82 <maven.build.timestamp.format>yyyyMMdd'T'HHmm</maven.build.timestamp.format>
83 <docker.tag>${project.version}-${maven.build.timestamp}</docker.tag>
84 <docker.latest.tag>${project.version}-latest</docker.latest.tag>
85 <docker.staging.tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</docker.staging.tag>
86 </properties>
87 <activation>
88 <activeByDefault>false</activeByDefault>
89 </activation>
90 <build>
91 <plugins>
92 <plugin>
93 <groupId>org.codehaus.mojo</groupId>
94 <artifactId>build-helper-maven-plugin</artifactId>
95 <version>1.8</version>
96 <executions>
97 <execution>
98 <id>parse-version</id>
99 <goals>
100 <goal>parse-version</goal>
101 </goals>
102 </execution>
103 </executions>
104 </plugin>
105 <plugin>
106 <artifactId>maven-resources-plugin</artifactId>
107 <version>3.0.2</version>
108 <executions>
109 <execution>
110 <id>copy-dcae-be-war</id>
111 <phase>validate</phase>
112 <goals>
113 <goal>copy-resources</goal>
114 </goals>
115 <configuration>
116 <outputDirectory>${project.basedir}/docker/docker_be/target</outputDirectory>
117 <resources>
118 <resource>
119 <directory>${project.basedir}/dcaedt_be/target</directory>
120 <includes>
121 <include>dcae.war</include>
122 </includes>
123 </resource>
124 </resources>
125 </configuration>
126 </execution>
127 <execution>
128 <id>copy-dcae-tools-jar</id>
129 <phase>validate</phase>
130 <goals>
131 <goal>copy-resources</goal>
132 </goals>
133 <configuration>
134 <outputDirectory>${project.basedir}/docker/docker_tools/target</outputDirectory>
135 <resources>
136 <resource>
137 <directory>${project.basedir}/dcaedt_tools/target</directory>
138 <includes>
139 <include>dcaedt_tools-${project.version}-jar-with-dependencies.jar</include>
140 </includes>
141 </resource>
142 </resources>
143 </configuration>
144 </execution>
145 <execution>
146 <id>copy-dcae-config-json</id>
147 <phase>validate</phase>
148 <goals>
149 <goal>copy-resources</goal>
150 </goals>
151 <configuration>
152 <outputDirectory>${project.basedir}/docker/docker_tools/chef-solo/cookbooks/Deploy-DCAE/files/default</outputDirectory>
153 <resources>
154 <resource>
155 <directory>${project.basedir}/dcaedt_tools/src/main/resources/conf</directory>
156 <includes>
157 <include>config.json</include>
158 </includes>
159 </resource>
160 </resources>
161 </configuration>
162 </execution>
163
164 </executions>
165 </plugin>
166 <plugin>
167 <groupId>io.fabric8</groupId>
168 <artifactId>docker-maven-plugin</artifactId>
169 <version>0.23.0</version>
170 <configuration>
171 <verbose>true</verbose>
172 <apiVersion>1.23</apiVersion>
173 <images>
174 <!-- Build backend image -->
175 <image>
176 <name>onap/dcae-be</name>
177 <alias>dcae-be</alias>
178 <build>
179 <cleanup>try</cleanup>
180 <dockerFileDir>${project.basedir}/docker/docker_be</dockerFileDir>
181 <tags>
182 <tag>${docker.tag}</tag>
183 <tag>${docker.latest.tag}</tag>
184 <tag>${docker.staging.tag}</tag>
185 </tags>
186 </build>
187 </image>
188
189 <!-- Build tools image -->
190 <image>
191 <name>onap/dcae-tools</name>
192 <alias>dcae-tools</alias>
193 <build>
194 <cleanup>try</cleanup>
195 <dockerFileDir>${project.basedir}/docker/docker_tools</dockerFileDir>
196 <tags>
197 <tag>${docker.tag}</tag>
198 <tag>${docker.latest.tag}</tag>
199 <tag>${docker.staging.tag}</tag>
200 </tags>
201 </build>
202 </image>
203 </images>
204 </configuration>
205 <executions>
206 <execution>
207 <id>clean-images</id>
208 <phase>pre-clean</phase>
209 <goals>
210 <goal>remove</goal>
211 </goals>
212 <configuration>
213 <removeAll>true</removeAll>
214 <image>onap/dcae-be</image>
215 </configuration>
216 </execution>
217 <execution>
218 <id>generate-images</id>
219 <phase>package</phase>
220 <goals>
221 <goal>build</goal>
222 </goals>
223 </execution>
224 <execution>
225 <id>push-images</id>
226 <phase>deploy</phase>
227 <goals>
228 <goal>push</goal>
229 </goals>
230 <configuration>
231 <image>onap/dcae-be,onap/dcae-tools</image>
232 </configuration>
233 </execution>
234 </executions>
235 </plugin>
236 </plugins>
237 </build>
238 <distributionManagement>
239 <site>
240 <id>nexus</id>
241 <url>dav:${nexus.url}${sitePath}</url>
242 </site>
243 </distributionManagement>
244 </profile>
245 </profiles>
246</project>
247