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