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