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