Fixed validation of resource-assignment-params.config-assign
[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     <parent>
23         <groupId>org.onap.ccsdk.cds.blueprintsprocessor</groupId>
24         <artifactId>parent</artifactId>
25         <version>0.6.0-SNAPSHOT</version>
26         <relativePath>../parent</relativePath>
27     </parent>
28     <artifactId>application</artifactId>
29     <packaging>jar</packaging>
30     <name>Blueprints Processor Application</name>
31     <description>Blueprints Processor Application</description>
32
33     <dependencies>
34
35         <dependency>
36             <groupId>org.onap.ccsdk.cds.controllerblueprints</groupId>
37             <artifactId>blueprint-core</artifactId>
38             <exclusions>
39                 <exclusion>
40                     <groupId>org.springframework.boot</groupId>
41                     <artifactId>spring-boot-starter-logging</artifactId>
42                 </exclusion>
43             </exclusions>
44         </dependency>
45         <dependency>
46             <groupId>org.springframework.boot</groupId>
47             <artifactId>spring-boot-starter-security</artifactId>
48             <exclusions>
49                 <exclusion>
50                     <groupId>org.springframework.boot</groupId>
51                     <artifactId>spring-boot-starter-logging</artifactId>
52                 </exclusion>
53             </exclusions>
54         </dependency>
55
56         <!-- North Bound -->
57         <dependency>
58             <groupId>org.onap.ccsdk.cds.blueprintsprocessor</groupId>
59             <artifactId>designer-api</artifactId>
60         </dependency>
61         <dependency>
62             <groupId>org.onap.ccsdk.cds.blueprintsprocessor</groupId>
63             <artifactId>resource-api</artifactId>
64         </dependency>
65         <dependency>
66             <groupId>org.onap.ccsdk.cds.blueprintsprocessor</groupId>
67             <artifactId>selfservice-api</artifactId>
68         </dependency>
69         <dependency>
70             <groupId>org.onap.ccsdk.cds.blueprintsprocessor</groupId>
71             <artifactId>configs-api</artifactId>
72         </dependency>
73
74         <!-- Functions -->
75         <dependency>
76             <groupId>org.onap.ccsdk.cds.blueprintsprocessor.functions</groupId>
77             <artifactId>python-executor</artifactId>
78         </dependency>
79         <dependency>
80             <groupId>org.onap.ccsdk.cds.blueprintsprocessor.functions</groupId>
81             <artifactId>ansible-awx-executor</artifactId>
82         </dependency>
83         <dependency>
84             <groupId>org.onap.ccsdk.cds.blueprintsprocessor.functions</groupId>
85             <artifactId>netconf-executor</artifactId>
86         </dependency>
87         <dependency>
88             <groupId>org.onap.ccsdk.cds.blueprintsprocessor.functions</groupId>
89             <artifactId>restconf-executor</artifactId>
90         </dependency>
91         <dependency>
92             <groupId>org.onap.ccsdk.cds.blueprintsprocessor.functions</groupId>
93             <artifactId>cli-executor</artifactId>
94         </dependency>
95         <dependency>
96             <groupId>org.onap.ccsdk.cds.blueprintsprocessor.functions</groupId>
97             <artifactId>config-snapshots</artifactId>
98         </dependency>
99         <dependency>
100             <groupId>com.h2database</groupId>
101             <artifactId>h2</artifactId>
102         </dependency>
103         <dependency>
104             <groupId>org.powermock</groupId>
105             <artifactId>powermock-api-mockito2</artifactId>
106             <scope>test</scope>
107         </dependency>
108         <dependency>
109             <groupId>org.springframework.boot</groupId>
110             <artifactId>spring-boot-starter-test</artifactId>
111             <scope>test</scope>
112         </dependency>
113         <dependency>
114             <groupId>org.jetbrains.kotlin</groupId>
115             <artifactId>kotlin-test-junit</artifactId>
116             <scope>test</scope>
117         </dependency>
118         <dependency>
119             <groupId>io.projectreactor</groupId>
120             <artifactId>reactor-test</artifactId>
121             <scope>test</scope>
122         </dependency>
123         <dependency>
124             <groupId>org.yaml</groupId>
125             <artifactId>snakeyaml</artifactId>
126             <scope>test</scope>
127         </dependency>
128         <dependency>
129             <groupId>com.nhaarman.mockitokotlin2</groupId>
130             <artifactId>mockito-kotlin</artifactId>
131             <version>2.1.0</version>
132             <scope>test</scope>
133         </dependency>
134         <dependency>
135             <groupId>com.schibsted.spt.data</groupId>
136             <artifactId>jslt</artifactId>
137             <version>0.1.8</version>
138             <scope>test</scope>
139         </dependency>
140         <dependency>
141             <groupId>ch.qos.logback</groupId>
142             <artifactId>logback-classic</artifactId>
143         </dependency>
144     </dependencies>
145     <build>
146         <resources>
147             <resource>
148                 <!--config and resource files -->
149                 <directory>${basedir}/etc</directory>
150                 <targetPath>${basedir}/target/etc</targetPath>
151                 <filtering>true</filtering>
152                 <includes>
153                     <include>**/*</include>
154                 </includes>
155             </resource>
156             <resource>
157                 <!--config and resource files -->
158                 <directory>${basedir}/src/main/resources</directory>
159                 <targetPath>${basedir}/target/src/main/resources</targetPath>
160                 <filtering>true</filtering>
161                 <includes>
162                     <include>**/*</include>
163                 </includes>
164             </resource>
165             <resource>
166                 <directory>src/main/resources</directory>
167                 <includes>
168                     <include>**/*</include>
169                 </includes>
170                 <filtering>true</filtering>
171             </resource>
172         </resources>
173         <plugins>
174             <plugin>
175                 <artifactId>maven-resources-plugin</artifactId>
176                 <version>2.6</version>
177                 <executions>
178                     <execution>
179                         <id>copy-dockerfile</id>
180                         <goals>
181                             <goal>copy-resources</goal>
182                         </goals><!-- here the phase you need -->
183                         <phase>validate</phase>
184                         <configuration>
185                             <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
186                             <resources>
187                                 <resource>
188                                     <directory>src/main/docker</directory>
189                                     <includes>
190                                         <include>*</include>
191                                     </includes>
192                                     <filtering>true</filtering>
193                                 </resource>
194                             </resources>
195                         </configuration>
196                     </execution>
197                 </executions>
198             </plugin>
199             <plugin>
200                 <groupId>org.apache.maven.plugins</groupId>
201                 <artifactId>maven-antrun-plugin</artifactId>
202                 <executions>
203                     <execution>
204                         <id>ant-test</id>
205                         <phase>package</phase>
206                         <configuration>
207                             <tasks>
208                                 <fixcrlf srcdir="${basedir}" eol="unix" includes="**/*.sh, **/*.source"/>
209                             </tasks>
210                         </configuration>
211                         <goals>
212                             <goal>run</goal>
213                         </goals>
214                     </execution>
215                 </executions>
216             </plugin>
217             <plugin>
218                 <artifactId>maven-compiler-plugin</artifactId>
219                 <version>3.1</version>
220                 <configuration>
221                     <source>1.8</source>
222                     <target>1.8</target>
223                 </configuration>
224             </plugin>
225         </plugins>
226     </build>
227 </project>