blob: 38f81c169a6a8d296c861e6e251ccafeb0403279 [file] [log] [blame]
Singal, Kapil (ks220y)aa748652018-08-09 20:47:29 +00001<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 ~ Copyright © 2017-2018 AT&T Intellectual Property.
4 ~
Brinda Santhe4d1a922018-08-23 23:34:05 -04005 ~ Modifications Copyright © 2018 IBM.
6 ~
Singal, Kapil (ks220y)aa748652018-08-09 20:47:29 +00007 ~ Licensed under the Apache License, Version 2.0 (the "License");
8 ~ you may not use this file except in compliance with the License.
9 ~ You may obtain a copy of the License at
10 ~
11 ~ http://www.apache.org/licenses/LICENSE-2.0
12 ~
13 ~ Unless required by applicable law or agreed to in writing, software
14 ~ distributed under the License is distributed on an "AS IS" BASIS,
15 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 ~ See the License for the specific language governing permissions and
17 ~ limitations under the License.
18 -->
19
20<project
21 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
22 xmlns="http://maven.apache.org/POM/4.0.0"
23 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
24 <modelVersion>4.0.0</modelVersion>
25 <parent>
Muthuramalingam, Brinda Santh(bs2796)d3efe722018-08-23 15:54:30 +000026 <groupId>org.onap.ccsdk.apps.controllerblueprints</groupId>
27 <artifactId>parent</artifactId>
Singal, Kapil (ks220y)aa748652018-08-09 20:47:29 +000028 <version>0.3.0-SNAPSHOT</version>
29 <relativePath>../parent</relativePath>
30 </parent>
Muthuramalingam, Brinda Santh(bs2796)d3efe722018-08-23 15:54:30 +000031 <artifactId>application</artifactId>
Singal, Kapil (ks220y)aa748652018-08-09 20:47:29 +000032 <name>Controller Blueprints Application</name>
33 <properties>
34 <swagger.directory>${basedir}/src/main/resources/swagger-ui/dist</swagger.directory>
35 <java.version>1.8</java.version>
Singal, Kapil (ks220y)aa748652018-08-09 20:47:29 +000036 <name.space>org.onap.ccsdk.apps</name.space> <!-- <name.space>${namespace}</name.space> -->
Singal, Kapil (ks220y)aa748652018-08-09 20:47:29 +000037 <serviceArtifactName>controllerblueprints</serviceArtifactName>
Singal, Kapil (ks220y)aa748652018-08-09 20:47:29 +000038 <!-- Sonar -->
39 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
40 <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
41 <sonar.surefire.reportsPath>${basedir}/target/surefire-reports</sonar.surefire.reportsPath>
42 <sonar.failsafe.reportsPath>${basedir}/target/failsafe-reports</sonar.failsafe.reportsPath>
43 <jacoco.path>${basedir}/target/jacoco_report</jacoco.path>
44 <jacoco.itPath>${basedir}/target/jacoco_itReport</jacoco.itPath>
45 <sonar.jacoco.reportPath>${basedir}/target/jacoco-ut.exec</sonar.jacoco.reportPath>
46 <sonar.jacoco.itReportPath>${basedir}/target/jacoco-it.exec</sonar.jacoco.itReportPath>
47 <sonar.language>java</sonar.language>
48 <ilib.version>2.0.7</ilib.version>
Singal, Kapil (ks220y)aa748652018-08-09 20:47:29 +000049 </properties>
50
51 <dependencies>
Singal, Kapil (ks220y)aa748652018-08-09 20:47:29 +000052 <dependency>
Muthuramalingam, Brinda Santh(bs2796)d3efe722018-08-23 15:54:30 +000053 <groupId>org.onap.ccsdk.apps.controllerblueprints</groupId>
54 <artifactId>service</artifactId>
Singal, Kapil (ks220y)aa748652018-08-09 20:47:29 +000055 </dependency>
56 <dependency>
57 <groupId>org.springframework.boot</groupId>
58 <artifactId>spring-boot-starter-actuator</artifactId>
59 </dependency>
60 <dependency>
Brinda Santhe4d1a922018-08-23 23:34:05 -040061 <groupId>org.powermock</groupId>
62 <artifactId>powermock-api-mockito2</artifactId>
63 <scope>test</scope>
Singal, Kapil (ks220y)aa748652018-08-09 20:47:29 +000064 </dependency>
65 <dependency>
Singal, Kapil (ks220y)aa748652018-08-09 20:47:29 +000066 <groupId>org.springframework.boot</groupId>
67 <artifactId>spring-boot-starter-test</artifactId>
68 <scope>test</scope>
69 </dependency>
Brinda Santhe4d1a922018-08-23 23:34:05 -040070 <dependency>
71 <groupId>org.jetbrains.kotlin</groupId>
72 <artifactId>kotlin-test</artifactId>
73 <scope>test</scope>
74 </dependency>
75 <dependency>
76 <groupId>io.projectreactor</groupId>
77 <artifactId>reactor-test</artifactId>
78 <scope>test</scope>
79 </dependency>
Singal, Kapil (ks220y)aa748652018-08-09 20:47:29 +000080 </dependencies>
81 <build>
82 <resources>
83 <resource>
84 <!--config and resource files -->
85 <directory>${basedir}/etc</directory>
86 <targetPath>${basedir}/target/etc</targetPath>
87 <filtering>true</filtering>
88 <includes>
89 <include>**/*</include>
90 </includes>
91 </resource>
92 <resource>
93 <!--config and resource files -->
94 <directory>${basedir}/src/main/resources</directory>
95 <targetPath>${basedir}/target/src/main/resources</targetPath>
96 <filtering>true</filtering>
97 <includes>
98 <include>**/*</include>
99 </includes>
100 </resource>
101 <resource>
102 <directory>src/main/resources</directory>
103 <includes>
104 <include>**/*</include>
105 </includes>
106 <filtering>true</filtering>
107 </resource>
Singal, Kapil (ks220y)aa748652018-08-09 20:47:29 +0000108 </resources>
109 <plugins>
110 <plugin>
Muthuramalingam, Brinda Santh(bs2796)d3efe722018-08-23 15:54:30 +0000111 <artifactId>maven-resources-plugin</artifactId>
112 <version>2.6</version>
113 <executions>
114 <execution>
115 <id>copy-dockerfile</id>
116 <goals>
117 <goal>copy-resources</goal>
118 </goals><!-- here the phase you need -->
119 <phase>validate</phase>
120 <configuration>
121 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
122 <resources>
123 <resource>
124 <directory>src/main/docker</directory>
125 <includes>
126 <include>*</include>
127 </includes>
128 <filtering>true</filtering>
129 </resource>
130 </resources>
131 </configuration>
132 </execution>
133 </executions>
134 </plugin>
135
136 <plugin>
Singal, Kapil (ks220y)aa748652018-08-09 20:47:29 +0000137 <groupId>org.jacoco</groupId>
138 <artifactId>jacoco-maven-plugin</artifactId>
139 <version>0.7.5.201505241946</version>
140 <executions>
141 <!-- Prepares the property pointing to the JaCoCo runtime agent which
142 is passed as VM argument when Maven the Surefire plugin is executed. -->
143 <execution>
144 <id>pre-unit-test</id>
145 <goals>
146 <goal>prepare-agent</goal>
147 </goals>
148 <configuration>
149 <!-- Sets the path to the file which contains the execution data. -->
150 <destFile>${sonar.jacoco.reportPath}</destFile>
151 <propertyName>surefireArgLine</propertyName>
152 </configuration>
153 </execution>
154 <!-- Ensures that the code coverage report for unit tests is created
155 after unit tests have been run. -->
156 <execution>
157 <id>post-unit-test</id>
158 <phase>test</phase>
159 <goals>
160 <goal>report</goal>
161 </goals>
162 <configuration>
163 <!-- Sets the path to the file which contains the execution data. -->
164 <dataFile>${sonar.jacoco.reportPath}</dataFile>
165 <!-- Sets the output directory for the code coverage report. -->
166 <outputDirectory>${jacoco.path}</outputDirectory>
167 </configuration>
168 </execution>
169 </executions>
170 </plugin>
171 <plugin>
Singal, Kapil (ks220y)aa748652018-08-09 20:47:29 +0000172 <groupId>org.apache.maven.plugins</groupId>
173 <artifactId>maven-antrun-plugin</artifactId>
174 <executions>
175 <execution>
176 <id>ant-test</id>
177 <phase>package</phase>
178 <configuration>
179 <tasks>
180 <fixcrlf srcdir="${basedir}" eol="unix"
181 includes="**/*.sh, **/*.source"/>
182 </tasks>
183 </configuration>
184 <goals>
185 <goal>run</goal>
186 </goals>
187 </execution>
188 </executions>
189 </plugin>
190 <plugin>
Singal, Kapil (ks220y)aa748652018-08-09 20:47:29 +0000191 <artifactId>maven-compiler-plugin</artifactId>
192 <version>3.1</version>
193 <configuration>
194 <!-- <skip>${skip.compile}</skip>-->
195 <source>1.8</source>
196 <target>1.8</target>
197 </configuration>
198 </plugin>
199 </plugins>
200 </build>
201</project>
202