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.
20 <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">
21 <modelVersion>4.0.0</modelVersion>
24 <groupId>org.onap.ccsdk.cds.blueprintsprocessor</groupId>
25 <artifactId>blueprintsprocessor-parent</artifactId>
26 <version>1.5.0-SNAPSHOT</version>
27 <relativePath>../parent</relativePath>
30 <artifactId>blueprintsprocessor-application</artifactId>
31 <packaging>jar</packaging>
33 <name>MS Blueprints Processor Application</name>
36 <serviceArtifactName>blueprintsprocessor</serviceArtifactName>
37 <image.name>onap/ccsdk-blueprintsprocessor</image.name>
42 <groupId>org.onap.ccsdk.cds.blueprintsprocessor.modules</groupId>
43 <artifactId>blueprint-core</artifactId>
46 <groupId>org.springframework.boot</groupId>
47 <artifactId>spring-boot-starter-logging</artifactId>
52 <groupId>org.springframework.boot</groupId>
53 <artifactId>spring-boot-starter-security</artifactId>
56 <groupId>org.springframework.boot</groupId>
57 <artifactId>spring-boot-starter-logging</artifactId>
62 <!-- Error Catalog Services -->
64 <groupId>org.onap.ccsdk.cds.error.catalog</groupId>
65 <artifactId>error-catalog-services</artifactId>
68 <!-- North Bound - Modules -->
70 <groupId>org.onap.ccsdk.cds.blueprintsprocessor.modules</groupId>
71 <artifactId>designer-api</artifactId>
74 <groupId>org.onap.ccsdk.cds.blueprintsprocessor.modules</groupId>
75 <artifactId>resource-api</artifactId>
78 <groupId>org.onap.ccsdk.cds.blueprintsprocessor.modules</groupId>
79 <artifactId>selfservice-api</artifactId>
82 <groupId>org.onap.ccsdk.cds.blueprintsprocessor.modules</groupId>
83 <artifactId>configs-api</artifactId>
86 <groupId>org.onap.ccsdk.cds.blueprintsprocessor.modules</groupId>
87 <artifactId>health-api</artifactId>
90 <groupId>org.onap.ccsdk.cds.blueprintsprocessor.modules</groupId>
91 <artifactId>health-api-common</artifactId>
96 <groupId>org.onap.ccsdk.cds.blueprintsprocessor.functions</groupId>
97 <artifactId>python-executor</artifactId>
100 <groupId>org.onap.ccsdk.cds.blueprintsprocessor.functions</groupId>
101 <artifactId>restful-executor</artifactId>
104 <groupId>org.onap.ccsdk.cds.blueprintsprocessor.functions</groupId>
105 <artifactId>ansible-awx-executor</artifactId>
108 <groupId>org.onap.ccsdk.cds.blueprintsprocessor.functions</groupId>
109 <artifactId>netconf-executor</artifactId>
112 <groupId>org.onap.ccsdk.cds.blueprintsprocessor.functions</groupId>
113 <artifactId>restconf-executor</artifactId>
116 <groupId>org.onap.ccsdk.cds.blueprintsprocessor.functions</groupId>
117 <artifactId>cli-executor</artifactId>
120 <groupId>org.onap.ccsdk.cds.blueprintsprocessor.functions</groupId>
121 <artifactId>config-snapshots</artifactId>
124 <groupId>org.onap.ccsdk.cds.blueprintsprocessor.functions</groupId>
125 <artifactId>k8s-connection-plugin</artifactId>
128 <!-- Test Dependencies -->
130 <groupId>com.h2database</groupId>
131 <artifactId>h2</artifactId>
134 <groupId>org.powermock</groupId>
135 <artifactId>powermock-api-mockito2</artifactId>
139 <groupId>org.springframework.boot</groupId>
140 <artifactId>spring-boot-starter-test</artifactId>
144 <groupId>org.jetbrains.kotlin</groupId>
145 <artifactId>kotlin-test-junit</artifactId>
149 <groupId>io.projectreactor</groupId>
150 <artifactId>reactor-test</artifactId>
156 <groupId>org.skyscreamer</groupId>
157 <artifactId>jsonassert</artifactId>
160 <groupId>org.yaml</groupId>
161 <artifactId>snakeyaml</artifactId>
164 <groupId>com.nhaarman.mockitokotlin2</groupId>
165 <artifactId>mockito-kotlin</artifactId>
166 <!-- It's unusual but 'compile' here is the right scope since mockito is being used at runtime by
167 the UatServices (/api/v1/uat/spy and /api/v1/uat/verify endpoints) -->
168 <scope>compile</scope>
171 <groupId>com.schibsted.spt.data</groupId>
172 <artifactId>jslt</artifactId>
175 <groupId>org.apache.httpcomponents</groupId>
176 <artifactId>httpclient</artifactId>
177 <version>${apache.httpcomponents.client.version}</version>
180 <groupId>org.apache.httpcomponents</groupId>
181 <artifactId>httpmime</artifactId>
182 <version>${apache.httpcomponents.client.version}</version>
185 <groupId>com.github.tomakehurst</groupId>
186 <artifactId>wiremock-jre8</artifactId>
187 <version>2.25.0</version>
192 <groupId>ch.qos.logback</groupId>
193 <artifactId>logback-classic</artifactId>
200 <!--config and resource files -->
201 <directory>${basedir}/etc</directory>
202 <targetPath>${basedir}/target/etc</targetPath>
203 <filtering>true</filtering>
205 <include>**/*</include>
209 <!--config and resource files -->
210 <directory>${basedir}/src/main/resources</directory>
211 <targetPath>${basedir}/target/src/main/resources</targetPath>
212 <filtering>true</filtering>
214 <include>**/*</include>
218 <directory>src/main/resources</directory>
220 <include>**/*</include>
222 <filtering>true</filtering>
227 <groupId>org.apache.maven.plugins</groupId>
228 <artifactId>maven-surefire-plugin</artifactId>
229 <version>${maven-surefire-plugin.version}</version>
231 <!-- Sets the VM argument line used when unit tests are run. -->
232 <argLine>-Xmx1024m -XX:MaxPermSize=256m ${surefireArgLine}</argLine>
233 <!-- Excludes integration tests when unit tests are run. -->
235 <exclude>**/IT*.java</exclude>
237 <reuseForks>false</reuseForks>
238 <forkCount>1</forkCount>
242 <artifactId>maven-resources-plugin</artifactId>
243 <version>2.6</version>
246 <id>copy-dockerfile</id>
248 <goal>copy-resources</goal>
249 </goals><!-- here the phase you need -->
250 <phase>validate</phase>
252 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
255 <directory>src/main/docker</directory>
259 <filtering>true</filtering>
267 <groupId>org.apache.maven.plugins</groupId>
268 <artifactId>maven-antrun-plugin</artifactId>
272 <phase>package</phase>
275 <fixcrlf srcdir="${basedir}" eol="unix" includes="**/*.sh, **/*.source"/>
284 <plugin><!--build the final artifact for docker deployment -->
285 <artifactId>maven-assembly-plugin</artifactId>
286 <version>3.1.0</version>
288 <!-- <skipAssembly>${skip.assembly}</skipAssembly> -->
289 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
291 <descriptor>src/main/docker/distribution.xml</descriptor>
293 <tarLongFileMode>posix</tarLongFileMode>
297 <id>${assembly.id}</id>
298 <phase>package</phase>
306 <groupId>org.codehaus.gmaven</groupId>
307 <artifactId>groovy-maven-plugin</artifactId>
308 <version>2.1.1</version>
311 <phase>validate</phase>
316 <source>${basedir}/../../../TagVersion.groovy</source>
322 <groupId>pl.project13.maven</groupId>
323 <artifactId>git-commit-id-plugin</artifactId>
326 <groupId>com.github.kongchen</groupId>
327 <artifactId>swagger-maven-plugin</artifactId>
328 <version>3.1.8</version>
332 <springmvc>true</springmvc>
334 <location>org.onap.ccsdk.cds.blueprintsprocessor.designer.api.BlueprintModelController</location>
335 <location>org.onap.ccsdk.cds.blueprintsprocessor.designer.api.ResourceDictionaryController</location>
336 <location>org.onap.ccsdk.cds.blueprintsprocessor.designer.api.ModelTypeController</location>
337 <location>org.onap.ccsdk.cds.blueprintsprocessor.resource.api</location>
338 <location>org.onap.ccsdk.cds.blueprintsprocessor.configs.api</location>
339 <!-- This location is not implemented yet
340 <location>org.onap.ccsdk.cds.blueprintsprocessor.healthapi</location>
344 <scheme>http</scheme>
346 <host>localhost:8080</host>
348 <title>CDS Blueprint Processor API Reference</title>
349 <version>v1</version>
351 Shows all resources and endpoints which CDS BP processor currently provides with sample requests/responses, parameter description and other information.
354 https://www.onap.org/
357 <email>onap-discuss@lists.onap.org</email>
358 <name>ONAP Community</name>
359 <url>https://www.onap.org/</url>
362 <url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
363 <name>Apache 2.0</name>
366 <securityDefinitions>
368 <name>Basic Auth</name>
370 </securityDefinition>
371 </securityDefinitions>
372 <outputFormats>json</outputFormats>
373 <swaggerDirectory>${basedir}/../../../docs/api-reference/media</swaggerDirectory>
374 <swaggerFileName>cds-bp-processor-api-swagger</swaggerFileName>
375 <jsonExampleValues>true</jsonExampleValues>
376 <operationIdFormat>{{className}}_{{methodName}}_{{httpMethod}}.{{packageName}}</operationIdFormat>
382 <phase>compile</phase>
384 <goal>generate</goal>
398 <groupId>io.fabric8</groupId>
399 <artifactId>docker-maven-plugin</artifactId>
400 <version>0.34.0</version>
401 <inherited>false</inherited>
405 <name>${image.name}</name>
407 <cleanup>try</cleanup>
408 <noCache>true</noCache>
409 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
411 <tag>${project.docker.latestminortag.version}</tag>
412 <tag>${project.docker.latestfulltag.version}</tag>
413 <tag>${project.docker.latesttagtimestamp.version}</tag>
418 <verbose>${docker.verbose}</verbose>
419 <skipPush>${docker.skip.push}</skipPush>
423 <id>build-push-images</id>