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