Change Management Schedule Optimization 21/67921/1
authorRamaPrasad Amaranarayana (ra5425) <ra5425@att.com>
Wed, 19 Sep 2018 22:25:49 +0000 (18:25 -0400)
committerRamaPrasad Amaranarayana (ra5425) <ra5425@att.com>
Wed, 19 Sep 2018 22:25:49 +0000 (18:25 -0400)
Adding CMSO Service Template Files for Change Management Schedule Optimization

Change-Id: Ic574407b44af1a7fd63a87fba3d3ca28e801d7b4
Issue-ID: OPTFRA-353
Signed-off-by: RamaPrasad Amaranarayana (ra5425) <ra5425@att.com>
cmso-service/.gitignore [new file with mode: 0644]
cmso-service/etc/config/README.txt [new file with mode: 0644]
cmso-service/etc/config/cmso.properties [new file with mode: 0644]
cmso-service/etc/config/optimizer.properties [new file with mode: 0644]
cmso-service/etc/config/ticketmgt.properties [new file with mode: 0644]
cmso-service/pom.xml [new file with mode: 0644]

diff --git a/cmso-service/.gitignore b/cmso-service/.gitignore
new file mode 100644 (file)
index 0000000..b83d222
--- /dev/null
@@ -0,0 +1 @@
+/target/
diff --git a/cmso-service/etc/config/README.txt b/cmso-service/etc/config/README.txt
new file mode 100644 (file)
index 0000000..e086cef
--- /dev/null
@@ -0,0 +1,3 @@
+The files in this etc/config folder are here for testing locally on eclipse.\r
+\r
+The files actually deployed are elsewhere\r
diff --git a/cmso-service/etc/config/cmso.properties b/cmso-service/etc/config/cmso.properties
new file mode 100644 (file)
index 0000000..6f50e60
--- /dev/null
@@ -0,0 +1,115 @@
+\r
+#-------------------------------------------------------------------------------\r
+# Copyright © 2017-2018 AT&T Intellectual Property.\r
+# Modifications Copyright © 2018 IBM.\r
+# \r
+# Licensed under the Apache License, Version 2.0 (the "License");\r
+# you may not use this file except in compliance with the License.\r
+# You may obtain a copy of the License at\r
+# \r
+#         http://www.apache.org/licenses/LICENSE-2.0\r
+# \r
+# Unless required by applicable law or agreed to in writing, software\r
+# distributed under the License is distributed on an "AS IS" BASIS,\r
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+# See the License for the specific language governing permissions and\r
+# limitations under the License.\r
+# \r
+# \r
+# Unless otherwise specified, all documentation contained herein is licensed\r
+# under the Creative Commons License, Attribution 4.0 Intl. (the â??Licenseâ?\9d);\r
+# you may not use this documentation except in compliance with the License.\r
+# You may obtain a copy of the License at\r
+# \r
+#         https://creativecommons.org/licenses/by/4.0/\r
+# \r
+# Unless required by applicable law or agreed to in writing, documentation\r
+# distributed under the License is distributed on an "AS IS" BASIS,\r
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+# See the License for the specific language governing permissions and\r
+# limitations under the License.\r
+#-------------------------------------------------------------------------------\r
+###\r
+\r
+### MySQL DB.\r
+spring.datasource.url=jdbc:mariadb://localhost:3305/cmso\r
+spring.datasource.driver-class-name=org.mariadb.jdbc.Driver\r
+spring.datasource.username=cmso\r
+cmso.database.password=enc:bfodXf8qRfCqMvlxVBYNWQ==\r
+\r
+###\r
+###\r
+### H2 DB.\r
+#spring.datasource.url=jdbc:h2:file:./h2db;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=true;MODE=MYSQL\r
+#spring.datasource.driver-class-name=org.h2.Driver\r
+#spring.datasource.username=sa\r
+#spring.datasource.password=sa\r
+\r
+spring.datasource.initialize=false\r
+spring.datasource.tomcat.max-wait=10000\r
+spring.datasource.tomcat.initialSize=5\r
+spring.datasource.tomcat.max-active=25\r
+spring.datasource.tomcat.test-on-borrow=true\r
+\r
+spring.jpa.show-sql=false\r
+spring.jpa.hibernate.ddl-auto=none\r
+spring.jpa.hibernate.naming.strategy=org.hibernate.cfg.EJB3NamingStrategy\r
+spring.jpa.database-platform=org.hibernate.dialect.MySQL5InnoDBDialect\r
+spring.jpa.hibernate.naming.physical-strategy=org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl\r
+\r
+logging.level.org.hibernate.SQL=TRACE\r
+\r
+logging.level.org.hibernate=TRACE\r
+\r
+#\r
+#@BP.name="Enable AAF authentication"\r
+#@BP.description="Log level for \r
+#@BP.type=enum(true,false)\r
+##BP.default=true\r
+#@BP.required=false\r
+#@BP.volatility=1\r
+cmso.aaf.enabled=false\r
+\r
+# Enable swagger - Enable in development and test only\r
+cmso.swagger.enabled=true\r
+\r
+# Enable schedule immediate to be dispatched without ticket approvals\r
+# Has no effect when in vTM loopback mode as always approved.\r
+cmso.cm.dispatch.immediate.enabled = true\r
+\r
+# NUmber of seconds between sniro dispatch jobs\r
+cmso.optimizer.job.interval.ms=10000\r
+\r
+# NUmber of seconds between change management cmso polling jobs\r
+# Controls frequenct of polling to the ChangeManagementScheduler table...\r
+cmso.cm.polling.job.interval.ms=10000\r
+# How many management cmso polling intervals to look ahead to dispatch\r
+# (To account for possible latency of the polling job)\r
+cmso.cm.polling.job.lookahead.intervals=5\r
+# Lead time before event time to enable dispatcher to \r
+# test that it is safe to dispatch (i.e. meeting reminder lead time)\r
+cmso.cm.dispatcher.lead.time.ms=5000\r
+# Lead time to prepare and call VID to dispatch work to MSO\r
+# Includes latency from VID call to the start of the workflow\r
+cmso.cm.dispatch.lead.time.ms=1000\r
+\r
+# Interval between polling to check status of schedules in Notifications Initiated status\r
+cmso.status.job.interval.ms=60000\r
+\r
+org.quartz.jobStore.class=org.quartz.simpl.RAMJobStore\r
+\r
+loopback.mso.requestId=dummy123\r
+\r
+so.polling.interval.ms=10000\r
+#mso.user=cmso@onap.org\r
+#mso.pass=enc:bfodXf8qRfCqMvlxVBYNWQ==\r
+\r
+## loopback settings\r
+so.url=http://localhost:8080/cmso/v1/loopbacktest/onap/so/infra/orchestrationRequests/v7\r
+so.user=cmso@onap.org\r
+so.pass=enc:bfodXf8qRfCqMvlxVBYNWQ==\r
+\r
+mechid.user=cmso@onap.org\r
+mechid.pass=enc:bfodXf8qRfCqMvlxVBYNWQ==\r
+\r
+cmso.dispatch.url=http://localhost:8089\r
diff --git a/cmso-service/etc/config/optimizer.properties b/cmso-service/etc/config/optimizer.properties
new file mode 100644 (file)
index 0000000..db014d6
--- /dev/null
@@ -0,0 +1,34 @@
+#-------------------------------------------------------------------------------\r
+# Copyright © 2017-2018 AT&T Intellectual Property.\r
+# Modifications Copyright © 2018 IBM.\r
+# \r
+# Licensed under the Apache License, Version 2.0 (the "License");\r
+# you may not use this file except in compliance with the License.\r
+# You may obtain a copy of the License at\r
+# \r
+#         http://www.apache.org/licenses/LICENSE-2.0\r
+# \r
+# Unless required by applicable law or agreed to in writing, software\r
+# distributed under the License is distributed on an "AS IS" BASIS,\r
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+# See the License for the specific language governing permissions and\r
+# limitations under the License.\r
+# \r
+# \r
+# Unless otherwise specified, all documentation contained herein is licensed\r
+# under the Creative Commons License, Attribution 4.0 Intl. (the â??Licenseâ?\9d);\r
+# you may not use this documentation except in compliance with the License.\r
+# You may obtain a copy of the License at\r
+# \r
+#         https://creativecommons.org/licenses/by/4.0/\r
+# \r
+# Unless required by applicable law or agreed to in writing, documentation\r
+# distributed under the License is distributed on an "AS IS" BASIS,\r
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+# See the License for the specific language governing permissions and\r
+# limitations under the License.\r
+#-------------------------------------------------------------------------------\r
+\r
+cmso.optimizer.url=http://localhost:8080/cmso/v1/loopbacktest/optimizer\r
+cmso.optimizer.callbackurl=http://localhost:8080/cmso/v1/optimizerCallback\r
+\r
diff --git a/cmso-service/etc/config/ticketmgt.properties b/cmso-service/etc/config/ticketmgt.properties
new file mode 100644 (file)
index 0000000..88db1ee
--- /dev/null
@@ -0,0 +1,38 @@
+#-------------------------------------------------------------------------------\r
+# Copyright © 2017-2018 AT&T Intellectual Property.\r
+# Modifications Copyright © 2018 IBM.\r
+# \r
+# Licensed under the Apache License, Version 2.0 (the "License");\r
+# you may not use this file except in compliance with the License.\r
+# You may obtain a copy of the License at\r
+# \r
+#         http://www.apache.org/licenses/LICENSE-2.0\r
+# \r
+# Unless required by applicable law or agreed to in writing, software\r
+# distributed under the License is distributed on an "AS IS" BASIS,\r
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+# See the License for the specific language governing permissions and\r
+# limitations under the License.\r
+# \r
+# \r
+# Unless otherwise specified, all documentation contained herein is licensed\r
+# under the Creative Commons License, Attribution 4.0 Intl. (the â??Licenseâ?\9d);\r
+# you may not use this documentation except in compliance with the License.\r
+# You may obtain a copy of the License at\r
+# \r
+#         https://creativecommons.org/licenses/by/4.0/\r
+# \r
+# Unless required by applicable law or agreed to in writing, documentation\r
+# distributed under the License is distributed on an "AS IS" BASIS,\r
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+# See the License for the specific language governing permissions and\r
+# limitations under the License.\r
+#-------------------------------------------------------------------------------\r
+\r
+tm.vnfs.per.ticket=1\r
+tm.getPath=http://localhost:8080/cmso/v1/tm/getChangeRecord\r
+tm.createPath=http://localhost:8080/cmso/v1/tm/createChangeRecord\r
+tm.closePath=http://localhost:8080/cmso/v1/tm/closeCancelChangeRecord\r
+tm.updatePath=http://localhost:8080/cmso/v1/tm/updateChangeRecord\r
+tm.approvalStatus=Approved|Scheduled,Approved|Assigned\r
+tm.template.folder=data/templates/tm\r
diff --git a/cmso-service/pom.xml b/cmso-service/pom.xml
new file mode 100644 (file)
index 0000000..160deb7
--- /dev/null
@@ -0,0 +1,448 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
+<!--\r
+  Copyright © 2017-2018 AT&T Intellectual Property.\r
+  Modifications Copyright © 2018 IBM.\r
+  \r
+  Licensed under the Apache License, Version 2.0 (the "License");\r
+  you may not use this file except in compliance with the License.\r
+  You may obtain a copy of the License at\r
+  \r
+          http://www.apache.org/licenses/LICENSE-2.0\r
+  \r
+  Unless required by applicable law or agreed to in writing, software\r
+  distributed under the License is distributed on an "AS IS" BASIS,\r
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+  See the License for the specific language governing permissions and\r
+  limitations under the License.\r
+  \r
+  \r
+  Unless otherwise specified, all documentation contained herein is licensed\r
+  under the Creative Commons License, Attribution 4.0 Intl. (the "License");\r
+  you may not use this documentation except in compliance with the License.\r
+  You may obtain a copy of the License at\r
+  \r
+          https://creativecommons.org/licenses/by/4.0/\r
+  \r
+  Unless required by applicable law or agreed to in writing, documentation\r
+  distributed under the License is distributed on an "AS IS" BASIS,\r
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+  See the License for the specific language governing permissions and\r
+  limitations under the License.\r
+-->\r
+\r
+<project xmlns="http://maven.apache.org/POM/4.0.0"\r
+       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"\r
+       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">\r
+       <modelVersion>4.0.0</modelVersion>\r
+\r
+       <parent>\r
+               <groupId>org.onap.oparent</groupId>\r
+               <artifactId>oparent</artifactId>\r
+               <version>1.2.0</version>\r
+       </parent>\r
+\r
+       <groupId>org.onap.optf.cmso</groupId>\r
+       <artifactId>cmso-service</artifactId>\r
+       <version>0.1.0-SNAPSHOT</version>\r
+       <packaging>jar</packaging>\r
+\r
+       <name>cmso</name>\r
+\r
+       <properties>\r
+               <service.name>cmso</service.name>\r
+               <release-tag>Casablanca</release-tag>\r
+               <name.space>org.onap.optf.cmso</name.space>\r
+               <serviceArtifactName>cmso</serviceArtifactName>\r
+\r
+               <java.version>1.8</java.version>\r
+               <eelf.version>1.0.0</eelf.version>\r
+               <pact.version>3.3.9</pact.version>\r
+               <spring.version>5.0.8.RELEASE</spring.version>\r
+               <spring.boot.version>2.0.4.RELEASE</spring.boot.version>\r
+               <springfox.swagger2.version>2.9.2</springfox.swagger2.version>\r
+\r
+               <maven.compiler.target>1.8</maven.compiler.target>\r
+               <maven.compiler.source>1.8</maven.compiler.source>\r
+               <build.number>${maven.build.timestamp}</build.number>\r
+               <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>\r
+               <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>\r
+               <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>\r
+\r
+               <h2database.version>1.4.197</h2database.version>\r
+               <swagger.directory>${basedir}/src/main/resources/swagger-ui/dist</swagger.directory>\r
+\r
+               <!-- Sonar -->\r
+               <ilib.version>2.0.7</ilib.version>\r
+               <sonar.language>java</sonar.language>\r
+               <jacoco.path>${basedir}/target/jacoco_report</jacoco.path>\r
+               <jacoco.itPath>${basedir}/target/jacoco_itReport</jacoco.itPath>\r
+               <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>\r
+               <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>\r
+               <sonar.jacoco.reportPath>${basedir}/target/jacoco-ut.exec</sonar.jacoco.reportPath>\r
+               <sonar.jacoco.itReportPath>${basedir}/target/jacoco-it.exec</sonar.jacoco.itReportPath>\r
+               <sonar.surefire.reportsPath>${basedir}/target/surefire-reports</sonar.surefire.reportsPath>\r
+               <sonar.failsafe.reportsPath>${basedir}/target/failsafe-reports</sonar.failsafe.reportsPath>\r
+\r
+       </properties>\r
+\r
+       <dependencyManagement>\r
+               <dependencies>\r
+                       <!-- Spring boot -->\r
+                       <dependency>\r
+                               <groupId>org.springframework.boot</groupId>\r
+                               <artifactId>spring-boot-dependencies</artifactId>\r
+                               <version>${spring.boot.version}</version>\r
+                               <type>pom</type>\r
+                               <scope>import</scope>\r
+                       </dependency>\r
+               </dependencies>\r
+       </dependencyManagement>\r
+\r
+       <dependencies>\r
+               <dependency>\r
+                       <groupId>org.springframework.boot</groupId>\r
+                       <artifactId>spring-boot-starter-actuator</artifactId>\r
+               </dependency>\r
+               <dependency>\r
+                       <groupId>org.springframework.boot</groupId>\r
+                       <artifactId>spring-boot-starter-jersey</artifactId>\r
+               </dependency>\r
+               <dependency>\r
+                       <groupId>org.springframework.boot</groupId>\r
+                       <artifactId>spring-boot-starter-web</artifactId>\r
+               </dependency>\r
+               <dependency>\r
+                       <groupId>org.springframework.boot</groupId>\r
+                       <artifactId>spring-boot-starter-security</artifactId>\r
+               </dependency>\r
+               <!-- <dependency>\r
+                       <groupId>org.springframework.boot</groupId>\r
+                       <artifactId>spring-boot-loader-tools</artifactId>\r
+               </dependency> -->\r
+               <dependency>\r
+                       <groupId>org.springframework.boot</groupId>\r
+                       <artifactId>spring-boot-starter-data-jpa</artifactId>\r
+               </dependency>\r
+               <dependency>\r
+                       <groupId>org.springframework.boot</groupId>\r
+                       <artifactId>spring-boot-starter-tomcat</artifactId>\r
+               </dependency>\r
+               <!-- <dependency>\r
+                       <groupId>org.springframework.boot</groupId>\r
+                       <artifactId>spring-boot-starter-data-mongodb</artifactId>\r
+               </dependency> -->\r
+               <dependency>\r
+                       <groupId>org.springframework.boot</groupId>\r
+                       <artifactId>spring-boot-configuration-processor</artifactId>\r
+                       <optional>true</optional>\r
+               </dependency>\r
+               <dependency>\r
+                       <groupId>org.springframework.boot</groupId>\r
+                       <artifactId>spring-boot-starter-test</artifactId>\r
+                       <scope>test</scope>\r
+               </dependency>\r
+               <dependency>\r
+                       <groupId>org.apache.httpcomponents</groupId>\r
+                       <artifactId>httpclient</artifactId>\r
+               </dependency>\r
+               <dependency>\r
+                       <groupId>org.springframework</groupId>\r
+                       <artifactId>spring-test</artifactId>\r
+                       <scope>test</scope>\r
+               </dependency>\r
+               <dependency>\r
+                       <groupId>org.springframework</groupId>\r
+                       <artifactId>spring-aop</artifactId>\r
+               </dependency>\r
+               <dependency>\r
+                       <groupId>org.springframework</groupId>\r
+                       <artifactId>spring-beans</artifactId>\r
+               </dependency>\r
+               <dependency>\r
+                       <groupId>org.springframework</groupId>\r
+                       <artifactId>spring-beans</artifactId>\r
+               </dependency>\r
+               <dependency>\r
+                       <groupId>org.springframework</groupId>\r
+                       <artifactId>spring-context</artifactId>\r
+               </dependency>\r
+               <dependency>\r
+                       <groupId>org.springframework</groupId>\r
+                       <artifactId>spring-core</artifactId>\r
+               </dependency>\r
+               <dependency>\r
+                       <groupId>org.springframework</groupId>\r
+                       <artifactId>spring-expression</artifactId>\r
+               </dependency>\r
+               <dependency>\r
+                       <groupId>org.springframework</groupId>\r
+                       <artifactId>spring-web</artifactId>\r
+               </dependency>\r
+               <dependency>\r
+                       <groupId>org.springframework</groupId>\r
+                       <artifactId>spring-tx</artifactId>\r
+               </dependency>\r
+               <dependency>\r
+                       <groupId>org.springframework</groupId>\r
+                       <artifactId>spring-context-support</artifactId>\r
+               </dependency>\r
+               <dependency>\r
+                       <groupId>com.fasterxml.jackson.dataformat</groupId>\r
+                       <artifactId>jackson-dataformat-yaml</artifactId>\r
+               </dependency>\r
+               <dependency>\r
+                       <groupId>com.att.eelf</groupId>\r
+                       <artifactId>eelf-core</artifactId>\r
+                       <version>${eelf.version}</version>\r
+               </dependency>\r
+               <!-- <dependency>\r
+                       <groupId>org.onap.aaf.authz</groupId>\r
+                       <artifactId>aaf-cadi-aaf</artifactId>\r
+                       <version>2.1.1</version>\r
+               </dependency> -->\r
+               <dependency>\r
+                       <groupId>javax.ws.rs</groupId>\r
+                       <artifactId>javax.ws.rs-api</artifactId>\r
+                       <version>2.1</version>\r
+               </dependency>\r
+\r
+               <!--Swagger Dependencies -->\r
+               <dependency>\r
+                       <groupId>io.springfox</groupId>\r
+                       <artifactId>springfox-swagger2</artifactId>\r
+                       <version>${springfox.swagger2.version}</version>\r
+               </dependency>\r
+               <dependency>\r
+                       <groupId>io.springfox</groupId>\r
+                       <artifactId>springfox-swagger-ui</artifactId>\r
+                       <version>${springfox.swagger2.version}</version>\r
+               </dependency>\r
+               <!-- <dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-lang3</artifactId>\r
+                       </dependency> -->\r
+               <dependency>\r
+                       <groupId>org.quartz-scheduler</groupId>\r
+                       <artifactId>quartz</artifactId>\r
+               </dependency>\r
+\r
+               <!-- Database -->\r
+               <dependency>\r
+                       <groupId>com.h2database</groupId>\r
+                       <artifactId>h2</artifactId>\r
+               </dependency>\r
+\r
+               <!-- Pact -->\r
+               <dependency>\r
+                       <groupId>au.com.dius</groupId>\r
+                       <artifactId>pact-jvm-consumer-junit_2.11</artifactId>\r
+                       <version>${pact.version}</version>\r
+                       <exclusions>\r
+                               <exclusion>\r
+                                       <groupId>org.codehaus.groovy</groupId>\r
+                                       <artifactId>groovy-all</artifactId>\r
+                               </exclusion>\r
+                       </exclusions>\r
+               </dependency>\r
+               <dependency>\r
+                       <groupId>au.com.dius</groupId>\r
+                       <artifactId>pact-jvm-provider-junit_2.11</artifactId>\r
+                       <version>${pact.version}</version>\r
+               </dependency>\r
+\r
+               <!-- Testing Dependencies -->\r
+               <!-- <dependency>\r
+                       <groupId>org.powermock</groupId>\r
+                       <artifactId>powermock-api-mockito2</artifactId>\r
+                       <version>1.7.4</version>\r
+                       <scope>test</scope>\r
+               </dependency> -->\r
+               <dependency>\r
+                       <groupId>org.mockito</groupId>\r
+                       <artifactId>mockito-all</artifactId>\r
+                       <version>1.9.5</version>\r
+                       <scope>test</scope>\r
+               </dependency>\r
+               <dependency>\r
+                       <groupId>org.jacoco</groupId>\r
+                       <artifactId>jacoco-maven-plugin</artifactId>\r
+                       <version>0.8.1</version>\r
+               </dependency>\r
+       </dependencies>\r
+\r
+       <build>\r
+               <finalName>cmso-service</finalName>\r
+               <plugins>\r
+                       <plugin>\r
+                               <groupId>au.com.dius</groupId>\r
+                               <artifactId>pact-jvm-provider-maven_2.11</artifactId>\r
+                               <version>${pact.version}</version>\r
+                               <configuration>\r
+                                       <!--pactBrokerUrl,user name,password and project version required only\r
+                                               for consumer -->\r
+                                       <pactBrokerUrl>${BROKER_URL}</pactBrokerUrl>\r
+                                       <pactBrokerUsername>pactadmin</pactBrokerUsername>\r
+                                       <pactBrokerPassword>pactadmin</pactBrokerPassword>\r
+                                       <projectVersion>1.0.0</projectVersion>\r
+                                       <!-- service provider required only for producer -->\r
+                                       <serviceProviders>\r
+                                               <serviceProvider>\r
+                                                       <name>core</name>\r
+                                                       <protocol>http</protocol>\r
+                                                       <host>${APP_URL}</host>\r
+                                                       <port>${APP_PORT}</port>\r
+                                                       <path>/</path>\r
+                                                       <pactBroker>\r
+                                                               <url>${BROKER_URL}</url>\r
+                                                               <authentication>\r
+                                                                       <username>pactadmin</username>\r
+                                                                       <password>pactadmin</password>\r
+                                                               </authentication>\r
+                                                       </pactBroker>\r
+                                               </serviceProvider>\r
+                                       </serviceProviders>\r
+                               </configuration>\r
+                       </plugin>\r
+                       <plugin>\r
+                               <artifactId>maven-dependency-plugin</artifactId>\r
+                       </plugin>\r
+                       <plugin>\r
+                               <groupId>com.github.kongchen</groupId>\r
+                               <artifactId>swagger-maven-plugin</artifactId>\r
+                               <version>3.1.5</version>\r
+                               <configuration>\r
+                                       <apiSources>\r
+                                               <apiSource>\r
+                                                       <locations>\r
+                                                               <location>org.onap.optf.cmso.service.rs</location>\r
+                                                       </locations>\r
+                                                       <basePath>/cmso</basePath>\r
+                                                       <info>\r
+                                                               <title>${project.artifactId}</title>\r
+                                                               <version>${project.version}</version>\r
+                                                       </info>\r
+                                                       <swaggerDirectory>${swagger.directory}</swaggerDirectory>\r
+                                               </apiSource>\r
+                                       </apiSources>\r
+                               </configuration>\r
+                               <executions>\r
+                                       <execution>\r
+                                               <phase>compile</phase>\r
+                                               <goals>\r
+                                                       <goal>generate</goal>\r
+                                               </goals>\r
+                                       </execution>\r
+                               </executions>\r
+                       </plugin>\r
+                       <plugin>\r
+                               <artifactId>exec-maven-plugin</artifactId>\r
+                               <groupId>org.codehaus.mojo</groupId>\r
+                       </plugin>\r
+                       <plugin>\r
+                               <groupId>org.springframework.boot</groupId>\r
+                               <artifactId>spring-boot-maven-plugin</artifactId>\r
+                               <version>${spring.boot.version}</version>\r
+                               <executions>\r
+                                       <execution>\r
+                                               <goals>\r
+                                                       <goal>repackage</goal>\r
+                                               </goals>\r
+                                       </execution>\r
+                               </executions>\r
+                       </plugin>\r
+               </plugins>\r
+               <!-- mention the logback.xml location through system property or environment\r
+                       variable to edit logback.xml at run time -->\r
+               <resources>\r
+                       <resource>\r
+                               <directory>src/main/resources</directory>\r
+                               <filtering>true</filtering>\r
+                               <includes>\r
+                                       <include>**/*</include>\r
+                               </includes>\r
+                       </resource>\r
+                       <resource>\r
+                               <directory>${basedir}/truststore</directory>\r
+                               <targetPath>${basedir}/target/truststore</targetPath>\r
+                               <filtering>true</filtering>\r
+                               <includes>\r
+                                       <include>**/*</include>\r
+                               </includes>\r
+                       </resource>\r
+                       <resource>\r
+                               <directory>${basedir}/bin</directory>\r
+                               <targetPath>${basedir}/target/bin</targetPath>\r
+                               <filtering>true</filtering>\r
+                               <includes>\r
+                                       <include>**/*</include>\r
+                               </includes>\r
+                       </resource>\r
+                       <resource>\r
+                               <directory>${basedir}/data</directory>\r
+                               <targetPath>${basedir}/target/data</targetPath>\r
+                               <filtering>true</filtering>\r
+                               <includes>\r
+                                       <include>**/*</include>\r
+                               </includes>\r
+                       </resource>\r
+               </resources>\r
+               <pluginManagement>\r
+                       <plugins>\r
+                               <!--This plugin's configuration is used to store Eclipse m2e settings\r
+                                       only. It has no influence on the Maven build itself. -->\r
+                               <plugin>\r
+                                       <groupId>org.eclipse.m2e</groupId>\r
+                                       <artifactId>lifecycle-mapping</artifactId>\r
+                                       <version>1.0.0</version>\r
+                                       <configuration>\r
+                                               <lifecycleMappingMetadata>\r
+                                                       <pluginExecutions>\r
+                                                               <pluginExecution>\r
+                                                                       <pluginExecutionFilter>\r
+                                                                               <groupId>\r
+                                                                                       com.github.kongchen\r
+                                                                               </groupId>\r
+                                                                               <artifactId>\r
+                                                                                       swagger-maven-plugin\r
+                                                                               </artifactId>\r
+                                                                               <versionRange>\r
+                                                                                       [3.1.5]\r
+                                                                               </versionRange>\r
+                                                                               <goals>\r
+                                                                                       <goal>generate</goal>\r
+                                                                               </goals>\r
+                                                                       </pluginExecutionFilter>\r
+                                                                       <action>\r
+                                                                               <ignore></ignore>\r
+                                                                       </action>\r
+                                                               </pluginExecution>\r
+                                                       </pluginExecutions>\r
+                                               </lifecycleMappingMetadata>\r
+                                       </configuration>\r
+                               </plugin>\r
+                       </plugins>\r
+               </pluginManagement>\r
+       </build>\r
+\r
+       <profiles>\r
+               <profile>\r
+                       <id>snapshot</id>\r
+                       <activation>\r
+                               <activeByDefault>true</activeByDefault>\r
+                       </activation>\r
+                       <properties>\r
+                               <versionSuffix>-${build.number}-${release-tag}</versionSuffix>\r
+                       </properties>\r
+               </profile>\r
+               <profile>\r
+                       <id>next-stable</id>\r
+                       <properties>\r
+                               <versionSuffix>-${release-tag}</versionSuffix>\r
+                       </properties>\r
+               </profile>\r
+               <profile>\r
+                       <id>last-stable</id>\r
+                       <properties>\r
+                               <versionSuffix>-${release-tag}</versionSuffix>\r
+                       </properties>\r
+               </profile>\r
+       </profiles>\r
+</project>\r