Plugin to format/validate POM
[ccsdk/cds.git] / ms / blueprintsprocessor / application / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   ~  Copyright © 2017-2018 AT&T Intellectual Property.
4   ~
5   ~  Modifications Copyright © 2018 IBM.
6   ~  Modifications Copyright © 2019 Bell Canada.
7   ~
8   ~  Licensed under the Apache License, Version 2.0 (the "License");
9   ~  you may not use this file except in compliance with the License.
10   ~  You may obtain a copy of the License at
11   ~
12   ~      http://www.apache.org/licenses/LICENSE-2.0
13   ~
14   ~  Unless required by applicable law or agreed to in writing, software
15   ~  distributed under the License is distributed on an "AS IS" BASIS,
16   ~  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17   ~  See the License for the specific language governing permissions and
18   ~  limitations under the License.
19   -->
20 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
21     <modelVersion>4.0.0</modelVersion>
22
23     <parent>
24         <groupId>org.onap.ccsdk.cds.blueprintsprocessor</groupId>
25         <artifactId>parent</artifactId>
26         <version>0.7.0-SNAPSHOT</version>
27         <relativePath>../parent</relativePath>
28     </parent>
29
30     <artifactId>application</artifactId>
31     <packaging>jar</packaging>
32
33     <name>Blueprints Processor Application</name>
34     <description>Blueprints Processor Application</description>
35
36     <dependencies>
37
38         <dependency>
39             <groupId>org.onap.ccsdk.cds.controllerblueprints</groupId>
40             <artifactId>blueprint-core</artifactId>
41             <exclusions>
42                 <exclusion>
43                     <groupId>org.springframework.boot</groupId>
44                     <artifactId>spring-boot-starter-logging</artifactId>
45                 </exclusion>
46             </exclusions>
47         </dependency>
48         <dependency>
49             <groupId>org.springframework.boot</groupId>
50             <artifactId>spring-boot-starter-security</artifactId>
51             <exclusions>
52                 <exclusion>
53                     <groupId>org.springframework.boot</groupId>
54                     <artifactId>spring-boot-starter-logging</artifactId>
55                 </exclusion>
56             </exclusions>
57         </dependency>
58
59         <!-- North Bound -->
60         <dependency>
61             <groupId>org.onap.ccsdk.cds.blueprintsprocessor</groupId>
62             <artifactId>designer-api</artifactId>
63         </dependency>
64         <dependency>
65             <groupId>org.onap.ccsdk.cds.blueprintsprocessor</groupId>
66             <artifactId>resource-api</artifactId>
67         </dependency>
68         <dependency>
69             <groupId>org.onap.ccsdk.cds.blueprintsprocessor</groupId>
70             <artifactId>selfservice-api</artifactId>
71         </dependency>
72         <dependency>
73             <groupId>org.onap.ccsdk.cds.blueprintsprocessor</groupId>
74             <artifactId>configs-api</artifactId>
75         </dependency>
76         <dependency>
77             <groupId>org.onap.ccsdk.cds.blueprintsprocessor</groupId>
78             <artifactId>health-api</artifactId>
79         </dependency>
80
81
82         <!-- Functions -->
83         <dependency>
84             <groupId>org.onap.ccsdk.cds.blueprintsprocessor.functions</groupId>
85             <artifactId>python-executor</artifactId>
86         </dependency>
87         <dependency>
88             <groupId>org.onap.ccsdk.cds.blueprintsprocessor.functions</groupId>
89             <artifactId>ansible-awx-executor</artifactId>
90         </dependency>
91         <dependency>
92             <groupId>org.onap.ccsdk.cds.blueprintsprocessor.functions</groupId>
93             <artifactId>netconf-executor</artifactId>
94         </dependency>
95         <dependency>
96             <groupId>org.onap.ccsdk.cds.blueprintsprocessor.functions</groupId>
97             <artifactId>restconf-executor</artifactId>
98         </dependency>
99         <dependency>
100             <groupId>org.onap.ccsdk.cds.blueprintsprocessor.functions</groupId>
101             <artifactId>cli-executor</artifactId>
102         </dependency>
103         <dependency>
104             <groupId>org.onap.ccsdk.cds.blueprintsprocessor.functions</groupId>
105             <artifactId>config-snapshots</artifactId>
106         </dependency>
107         <dependency>
108             <groupId>com.h2database</groupId>
109             <artifactId>h2</artifactId>
110         </dependency>
111         <dependency>
112             <groupId>org.powermock</groupId>
113             <artifactId>powermock-api-mockito2</artifactId>
114             <scope>test</scope>
115         </dependency>
116         <dependency>
117             <groupId>org.springframework.boot</groupId>
118             <artifactId>spring-boot-starter-test</artifactId>
119             <scope>test</scope>
120         </dependency>
121         <dependency>
122             <groupId>org.jetbrains.kotlin</groupId>
123             <artifactId>kotlin-test-junit</artifactId>
124             <scope>test</scope>
125         </dependency>
126         <dependency>
127             <groupId>io.projectreactor</groupId>
128             <artifactId>reactor-test</artifactId>
129             <scope>test</scope>
130         </dependency>
131         <dependency>
132             <groupId>org.yaml</groupId>
133             <artifactId>snakeyaml</artifactId>
134             <scope>test</scope>
135         </dependency>
136         <dependency>
137             <groupId>com.nhaarman.mockitokotlin2</groupId>
138             <artifactId>mockito-kotlin</artifactId>
139             <version>2.1.0</version>
140             <scope>test</scope>
141         </dependency>
142         <dependency>
143             <groupId>com.schibsted.spt.data</groupId>
144             <artifactId>jslt</artifactId>
145             <version>0.1.8</version>
146             <scope>test</scope>
147         </dependency>
148         <dependency>
149             <groupId>ch.qos.logback</groupId>
150             <artifactId>logback-classic</artifactId>
151         </dependency>
152     </dependencies>
153
154     <build>
155         <resources>
156             <resource>
157                 <!--config and resource files -->
158                 <directory>${basedir}/etc</directory>
159                 <targetPath>${basedir}/target/etc</targetPath>
160                 <filtering>true</filtering>
161                 <includes>
162                     <include>**/*</include>
163                 </includes>
164             </resource>
165             <resource>
166                 <!--config and resource files -->
167                 <directory>${basedir}/src/main/resources</directory>
168                 <targetPath>${basedir}/target/src/main/resources</targetPath>
169                 <filtering>true</filtering>
170                 <includes>
171                     <include>**/*</include>
172                 </includes>
173             </resource>
174             <resource>
175                 <directory>src/main/resources</directory>
176                 <includes>
177                     <include>**/*</include>
178                 </includes>
179                 <filtering>true</filtering>
180             </resource>
181         </resources>
182         <plugins>
183             <plugin>
184                 <artifactId>maven-resources-plugin</artifactId>
185                 <version>2.6</version>
186                 <executions>
187                     <execution>
188                         <id>copy-dockerfile</id>
189                         <goals>
190                             <goal>copy-resources</goal>
191                         </goals><!-- here the phase you need -->
192                         <phase>validate</phase>
193                         <configuration>
194                             <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
195                             <resources>
196                                 <resource>
197                                     <directory>src/main/docker</directory>
198                                     <includes>
199                                         <include>*</include>
200                                     </includes>
201                                     <filtering>true</filtering>
202                                 </resource>
203                             </resources>
204                         </configuration>
205                     </execution>
206                 </executions>
207             </plugin>
208             <plugin>
209                 <groupId>org.apache.maven.plugins</groupId>
210                 <artifactId>maven-antrun-plugin</artifactId>
211                 <executions>
212                     <execution>
213                         <id>ant-test</id>
214                         <phase>package</phase>
215                         <configuration>
216                             <tasks>
217                                 <fixcrlf srcdir="${basedir}" eol="unix" includes="**/*.sh, **/*.source"/>
218                             </tasks>
219                         </configuration>
220                         <goals>
221                             <goal>run</goal>
222                         </goals>
223                     </execution>
224                 </executions>
225             </plugin>
226             <plugin>
227                 <artifactId>maven-compiler-plugin</artifactId>
228                 <version>3.1</version>
229                 <configuration>
230                     <source>1.8</source>
231                     <target>1.8</target>
232                 </configuration>
233             </plugin>
234         </plugins>
235     </build>
236 </project>