4e487304c6a52ab5da96d4de9bf4cb0d60279ee6
[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.5.2-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
70         <!-- Functions -->
71         <dependency>
72             <groupId>org.onap.ccsdk.cds.blueprintsprocessor.functions</groupId>
73             <artifactId>python-executor</artifactId>
74         </dependency>
75         <dependency>
76             <groupId>org.onap.ccsdk.cds.blueprintsprocessor.functions</groupId>
77             <artifactId>ansible-awx-executor</artifactId>
78         </dependency>
79         <dependency>
80             <groupId>org.onap.ccsdk.cds.blueprintsprocessor.functions</groupId>
81             <artifactId>netconf-executor</artifactId>
82         </dependency>
83         <dependency>
84             <groupId>org.onap.ccsdk.cds.blueprintsprocessor.functions</groupId>
85             <artifactId>restconf-executor</artifactId>
86         </dependency>
87         <dependency>
88             <groupId>org.onap.ccsdk.cds.blueprintsprocessor.functions</groupId>
89             <artifactId>cli-executor</artifactId>
90         </dependency>
91
92         <dependency>
93             <groupId>com.h2database</groupId>
94             <artifactId>h2</artifactId>
95         </dependency>
96         <dependency>
97             <groupId>org.powermock</groupId>
98             <artifactId>powermock-api-mockito2</artifactId>
99             <scope>test</scope>
100         </dependency>
101         <dependency>
102             <groupId>org.springframework.boot</groupId>
103             <artifactId>spring-boot-starter-test</artifactId>
104             <scope>test</scope>
105         </dependency>
106         <dependency>
107             <groupId>org.jetbrains.kotlin</groupId>
108             <artifactId>kotlin-test-junit</artifactId>
109             <scope>test</scope>
110         </dependency>
111         <dependency>
112             <groupId>io.projectreactor</groupId>
113             <artifactId>reactor-test</artifactId>
114             <scope>test</scope>
115         </dependency>
116     </dependencies>
117     <build>
118         <resources>
119             <resource>
120                 <!--config and resource files -->
121                 <directory>${basedir}/etc</directory>
122                 <targetPath>${basedir}/target/etc</targetPath>
123                 <filtering>true</filtering>
124                 <includes>
125                     <include>**/*</include>
126                 </includes>
127             </resource>
128             <resource>
129                 <!--config and resource files -->
130                 <directory>${basedir}/src/main/resources</directory>
131                 <targetPath>${basedir}/target/src/main/resources</targetPath>
132                 <filtering>true</filtering>
133                 <includes>
134                     <include>**/*</include>
135                 </includes>
136             </resource>
137             <resource>
138                 <directory>src/main/resources</directory>
139                 <includes>
140                     <include>**/*</include>
141                 </includes>
142                 <filtering>true</filtering>
143             </resource>
144         </resources>
145         <plugins>
146             <plugin>
147                 <artifactId>maven-resources-plugin</artifactId>
148                 <version>2.6</version>
149                 <executions>
150                     <execution>
151                         <id>copy-dockerfile</id>
152                         <goals>
153                             <goal>copy-resources</goal>
154                         </goals><!-- here the phase you need -->
155                         <phase>validate</phase>
156                         <configuration>
157                             <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
158                             <resources>
159                                 <resource>
160                                     <directory>src/main/docker</directory>
161                                     <includes>
162                                         <include>*</include>
163                                     </includes>
164                                     <filtering>true</filtering>
165                                 </resource>
166                             </resources>
167                         </configuration>
168                     </execution>
169                 </executions>
170             </plugin>
171             <plugin>
172                 <groupId>org.apache.maven.plugins</groupId>
173                 <artifactId>maven-antrun-plugin</artifactId>
174                 <executions>
175                     <execution>
176                         <id>ant-test</id>
177                         <phase>package</phase>
178                         <configuration>
179                             <tasks>
180                                 <fixcrlf srcdir="${basedir}" eol="unix" includes="**/*.sh, **/*.source"/>
181                             </tasks>
182                         </configuration>
183                         <goals>
184                             <goal>run</goal>
185                         </goals>
186                     </execution>
187                 </executions>
188             </plugin>
189             <plugin>
190                 <artifactId>maven-compiler-plugin</artifactId>
191                 <version>3.1</version>
192                 <configuration>
193                     <source>1.8</source>
194                     <target>1.8</target>
195                 </configuration>
196             </plugin>
197         </plugins>
198     </build>
199 </project>