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