Controller Blueprints MS
[ccsdk/cds.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>com.h2database</groupId>\r
74             <artifactId>h2</artifactId>\r
75             <scope>runtime</scope>\r
76         </dependency>\r
77         <dependency>\r
78             <groupId>org.springframework.boot</groupId>\r
79             <artifactId>spring-boot-starter-test</artifactId>\r
80             <scope>test</scope>\r
81         </dependency>\r
82     </dependencies>\r
83     <build>\r
84         <resources>\r
85             <resource>\r
86                 <!--config and resource files -->\r
87                 <directory>${basedir}/etc</directory>\r
88                 <targetPath>${basedir}/target/etc</targetPath>\r
89                 <filtering>true</filtering>\r
90                 <includes>\r
91                     <include>**/*</include>\r
92                 </includes>\r
93             </resource>\r
94             <resource>\r
95                 <!--config and resource files -->\r
96                 <directory>${basedir}/src/main/resources</directory>\r
97                 <targetPath>${basedir}/target/src/main/resources</targetPath>\r
98                 <filtering>true</filtering>\r
99                 <includes>\r
100                     <include>**/*</include>\r
101                 </includes>\r
102             </resource>\r
103             <resource>\r
104                 <directory>src/main/resources</directory>\r
105                 <includes>\r
106                     <include>**/*</include>\r
107                 </includes>\r
108                 <filtering>true</filtering>\r
109             </resource>\r
110             <resource>\r
111                 <directory>src/main/docker</directory>\r
112                 <targetPath>${basedir}/target</targetPath>\r
113                 <includes>\r
114                     <include>**/*</include>\r
115                 </includes>\r
116                 <filtering>true</filtering>\r
117             </resource>\r
118         </resources>\r
119         <plugins>\r
120             <plugin>\r
121                 <groupId>org.jacoco</groupId>\r
122                 <artifactId>jacoco-maven-plugin</artifactId>\r
123                 <version>0.7.5.201505241946</version>\r
124                 <executions>\r
125                     <!-- Prepares the property pointing to the JaCoCo runtime agent which\r
126                         is passed as VM argument when Maven the Surefire plugin is executed. -->\r
127                     <execution>\r
128                         <id>pre-unit-test</id>\r
129                         <goals>\r
130                             <goal>prepare-agent</goal>\r
131                         </goals>\r
132                         <configuration>\r
133                             <!-- Sets the path to the file which contains the execution data. -->\r
134                             <destFile>${sonar.jacoco.reportPath}</destFile>\r
135                             <propertyName>surefireArgLine</propertyName>\r
136                         </configuration>\r
137                     </execution>\r
138                     <!-- Ensures that the code coverage report for unit tests is created\r
139                         after unit tests have been run. -->\r
140                     <execution>\r
141                         <id>post-unit-test</id>\r
142                         <phase>test</phase>\r
143                         <goals>\r
144                             <goal>report</goal>\r
145                         </goals>\r
146                         <configuration>\r
147                             <!-- Sets the path to the file which contains the execution data. -->\r
148                             <dataFile>${sonar.jacoco.reportPath}</dataFile>\r
149                             <!-- Sets the output directory for the code coverage report. -->\r
150                             <outputDirectory>${jacoco.path}</outputDirectory>\r
151                         </configuration>\r
152                     </execution>\r
153                 </executions>\r
154             </plugin>\r
155             <plugin>\r
156                 <groupId>com.github.kongchen</groupId>\r
157                 <artifactId>swagger-maven-plugin</artifactId>\r
158                 <version>3.1.7</version>\r
159                 <configuration>\r
160                     <!-- <skipSwaggerGeneration>${skip.swagger.generation}</skipSwaggerGeneration>-->\r
161                     <apiSources>\r
162                         <apiSource>\r
163                             <schemes>\r
164                                 <scheme>http</scheme>\r
165                                 <scheme>https</scheme>\r
166                             </schemes>\r
167                             <locations>\r
168                                 <location>org.onap.ccsdk.apps.controllerblueprints</location>\r
169                             </locations>\r
170                             <basePath>/api/controller-blueprints/v1</basePath>\r
171                             <info>\r
172                                 <title>Controller Blueprint Service</title>\r
173                                 <version>${project.version}</version>\r
174                             </info>\r
175                             <swaggerDirectory>${swagger.directory}</swaggerDirectory>\r
176                         </apiSource>\r
177                     </apiSources>\r
178                 </configuration>\r
179                 <executions>\r
180                     <execution>\r
181                         <!-- <phase>compile</phase> -->\r
182                         <phase>package</phase>\r
183                         <goals>\r
184                             <goal>generate</goal>\r
185                         </goals>\r
186                     </execution>\r
187                 </executions>\r
188             </plugin>\r
189             <plugin>\r
190                 <groupId>org.apache.maven.plugins</groupId>\r
191                 <artifactId>maven-antrun-plugin</artifactId>\r
192                 <executions>\r
193                     <execution>\r
194                         <id>ant-test</id>\r
195                         <phase>package</phase>\r
196                         <configuration>\r
197                             <tasks>\r
198                                 <fixcrlf srcdir="${basedir}" eol="unix"\r
199                                          includes="**/*.sh, **/*.source"/>\r
200                             </tasks>\r
201                         </configuration>\r
202                         <goals>\r
203                             <goal>run</goal>\r
204                         </goals>\r
205                     </execution>\r
206                 </executions>\r
207             </plugin>\r
208             <plugin>\r
209                 <!--build the final artifact for docker deployment -->\r
210                 <artifactId>maven-assembly-plugin</artifactId>\r
211                 <version>3.0.0</version>\r
212                 <configuration>\r
213                     <!-- <skipAssembly>${skip.assembly}</skipAssembly>-->\r
214                     <outputDirectory>target</outputDirectory>\r
215                     <descriptors>\r
216                         <descriptor>src/assembly/distribution.xml</descriptor>\r
217                     </descriptors>\r
218                     <tarLongFileMode>posix</tarLongFileMode>\r
219                 </configuration>\r
220                 <executions>\r
221                     <execution>\r
222                         <id>${assembly.id}</id>\r
223                         <phase>package</phase>\r
224                         <goals>\r
225                             <goal>single</goal>\r
226                         </goals>\r
227                     </execution>\r
228                 </executions>\r
229             </plugin>\r
230             <plugin>\r
231                 <artifactId>maven-compiler-plugin</artifactId>\r
232                 <version>3.1</version>\r
233                 <configuration>\r
234                     <!-- <skip>${skip.compile}</skip>-->\r
235                     <source>1.8</source>\r
236                     <target>1.8</target>\r
237                 </configuration>\r
238             </plugin>\r
239         </plugins>\r
240     </build>\r
241 </project>\r
242 \r