1 <?xml version="1.0" encoding="UTF-8"?>
3 ~ Copyright © 2017-2018 AT&T Intellectual Property.
5 ~ Modifications Copyright © 2018 IBM.
6 ~ Modifications Copyright © 2019 Bell Canada.
8 ~ Licensed under the Apache License, Version 2.0 (the "License");
9 ~ you may not use this file except in compliance with the License.
10 ~ You may obtain a copy of the License at
12 ~ http://www.apache.org/licenses/LICENSE-2.0
14 ~ Unless required by applicable law or agreed to in writing, software
15 ~ distributed under the License is distributed on an "AS IS" BASIS,
16 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 ~ See the License for the specific language governing permissions and
18 ~ limitations under the License.
21 <project xmlns="http://maven.apache.org/POM/4.0.0" 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">
22 <modelVersion>4.0.0</modelVersion>
25 <groupId>org.onap.ccsdk.cds.blueprintsprocessor</groupId>
26 <artifactId>blueprintsprocessor-parent</artifactId>
27 <version>1.5.0-SNAPSHOT</version>
28 <relativePath>../parent</relativePath>
31 <artifactId>blueprintsprocessor-application</artifactId>
32 <packaging>jar</packaging>
34 <name>MS Blueprints Processor Application</name>
37 <serviceArtifactName>blueprintsprocessor</serviceArtifactName>
38 <image.name>onap/ccsdk-blueprintsprocessor</image.name>
43 <groupId>org.onap.ccsdk.cds.blueprintsprocessor.modules</groupId>
44 <artifactId>blueprint-core</artifactId>
47 <groupId>org.springframework.boot</groupId>
48 <artifactId>spring-boot-starter-logging</artifactId>
53 <groupId>org.springframework.boot</groupId>
54 <artifactId>spring-boot-starter-security</artifactId>
57 <groupId>org.springframework.boot</groupId>
58 <artifactId>spring-boot-starter-logging</artifactId>
63 <!-- Error Catalog Services -->
65 <groupId>org.onap.ccsdk.cds.error.catalog</groupId>
66 <artifactId>error-catalog-services</artifactId>
69 <!-- North Bound - Modules -->
71 <groupId>org.onap.ccsdk.cds.blueprintsprocessor.modules</groupId>
72 <artifactId>designer-api</artifactId>
75 <groupId>org.onap.ccsdk.cds.blueprintsprocessor.modules</groupId>
76 <artifactId>resource-api</artifactId>
79 <groupId>org.onap.ccsdk.cds.blueprintsprocessor.modules</groupId>
80 <artifactId>selfservice-api</artifactId>
83 <groupId>org.onap.ccsdk.cds.blueprintsprocessor.modules</groupId>
84 <artifactId>configs-api</artifactId>
87 <groupId>org.onap.ccsdk.cds.blueprintsprocessor.modules</groupId>
88 <artifactId>health-api</artifactId>
91 <groupId>org.onap.ccsdk.cds.blueprintsprocessor.modules</groupId>
92 <artifactId>health-api-common</artifactId>
97 <groupId>org.onap.ccsdk.cds.blueprintsprocessor.functions</groupId>
98 <artifactId>python-executor</artifactId>
101 <groupId>org.onap.ccsdk.cds.blueprintsprocessor.functions</groupId>
102 <artifactId>restful-executor</artifactId>
105 <groupId>org.onap.ccsdk.cds.blueprintsprocessor.functions</groupId>
106 <artifactId>ansible-awx-executor</artifactId>
109 <groupId>org.onap.ccsdk.cds.blueprintsprocessor.functions</groupId>
110 <artifactId>netconf-executor</artifactId>
113 <groupId>org.onap.ccsdk.cds.blueprintsprocessor.functions</groupId>
114 <artifactId>restconf-executor</artifactId>
117 <groupId>org.onap.ccsdk.cds.blueprintsprocessor.functions</groupId>
118 <artifactId>cli-executor</artifactId>
121 <groupId>org.onap.ccsdk.cds.blueprintsprocessor.functions</groupId>
122 <artifactId>config-snapshots</artifactId>
125 <groupId>org.onap.ccsdk.cds.blueprintsprocessor.functions</groupId>
126 <artifactId>k8s-connection-plugin</artifactId>
129 <!-- Test Dependencies -->
131 <groupId>com.h2database</groupId>
132 <artifactId>h2</artifactId>
135 <groupId>org.powermock</groupId>
136 <artifactId>powermock-api-mockito2</artifactId>
140 <groupId>org.springframework.boot</groupId>
141 <artifactId>spring-boot-starter-test</artifactId>
145 <groupId>org.jetbrains.kotlin</groupId>
146 <artifactId>kotlin-test-junit</artifactId>
150 <groupId>io.projectreactor</groupId>
151 <artifactId>reactor-test</artifactId>
157 <groupId>org.skyscreamer</groupId>
158 <artifactId>jsonassert</artifactId>
161 <groupId>org.yaml</groupId>
162 <artifactId>snakeyaml</artifactId>
165 <groupId>com.nhaarman.mockitokotlin2</groupId>
166 <artifactId>mockito-kotlin</artifactId>
167 <!-- It's unusual but 'compile' here is the right scope since mockito is being used at runtime by
168 the UatServices (/api/v1/uat/spy and /api/v1/uat/verify endpoints) -->
169 <scope>compile</scope>
172 <groupId>com.schibsted.spt.data</groupId>
173 <artifactId>jslt</artifactId>
176 <groupId>org.apache.httpcomponents</groupId>
177 <artifactId>httpclient</artifactId>
178 <version>${apache.httpcomponents.client.version}</version>
181 <groupId>org.apache.httpcomponents</groupId>
182 <artifactId>httpmime</artifactId>
183 <version>${apache.httpcomponents.client.version}</version>
186 <groupId>com.github.tomakehurst</groupId>
187 <artifactId>wiremock-jre8</artifactId>
188 <version>2.25.0</version>
193 <groupId>ch.qos.logback</groupId>
194 <artifactId>logback-classic</artifactId>
201 <!--config and resource files -->
202 <directory>${basedir}/etc</directory>
203 <targetPath>${basedir}/target/etc</targetPath>
204 <filtering>true</filtering>
206 <include>**/*</include>
210 <!--config and resource files -->
211 <directory>${basedir}/src/main/resources</directory>
212 <targetPath>${basedir}/target/src/main/resources</targetPath>
213 <filtering>true</filtering>
215 <include>**/*</include>
219 <directory>src/main/resources</directory>
221 <include>**/*</include>
223 <filtering>true</filtering>
228 <groupId>org.apache.maven.plugins</groupId>
229 <artifactId>maven-surefire-plugin</artifactId>
230 <version>${maven-surefire-plugin.version}</version>
232 <!-- Sets the VM argument line used when unit tests are run. -->
233 <argLine>-Xmx1024m -XX:MaxPermSize=256m ${surefireArgLine}</argLine>
234 <!-- Excludes integration tests when unit tests are run. -->
236 <exclude>**/IT*.java</exclude>
238 <reuseForks>false</reuseForks>
239 <forkCount>1</forkCount>
243 <artifactId>maven-resources-plugin</artifactId>
244 <version>2.6</version>
247 <id>copy-dockerfile</id>
249 <goal>copy-resources</goal>
250 </goals><!-- here the phase you need -->
251 <phase>validate</phase>
253 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
256 <directory>src/main/docker</directory>
260 <filtering>true</filtering>
268 <groupId>org.apache.maven.plugins</groupId>
269 <artifactId>maven-antrun-plugin</artifactId>
273 <phase>package</phase>
276 <fixcrlf srcdir="${basedir}" eol="unix" includes="**/*.sh, **/*.source"/>
285 <plugin><!--build the final artifact for docker deployment -->
286 <artifactId>maven-assembly-plugin</artifactId>
287 <version>3.1.0</version>
289 <!-- <skipAssembly>${skip.assembly}</skipAssembly> -->
290 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
292 <descriptor>src/main/docker/distribution.xml</descriptor>
294 <tarLongFileMode>posix</tarLongFileMode>
298 <id>${assembly.id}</id>
299 <phase>package</phase>
307 <groupId>org.codehaus.groovy.maven</groupId>
308 <artifactId>gmaven-plugin</artifactId>
309 <version>1.0</version>
312 <phase>validate</phase>
317 <source>${basedir}/../../../TagVersion.groovy</source>
323 <groupId>pl.project13.maven</groupId>
324 <artifactId>git-commit-id-plugin</artifactId>
327 <groupId>com.github.kongchen</groupId>
328 <artifactId>swagger-maven-plugin</artifactId>
329 <version>3.1.8</version>
333 <springmvc>true</springmvc>
335 <location>org.onap.ccsdk.cds.blueprintsprocessor.designer.api.BlueprintModelController</location>
336 <location>org.onap.ccsdk.cds.blueprintsprocessor.designer.api.ResourceDictionaryController</location>
337 <location>org.onap.ccsdk.cds.blueprintsprocessor.designer.api.ModelTypeController</location>
338 <location>org.onap.ccsdk.cds.blueprintsprocessor.resource.api</location>
339 <location>org.onap.ccsdk.cds.blueprintsprocessor.configs.api</location>
340 <!-- This location is not implemented yet
341 <location>org.onap.ccsdk.cds.blueprintsprocessor.healthapi</location>
345 <scheme>http</scheme>
347 <host>localhost:8080</host>
349 <title>CDS Blueprint Processor API Reference</title>
350 <version>v1</version>
352 Shows all resources and endpoints which CDS BP processor currently provides with sample requests/responses, parameter description and other information.
355 https://www.onap.org/
358 <email>onap-discuss@lists.onap.org</email>
359 <name>ONAP Community</name>
360 <url>https://www.onap.org/</url>
363 <url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
364 <name>Apache 2.0</name>
367 <securityDefinitions>
369 <name>Basic Auth</name>
371 </securityDefinition>
372 </securityDefinitions>
373 <outputFormats>json</outputFormats>
374 <swaggerDirectory>${basedir}/../../../docs/api-reference/media</swaggerDirectory>
375 <swaggerFileName>cds-bp-processor-api-swagger</swaggerFileName>
376 <jsonExampleValues>true</jsonExampleValues>
377 <operationIdFormat>{{className}}_{{methodName}}_{{httpMethod}}.{{packageName}}</operationIdFormat>
383 <phase>compile</phase>
385 <goal>generate</goal>
399 <groupId>io.fabric8</groupId>
400 <artifactId>docker-maven-plugin</artifactId>
401 <version>0.34.0</version>
402 <inherited>false</inherited>
406 <name>${image.name}</name>
408 <cleanup>try</cleanup>
409 <noCache>true</noCache>
410 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
412 <tag>${project.docker.latestminortag.version}</tag>
413 <tag>${project.docker.latestfulltag.version}</tag>
414 <tag>${project.docker.latesttagtimestamp.version}</tag>
419 <verbose>${docker.verbose}</verbose>
420 <skipPush>${docker.skip.push}</skipPush>
424 <id>build-push-images</id>