blob: 2109bc91f1bed4bc7970f6a9d65e75253b48ad34 [file] [log] [blame]
Stone, Avi (as206k)50324342018-04-12 15:46:31 +03001<?xml version="1.0" encoding="UTF-8"?>
Manor, Yanir (ym903w)47db2dd2018-09-26 13:07:27 +03002<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">
Stone, Avi (as206k)50324342018-04-12 15:46:31 +03004 <modelVersion>4.0.0</modelVersion>
Stone, Avi (as206k)1f5c15a2018-05-13 13:08:20 +03005 <groupId>org.onap.sdc.dcae-d.dt-be-main</groupId>
Stone, Avi (as206k)50324342018-04-12 15:46:31 +03006 <artifactId>dcaedt_tools</artifactId>
7 <name>DCAE-D Tools</name>
8 <parent>
Stone, Avi (as206k)b725d4c2018-05-10 18:22:39 +03009 <groupId>org.onap.sdc.dcae-d.dt-be-main</groupId>
Stone, Avi (as206k)50324342018-04-12 15:46:31 +030010 <artifactId>dcae_dt_be_main</artifactId>
Manor, Yanir (ym903w)47db2dd2018-09-26 13:07:27 +030011 <version>1.3.0-SNAPSHOT</version>
Stone, Avi (as206k)50324342018-04-12 15:46:31 +030012 </parent>
Areli, Fuss (af732p)d54cab92018-05-17 19:53:13 +030013
14 <properties>
Eran (ev672n), Vosk25aa9092018-10-15 10:52:26 +030015 <!--suppress UnresolvedMavenProperty -->
Areli, Fuss (af732p)d54cab92018-05-17 19:53:13 +030016 <docker.staging.tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</docker.staging.tag>
17 </properties>
18
Stone, Avi (as206k)c936da82018-05-17 13:04:39 +030019 <profiles>
Areli, Fuss (af732p)a808ee12018-05-17 20:15:19 +030020 <profile>
21 <id>docker</id>
22 <build>
23 <plugins>
24 <plugin>
Manor, Yanir (ym903w)47db2dd2018-09-26 13:07:27 +030025 <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>
Areli, Fuss (af732p)a808ee12018-05-17 20:15:19 +030046 </plugin>
47
48 <plugin>
Manor, Yanir (ym903w)47db2dd2018-09-26 13:07:27 +030049 <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>
Areli, Fuss (af732p)a808ee12018-05-17 20:15:19 +0300146 </build>
147 </profile>
Stone, Avi (as206k)c936da82018-05-17 13:04:39 +0300148 </profiles>
Stone, Avi (as206k)50324342018-04-12 15:46:31 +0300149 <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>
Manor, Yanir (ym903w)47db2dd2018-09-26 13:07:27 +0300196 <id>make-assembly</id> <!-- this is used for inheritance merges -->
197 <phase>package</phase> <!-- bind to the packaging phase -->
Stone, Avi (as206k)50324342018-04-12 15:46:31 +0300198 <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>
Stone, Avi (as206k)b725d4c2018-05-10 18:22:39 +0300213 <groupId>org.onap.sdc.dcae-d.dt-be-property</groupId>
Stone, Avi (as206k)50324342018-04-12 15:46:31 +0300214 <artifactId>DCAE-DT-PROPERTY</artifactId>
Michael Lando1a019f02018-09-27 15:18:37 +0300215 <version>1.3.0-SNAPSHOT</version>
Stone, Avi (as206k)50324342018-04-12 15:46:31 +0300216 </dependency>
217 <dependency>
218 <groupId>org.powermock</groupId>
219 <artifactId>powermock-module-junit4</artifactId>
220 <version>1.6.4</version>
221 <scope>test</scope>
222 </dependency>
223 <dependency>
224 <groupId>org.powermock</groupId>
225 <artifactId>powermock-api-mockito</artifactId>
226 <version>1.6.4</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>
Eran (ev672n), Vosk8571b0c2018-10-10 13:23:54 +0300247 <version>2.9.6</version>
Stone, Avi (as206k)50324342018-04-12 15:46:31 +0300248 </dependency>
249 <dependency>
250 <groupId>com.fasterxml.jackson.core</groupId>
251 <artifactId>jackson-annotations</artifactId>
Eran (ev672n), Vosk25aa9092018-10-15 10:52:26 +0300252 <version>2.9.6</version>
Stone, Avi (as206k)50324342018-04-12 15:46:31 +0300253 </dependency>
254 <dependency>
255 <groupId>com.fasterxml.jackson.core</groupId>
256 <artifactId>jackson-databind</artifactId>
Eran (ev672n), Vosk8571b0c2018-10-10 13:23:54 +0300257 <version>2.9.6</version>
Stone, Avi (as206k)50324342018-04-12 15:46:31 +0300258 </dependency>
259 <dependency>
260 <groupId>junit</groupId>
261 <artifactId>junit</artifactId>
262 <version>4.12</version>
263 </dependency>
264 </dependencies>
Stone, Avi (as206k)b725d4c2018-05-10 18:22:39 +0300265</project>