security check issues
[sdc/dcae-d/dt-be-main.git] / dcaedt_tools / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <project xmlns="http://maven.apache.org/POM/4.0.0" 
3     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">
4     <modelVersion>4.0.0</modelVersion>
5     <groupId>org.onap.sdc.dcae-d.dt-be-main</groupId>
6     <artifactId>dcaedt_tools</artifactId>
7     <name>DCAE-D Tools</name>
8     <parent>
9         <groupId>org.onap.sdc.dcae-d.dt-be-main</groupId>
10         <artifactId>dcae_dt_be_main</artifactId>
11         <version>1.3.0-SNAPSHOT</version>
12     </parent>
13
14     <properties>
15         <!--suppress UnresolvedMavenProperty -->
16         <docker.staging.tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</docker.staging.tag>
17     </properties>
18
19     <profiles>
20         <profile>
21             <id>docker</id>
22             <build>
23                 <plugins>
24                     <plugin>
25                         <artifactId>maven-clean-plugin</artifactId>
26                         <executions>
27                             <execution>
28                                 <id>delete dcae tools jar</id>
29                                 <phase>clean</phase>
30                                 <goals>
31                                     <goal>clean</goal>
32                                 </goals>
33                                 <configuration>
34                                     <filesets>
35                                         <fileset>
36                                             <directory>${project.parent.basedir}/docker/docker_tools/target</directory>
37                                             <followSymlinks>false</followSymlinks>
38                                             <includes>
39                                                 <include>*.jar</include>
40                                             </includes>
41                                         </fileset>
42                                     </filesets>
43                                 </configuration>
44                             </execution>
45                         </executions>
46                     </plugin>
47
48                     <plugin>
49                         <artifactId>maven-resources-plugin</artifactId>
50                         <version>3.0.2</version>
51                         <executions>
52                             <execution>
53                                 <id>copy-dcae-tools-jar</id>
54                                 <phase>install</phase>
55                                 <goals>
56                                     <goal>copy-resources</goal>
57                                 </goals>
58                                 <configuration>
59                                     <outputDirectory>${project.parent.basedir}/docker/docker_tools/target</outputDirectory>
60                                     <resources>
61                                         <resource>
62                                             <directory>${project.basedir}/target</directory>
63                                             <includes>
64                                                 <include>dcaedt_tools-${project.version}-jar-with-dependencies.jar</include>
65                                             </includes>
66                                         </resource>
67                                     </resources>
68                                 </configuration>
69                             </execution>
70                             <execution>
71                                 <id>copy-dcae-config-json</id>
72                                 <phase>validate</phase>
73                                 <goals>
74                                     <goal>copy-resources</goal>
75                                 </goals>
76                                 <configuration>
77                                     <outputDirectory>${project.parent.basedir}/docker/docker_tools/chef-solo/cookbooks/Deploy-DCAE/files/default</outputDirectory>
78                                     <resources>
79                                         <resource>
80                                             <directory>${project.basedir}/src/main/resources/conf</directory>
81                                             <includes>
82                                                 <include>config.json</include>
83                                             </includes>
84                                         </resource>
85                                     </resources>
86                                 </configuration>
87                             </execution>
88                         </executions>
89                     </plugin>
90                     <plugin>
91                         <groupId>io.fabric8</groupId>
92                         <artifactId>docker-maven-plugin</artifactId>
93                         <version>0.23.0</version>
94                         <configuration>
95                             <verbose>true</verbose>
96                             <apiVersion>1.23</apiVersion>
97                             <images>
98                                 <!-- Build tools image -->
99                                 <image>
100                                     <name>onap/dcae-tools</name>
101                                     <alias>dcae-tools</alias>
102                                     <build>
103                                         <cleanup>try</cleanup>
104                                         <dockerFileDir>${project.parent.basedir}/docker/docker_tools</dockerFileDir>
105                                         <tags>
106                                             <tag>${docker.tag}</tag>
107                                             <tag>${docker.latest.tag}</tag>
108                                             <tag>${docker.staging.tag}</tag>
109                                         </tags>
110                                     </build>
111                                 </image>
112                             </images>
113                         </configuration>
114                         <executions>
115                             <execution>
116                                 <id>clean-images</id>
117                                 <phase>pre-clean</phase>
118                                 <goals>
119                                     <goal>remove</goal>
120                                 </goals>
121                                 <configuration>
122                                     <removeAll>true</removeAll>
123                                     <image>onap/dcae-be</image>
124                                 </configuration>
125                             </execution>
126                             <execution>
127                                 <id>generate-images</id>
128                                 <phase>install</phase>
129                                 <goals>
130                                     <goal>build</goal>
131                                 </goals>
132                             </execution>
133                             <execution>
134                                 <id>push-images</id>
135                                 <phase>deploy</phase>
136                                 <goals>
137                                     <goal>push</goal>
138                                 </goals>
139                                 <configuration>
140                                     <image>onap/dcae-tools</image>
141                                 </configuration>
142                             </execution>
143                         </executions>
144                     </plugin>
145                 </plugins>
146             </build>
147         </profile>
148     </profiles>
149     <build>
150         <plugins>
151             <plugin>
152                 <groupId>org.codehaus.mojo</groupId>
153                 <artifactId>exec-maven-plugin</artifactId>
154                 <version>1.2.1</version>
155                 <executions>
156                     <execution>
157                         <goals>
158                             <goal>java</goal>
159                         </goals>
160                     </execution>
161                 </executions>
162                 <configuration>
163                     <mainClass>tools.Main</mainClass>
164                 </configuration>
165             </plugin>
166             <plugin>
167                 <groupId>org.apache.maven.plugins</groupId>
168                 <artifactId>maven-jar-plugin</artifactId>
169                 <version>3.0.2</version>
170                 <configuration>
171                     <archive>
172                         <manifest>
173                             <addClasspath>true</addClasspath>
174                             <classpathPrefix>lib/</classpathPrefix>
175                             <mainClass>tools.Main</mainClass>
176                         </manifest>
177                     </archive>
178                 </configuration>
179             </plugin>
180             <plugin>
181                 <artifactId>maven-assembly-plugin</artifactId>
182                 <version>3.0.0</version>
183                 <configuration>
184                     <descriptorRefs>
185                         <descriptorRef>jar-with-dependencies</descriptorRef>
186                     </descriptorRefs>
187                     <archive>
188                         <manifest>
189                             <addClasspath>true</addClasspath>
190                             <mainClass>tools.Main</mainClass>
191                         </manifest>
192                     </archive>
193                 </configuration>
194                 <executions>
195                     <execution>
196                         <id>make-assembly</id>                        <!-- this is used for inheritance merges -->
197                         <phase>package</phase>                        <!-- bind to the packaging phase -->
198                         <goals>
199                             <goal>single</goal>
200                         </goals>
201                     </execution>
202                 </executions>
203             </plugin>
204         </plugins>
205     </build>
206     <dependencies>
207         <dependency>
208             <groupId>com.google.code.gson</groupId>
209             <artifactId>gson</artifactId>
210             <version>2.8.0</version>
211         </dependency>
212         <dependency>
213             <groupId>org.onap.sdc.dcae-d.dt-be-property</groupId>
214             <artifactId>DCAE-DT-PROPERTY</artifactId>
215             <version>1.3.0-SNAPSHOT</version>
216         </dependency>
217         <dependency>
218             <groupId>org.powermock</groupId>
219             <artifactId>powermock-module-junit4</artifactId>
220             <version>2.0.0-beta.5</version>
221             <scope>test</scope>
222         </dependency>
223         <dependency>
224             <groupId>org.powermock</groupId>
225             <artifactId>powermock-api-mockito2</artifactId>
226             <version>2.0.0-beta.5</version>
227             <scope>test</scope>
228         </dependency>
229         <dependency>
230             <groupId>org.testng</groupId>
231             <artifactId>testng</artifactId>
232             <version>6.9.10</version>
233             <scope>test</scope>
234         </dependency>
235         <dependency>
236             <groupId>org.apache.httpcomponents</groupId>
237             <artifactId>httpclient</artifactId>
238         </dependency>
239         <dependency>
240             <groupId>commons-logging</groupId>
241             <artifactId>commons-logging</artifactId>
242             <version>1.1.1</version>
243         </dependency>
244         <dependency>
245             <groupId>com.fasterxml.jackson.core</groupId>
246             <artifactId>jackson-core</artifactId>
247             <version>2.9.6</version>
248         </dependency>
249         <dependency>
250             <groupId>com.fasterxml.jackson.core</groupId>
251             <artifactId>jackson-annotations</artifactId>
252             <version>2.9.6</version>
253         </dependency>
254         <dependency>
255             <groupId>com.fasterxml.jackson.core</groupId>
256             <artifactId>jackson-databind</artifactId>
257             <version>2.9.6</version>
258         </dependency>
259         <dependency>
260             <groupId>junit</groupId>
261             <artifactId>junit</artifactId>
262             <version>4.12</version>
263         </dependency>
264         <dependency>
265             <groupId>org.springframework</groupId>
266             <artifactId>spring-web</artifactId>
267             <version>5.0.9.RELEASE</version>
268             <scope>compile</scope>
269         </dependency>
270     </dependencies>
271 </project>