blob: a23aa5feb4619b976d127db4e09ca202cc1feca0 [file] [log] [blame]
Stone, Avi (as206k)50324342018-04-12 15:46:31 +03001<?xml version="1.0" encoding="UTF-8"?>
Stone, Avi (as206k)b725d4c2018-05-10 18:22:39 +03002<project
3 xmlns="http://maven.apache.org/POM/4.0.0"
Stone, Avi (as206k)50324342018-04-12 15:46:31 +03004 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>
Stone, Avi (as206k)b725d4c2018-05-10 18:22:39 +03006 <groupId>org.onap.sdc.dcae-d.dt-be-main</groupId>
Stone, Avi (as206k)50324342018-04-12 15:46:31 +03007 <artifactId>dcae_dt_be_main</artifactId>
Stone, Avi (as206k)e1c1f6c2018-05-13 12:47:17 +03008 <version>1.2.0-SNAPSHOT</version>
Stone, Avi (as206k)50324342018-04-12 15:46:31 +03009 <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>
Stone, Avi (as206k)b725d4c2018-05-10 18:22:39 +030021 <groupId>org.onap.sdc.dcae-d.dt-be-property</groupId>
Stone, Avi (as206k)50324342018-04-12 15:46:31 +030022 <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>
Stone, Avi (as206k)3aca52f2018-05-08 11:51:10 +030041 <nexus.proxy>https://nexus.onap.org</nexus.proxy>
Stone, Avi (as206k)b725d4c2018-05-10 18:22:39 +030042 <staging.profile.id>176c31dfe190a</staging.profile.id>
Stone, Avi (as206k)50324342018-04-12 15:46:31 +030043 </properties>
44 <build>
45 <plugins>
46 <plugin>
47 <groupId>org.jacoco</groupId>
48 <artifactId>jacoco-maven-plugin</artifactId>
49 <version>0.7.9</version>
50 <executions>
51 <execution>
52 <id>default-prepare-agent</id>
53 <goals>
54 <goal>prepare-agent</goal>
55 </goals>
56 </execution>
57 <execution>
58 <id>default-report</id>
59 <goals>
60 <goal>report</goal>
61 </goals>
62 </execution>
63 </executions>
64 </plugin>
Stone, Avi (as206k)b725d4c2018-05-10 18:22:39 +030065 <!-- Site Plugin -->
66 <plugin>
67 <groupId>org.apache.maven.plugins</groupId>
68 <artifactId>maven-site-plugin</artifactId>
69 <version>3.4</version>
70 <dependencies>
71 <dependency>
72 <groupId>org.apache.maven.wagon</groupId>
73 <artifactId>wagon-webdav-jackrabbit</artifactId>
74 <version>2.10</version>
75 </dependency>
76 </dependencies>
77 </plugin>
78 <!-- Staging Plugin -->
79 <plugin>
80 <groupId>org.sonatype.plugins</groupId>
81 <artifactId>nexus-staging-maven-plugin</artifactId>
82 <version>1.6.7</version>
83 <extensions>true</extensions>
84 <configuration>
85 <nexusUrl>${nexus.proxy}</nexusUrl>
86 <stagingProfileId>${staging.profile.id}</stagingProfileId>
87 <serverId>ecomp-staging</serverId>
88 </configuration>
89 </plugin>
Stone, Avi (as206k)50324342018-04-12 15:46:31 +030090 </plugins>
91 </build>
92 <profiles>
93 <profile>
94 <id>all</id>
95 <activation>
96 <activeByDefault>true</activeByDefault>
97 </activation>
98 <modules>
99 <module>dcaedt_validator</module>
100 <module>dcaedt_catalog</module>
101 <module>dcaedt_be</module>
102 <module>dcaedt_tools</module>
103 </modules>
104 </profile>
105 <profile>
106 <id>docker</id>
107 <properties>
108 <!-- Docker tags -->
109 <maven.build.timestamp.format>yyyyMMdd'T'HHmm</maven.build.timestamp.format>
110 <docker.tag>${project.version}-${maven.build.timestamp}</docker.tag>
111 <docker.latest.tag>${project.version}-latest</docker.latest.tag>
112 <docker.staging.tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</docker.staging.tag>
113 </properties>
114 <activation>
115 <activeByDefault>false</activeByDefault>
116 </activation>
117 <build>
118 <plugins>
119 <plugin>
120 <groupId>org.codehaus.mojo</groupId>
121 <artifactId>build-helper-maven-plugin</artifactId>
122 <version>1.8</version>
123 <executions>
124 <execution>
125 <id>parse-version</id>
126 <goals>
127 <goal>parse-version</goal>
128 </goals>
129 </execution>
130 </executions>
131 </plugin>
132 <plugin>
133 <artifactId>maven-resources-plugin</artifactId>
134 <version>3.0.2</version>
135 <executions>
136 <execution>
137 <id>copy-dcae-be-war</id>
138 <phase>validate</phase>
139 <goals>
140 <goal>copy-resources</goal>
141 </goals>
142 <configuration>
143 <outputDirectory>${project.basedir}/docker/docker_be/target</outputDirectory>
144 <resources>
145 <resource>
146 <directory>${project.basedir}/dcaedt_be/target</directory>
147 <includes>
148 <include>dcae.war</include>
149 </includes>
150 </resource>
151 </resources>
152 </configuration>
153 </execution>
154 <execution>
155 <id>copy-dcae-tools-jar</id>
156 <phase>validate</phase>
157 <goals>
158 <goal>copy-resources</goal>
159 </goals>
160 <configuration>
161 <outputDirectory>${project.basedir}/docker/docker_tools/target</outputDirectory>
162 <resources>
163 <resource>
164 <directory>${project.basedir}/dcaedt_tools/target</directory>
165 <includes>
166 <include>dcaedt_tools-${project.version}-jar-with-dependencies.jar</include>
167 </includes>
168 </resource>
169 </resources>
170 </configuration>
171 </execution>
172 <execution>
173 <id>copy-dcae-config-json</id>
174 <phase>validate</phase>
175 <goals>
176 <goal>copy-resources</goal>
177 </goals>
178 <configuration>
179 <outputDirectory>${project.basedir}/docker/docker_tools/chef-solo/cookbooks/Deploy-DCAE/files/default</outputDirectory>
180 <resources>
181 <resource>
182 <directory>${project.basedir}/dcaedt_tools/src/main/resources/conf</directory>
183 <includes>
184 <include>config.json</include>
185 </includes>
186 </resource>
187 </resources>
188 </configuration>
189 </execution>
190
191 </executions>
192 </plugin>
193 <plugin>
194 <groupId>io.fabric8</groupId>
195 <artifactId>docker-maven-plugin</artifactId>
196 <version>0.23.0</version>
197 <configuration>
198 <verbose>true</verbose>
199 <apiVersion>1.23</apiVersion>
200 <images>
201 <!-- Build backend image -->
202 <image>
203 <name>onap/dcae-be</name>
204 <alias>dcae-be</alias>
205 <build>
206 <cleanup>try</cleanup>
207 <dockerFileDir>${project.basedir}/docker/docker_be</dockerFileDir>
208 <tags>
209 <tag>${docker.tag}</tag>
210 <tag>${docker.latest.tag}</tag>
211 <tag>${docker.staging.tag}</tag>
212 </tags>
213 </build>
214 </image>
Stone, Avi (as206k)b725d4c2018-05-10 18:22:39 +0300215
Stone, Avi (as206k)50324342018-04-12 15:46:31 +0300216 <!-- Build tools image -->
217 <image>
218 <name>onap/dcae-tools</name>
219 <alias>dcae-tools</alias>
220 <build>
221 <cleanup>try</cleanup>
222 <dockerFileDir>${project.basedir}/docker/docker_tools</dockerFileDir>
223 <tags>
224 <tag>${docker.tag}</tag>
225 <tag>${docker.latest.tag}</tag>
226 <tag>${docker.staging.tag}</tag>
227 </tags>
228 </build>
229 </image>
230 </images>
231 </configuration>
232 <executions>
233 <execution>
234 <id>clean-images</id>
235 <phase>pre-clean</phase>
236 <goals>
237 <goal>remove</goal>
238 </goals>
239 <configuration>
240 <removeAll>true</removeAll>
241 <image>onap/dcae-be</image>
242 </configuration>
243 </execution>
244 <execution>
245 <id>generate-images</id>
246 <phase>package</phase>
247 <goals>
248 <goal>build</goal>
249 </goals>
250 </execution>
251 <execution>
252 <id>push-images</id>
253 <phase>deploy</phase>
254 <goals>
255 <goal>push</goal>
256 </goals>
257 <configuration>
258 <image>onap/dcae-be,onap/dcae-tools</image>
259 </configuration>
260 </execution>
261 </executions>
262 </plugin>
263 </plugins>
264 </build>
Stone, Avi (as206k)3aca52f2018-05-08 11:51:10 +0300265 </profile>
Stone, Avi (as206k)50324342018-04-12 15:46:31 +0300266 </profiles>
Stone, Avi (as206k)3aca52f2018-05-08 11:51:10 +0300267 <repositories>
268 <!-- LF repositories -->
269 <repository>
270 <id>ecomp-releases</id>
271 <name>Release Repository</name>
272 <url>${nexus.proxy}/content/repositories/releases/</url>
273 </repository>
274 <repository>
275 <id>ecomp-snapshots</id>
276 <name>Snapshots Repository</name>
277 <url>${nexus.proxy}/content/repositories/snapshots/</url>
278 </repository>
279 <repository>
280 <id>ecomp-public</id>
281 <name>Public Repository</name>
282 <url>${nexus.proxy}/content/repositories/public/</url>
283 </repository>
284 <!-- LF repositories END-->
285 </repositories>
286
287 <distributionManagement>
288 <repository>
289 <id>ecomp-releases</id>
290 <name>Release Repository</name>
291 <url>${nexus.proxy}/content/repositories/releases/</url>
292 </repository>
293 <snapshotRepository>
294 <id>ecomp-snapshots</id>
295 <name>Snapshot Repository</name>
296 <url>${nexus.proxy}/content/repositories/snapshots/</url>
297 </snapshotRepository>
298 <site>
299 <id>ecomp-site</id>
300 <url>dav:${nexus.proxy}${sitePath}</url>
301 </site>
302 </distributionManagement>
Stone, Avi (as206k)50324342018-04-12 15:46:31 +0300303</project>