Stone, Avi (as206k) | 5032434 | 2018-04-12 15:46:31 +0300 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
Stone, Avi (as206k) | b725d4c | 2018-05-10 18:22:39 +0300 | [diff] [blame] | 2 | <project |
| 3 | xmlns="http://maven.apache.org/POM/4.0.0" |
Stone, Avi (as206k) | 5032434 | 2018-04-12 15:46:31 +0300 | [diff] [blame] | 4 | 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"> |
| 5 | <modelVersion>4.0.0</modelVersion> |
Stone, Avi (as206k) | e649f4e | 2018-05-14 14:14:30 +0300 | [diff] [blame] | 6 | <groupId>org.onap.sdc.dcae-d.dt-be-main</groupId> |
Stone, Avi (as206k) | 5032434 | 2018-04-12 15:46:31 +0300 | [diff] [blame] | 7 | <artifactId>dcae_dt_be</artifactId> |
| 8 | <packaging>war</packaging> |
| 9 | <name>DCAE DT BE</name> |
| 10 | <parent> |
Stone, Avi (as206k) | b725d4c | 2018-05-10 18:22:39 +0300 | [diff] [blame] | 11 | <groupId>org.onap.sdc.dcae-d.dt-be-main</groupId> |
Stone, Avi (as206k) | 5032434 | 2018-04-12 15:46:31 +0300 | [diff] [blame] | 12 | <artifactId>dcae_dt_be_main</artifactId> |
Stone, Avi (as206k) | b725d4c | 2018-05-10 18:22:39 +0300 | [diff] [blame] | 13 | <version>1.2.0-SNAPSHOT</version> |
Stone, Avi (as206k) | 5032434 | 2018-04-12 15:46:31 +0300 | [diff] [blame] | 14 | </parent> |
Areli, Fuss (af732p) | d54cab9 | 2018-05-17 19:53:13 +0300 | [diff] [blame] | 15 | |
| 16 | <properties> |
| 17 | <docker.staging.tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</docker.staging.tag> |
| 18 | </properties> |
| 19 | |
Stone, Avi (as206k) | 5032434 | 2018-04-12 15:46:31 +0300 | [diff] [blame] | 20 | <dependencies> |
| 21 | <dependency> |
| 22 | <groupId>org.springframework.boot</groupId> |
| 23 | <artifactId>spring-boot-starter-web</artifactId> |
| 24 | <exclusions> |
| 25 | <exclusion> |
| 26 | <groupId>org.springframework.boot</groupId> |
| 27 | <artifactId>spring-boot-starter-tomcat</artifactId> |
| 28 | </exclusion> |
| 29 | </exclusions> |
| 30 | </dependency> |
| 31 | <dependency> |
| 32 | <groupId>org.springframework.boot</groupId> |
| 33 | <artifactId>spring-boot-starter-test</artifactId> |
| 34 | <scope>test</scope> |
| 35 | </dependency> |
| 36 | <dependency> |
| 37 | <groupId>org.apache.commons</groupId> |
| 38 | <artifactId>commons-lang3</artifactId> |
| 39 | <version>3.5</version> |
| 40 | </dependency> |
| 41 | <dependency> |
| 42 | <groupId>commons-net</groupId> |
| 43 | <artifactId>commons-net</artifactId> |
| 44 | <version>3.3</version> |
| 45 | </dependency> |
| 46 | <dependency> |
| 47 | <groupId>com.jcraft</groupId> |
| 48 | <artifactId>jsch</artifactId> |
| 49 | <version>0.1.54</version> |
| 50 | </dependency> |
| 51 | <dependency> |
| 52 | <groupId>com.google.code.gson</groupId> |
| 53 | <artifactId>gson</artifactId> |
| 54 | <version>2.8.0</version> |
| 55 | </dependency> |
| 56 | <dependency> |
| 57 | <groupId>org.json</groupId> |
| 58 | <artifactId>json</artifactId> |
| 59 | <version>20160810</version> |
| 60 | </dependency> |
| 61 | <dependency> |
Stone, Avi (as206k) | b725d4c | 2018-05-10 18:22:39 +0300 | [diff] [blame] | 62 | <groupId>org.onap.sdc.dcae-d.dt-be-main</groupId> |
Stone, Avi (as206k) | 5032434 | 2018-04-12 15:46:31 +0300 | [diff] [blame] | 63 | <artifactId>DCAE-DT-Catalog-ASDC</artifactId> |
| 64 | <version>${project.version}</version> |
| 65 | </dependency> |
| 66 | <dependency> |
Stone, Avi (as206k) | b725d4c | 2018-05-10 18:22:39 +0300 | [diff] [blame] | 67 | <groupId>org.onap.sdc.dcae-d.dt-be-main</groupId> |
Stone, Avi (as206k) | 5032434 | 2018-04-12 15:46:31 +0300 | [diff] [blame] | 68 | <artifactId>DCAE-DT-Catalog-API</artifactId> |
| 69 | <version>${project.version}</version> |
| 70 | </dependency> |
| 71 | <dependency> |
Stone, Avi (as206k) | b725d4c | 2018-05-10 18:22:39 +0300 | [diff] [blame] | 72 | <groupId>org.onap.sdc.dcae-d.dt-be-main</groupId> |
Stone, Avi (as206k) | 5032434 | 2018-04-12 15:46:31 +0300 | [diff] [blame] | 73 | <artifactId>DCAE-DT-Catalog-Commons</artifactId> |
| 74 | <version>${project.version}</version> |
| 75 | </dependency> |
| 76 | <dependency> |
Stone, Avi (as206k) | b725d4c | 2018-05-10 18:22:39 +0300 | [diff] [blame] | 77 | <groupId>org.onap.sdc.dcae-d.dt-be-main</groupId> |
Stone, Avi (as206k) | 5032434 | 2018-04-12 15:46:31 +0300 | [diff] [blame] | 78 | <artifactId>DCAE-DT-Catalog-DB</artifactId> |
| 79 | <version>${project.version}</version> |
| 80 | </dependency> |
| 81 | <dependency> |
Stone, Avi (as206k) | b725d4c | 2018-05-10 18:22:39 +0300 | [diff] [blame] | 82 | <groupId>org.onap.sdc.dcae-d.dt-be-main</groupId> |
Stone, Avi (as206k) | 5032434 | 2018-04-12 15:46:31 +0300 | [diff] [blame] | 83 | <artifactId>DCAE-DT-Catalog-Service</artifactId> |
| 84 | <version>${project.version}</version> |
| 85 | </dependency> |
| 86 | <dependency> |
| 87 | <groupId>org.powermock</groupId> |
| 88 | <artifactId>powermock-module-junit4</artifactId> |
| 89 | <version>1.6.4</version> |
| 90 | <scope>test</scope> |
| 91 | </dependency> |
| 92 | <dependency> |
| 93 | <groupId>org.powermock</groupId> |
| 94 | <artifactId>powermock-api-mockito</artifactId> |
| 95 | <version>1.6.4</version> |
| 96 | <scope>test</scope> |
| 97 | </dependency> |
| 98 | <dependency> |
| 99 | <groupId>org.testng</groupId> |
| 100 | <artifactId>testng</artifactId> |
| 101 | <version>6.9.10</version> |
| 102 | <scope>test</scope> |
| 103 | </dependency> |
Stone, Avi (as206k) | 5032434 | 2018-04-12 15:46:31 +0300 | [diff] [blame] | 104 | <dependency> |
| 105 | <groupId>com.googlecode.json-simple</groupId> |
| 106 | <artifactId>json-simple</artifactId> |
| 107 | <version>1.1.1</version> |
| 108 | </dependency> |
| 109 | <dependency> |
| 110 | <groupId>io.springfox</groupId> |
| 111 | <artifactId>springfox-swagger2</artifactId> |
| 112 | <version>2.6.1</version> |
| 113 | <scope>compile</scope> |
| 114 | </dependency> |
| 115 | <dependency> |
| 116 | <groupId>io.springfox</groupId> |
| 117 | <artifactId>springfox-swagger-ui</artifactId> |
| 118 | <version>2.6.1</version> |
| 119 | <scope>compile</scope> |
| 120 | </dependency> |
Areli, Fuss (af732p) | d54cab9 | 2018-05-17 19:53:13 +0300 | [diff] [blame] | 121 | <dependency> |
| 122 | <groupId>javax.servlet</groupId> |
| 123 | <artifactId>javax.servlet-api</artifactId> |
| 124 | <version>4.0.0</version> |
| 125 | <scope>provided</scope> |
| 126 | </dependency> |
Stone, Avi (as206k) | 5032434 | 2018-04-12 15:46:31 +0300 | [diff] [blame] | 127 | </dependencies> |
| 128 | <profiles> |
| 129 | <profile> |
| 130 | <id>local</id> |
| 131 | <activation> |
| 132 | <activeByDefault>false</activeByDefault> |
| 133 | </activation> |
| 134 | <dependencies> |
| 135 | <dependency> |
| 136 | <groupId>org.springframework.boot</groupId> |
| 137 | <artifactId>spring-boot-starter-jetty</artifactId> |
| 138 | <version>1.5.2.RELEASE</version> |
| 139 | <exclusions> |
| 140 | <exclusion> |
| 141 | <groupId>org.eclipse.jetty.websocket</groupId> |
| 142 | <artifactId>*</artifactId> |
| 143 | </exclusion> |
| 144 | </exclusions> |
| 145 | </dependency> |
| 146 | <dependency> |
| 147 | <groupId>javax.servlet</groupId> |
| 148 | <artifactId>javax.servlet-api</artifactId> |
| 149 | <version>4.0.0</version> |
| 150 | <scope>provided</scope> |
| 151 | </dependency> |
| 152 | </dependencies> |
| 153 | </profile> |
Areli, Fuss (af732p) | d54cab9 | 2018-05-17 19:53:13 +0300 | [diff] [blame] | 154 | <!--<profile>--> |
| 155 | <!--<id>server</id>--> |
| 156 | <!--<activation>--> |
| 157 | <!--<activeByDefault>true</activeByDefault>--> |
| 158 | <!--</activation>--> |
| 159 | <!--<dependencies>--> |
| 160 | <!--<dependency>--> |
| 161 | <!--<groupId>javax.servlet</groupId>--> |
| 162 | <!--<artifactId>javax.servlet-api</artifactId>--> |
| 163 | <!--<version>4.0.0</version>--> |
| 164 | <!--</dependency>--> |
| 165 | <!--</dependencies>--> |
| 166 | <!--</profile>--> |
| 167 | |
Stone, Avi (as206k) | 5032434 | 2018-04-12 15:46:31 +0300 | [diff] [blame] | 168 | <profile> |
Areli, Fuss (af732p) | d54cab9 | 2018-05-17 19:53:13 +0300 | [diff] [blame] | 169 | <id>docker</id> |
Stone, Avi (as206k) | c936da8 | 2018-05-17 13:04:39 +0300 | [diff] [blame] | 170 | <build> |
Areli, Fuss (af732p) | d54cab9 | 2018-05-17 19:53:13 +0300 | [diff] [blame] | 171 | <plugins> |
Areli, Fuss (af732p) | a808ee1 | 2018-05-17 20:15:19 +0300 | [diff] [blame] | 172 | <plugin> |
| 173 | <artifactId>maven-clean-plugin</artifactId> |
| 174 | <executions> |
| 175 | <execution> |
| 176 | <id>delete dcae be war</id> |
| 177 | <phase>clean</phase> |
| 178 | <goals> |
| 179 | <goal>clean</goal> |
| 180 | </goals> |
| 181 | <configuration> |
| 182 | <filesets> |
| 183 | <fileset> |
| 184 | <directory>${project.parent.basedir}/docker/docker_be/target</directory> |
| 185 | <followSymlinks>false</followSymlinks> |
| 186 | <includes> |
| 187 | <include>*.war</include> |
| 188 | </includes> |
| 189 | </fileset> |
| 190 | </filesets> |
| 191 | </configuration> |
| 192 | </execution> |
| 193 | </executions> |
| 194 | </plugin> |
Areli, Fuss (af732p) | d54cab9 | 2018-05-17 19:53:13 +0300 | [diff] [blame] | 195 | <plugin> |
Stone, Avi (as206k) | c936da8 | 2018-05-17 13:04:39 +0300 | [diff] [blame] | 196 | <artifactId>maven-resources-plugin</artifactId> |
| 197 | <version>3.0.2</version> |
| 198 | <executions> |
Areli, Fuss (af732p) | d54cab9 | 2018-05-17 19:53:13 +0300 | [diff] [blame] | 199 | <execution> |
| 200 | <id>copy-dcae-be-war</id> |
Areli, Fuss (af732p) | a808ee1 | 2018-05-17 20:15:19 +0300 | [diff] [blame] | 201 | <phase>install</phase> |
Areli, Fuss (af732p) | d54cab9 | 2018-05-17 19:53:13 +0300 | [diff] [blame] | 202 | <goals> |
| 203 | <goal>copy-resources</goal> |
| 204 | </goals> |
| 205 | <configuration> |
| 206 | <outputDirectory>${project.parent.basedir}/docker/docker_be/target</outputDirectory> |
| 207 | <resources> |
| 208 | <resource> |
| 209 | <directory>${project.basedir}/target</directory> |
| 210 | <includes> |
| 211 | <include>dcae.war</include> |
| 212 | </includes> |
| 213 | </resource> |
| 214 | </resources> |
| 215 | </configuration> |
| 216 | </execution> |
Stone, Avi (as206k) | c936da8 | 2018-05-17 13:04:39 +0300 | [diff] [blame] | 217 | </executions> |
Areli, Fuss (af732p) | d54cab9 | 2018-05-17 19:53:13 +0300 | [diff] [blame] | 218 | </plugin> |
| 219 | <plugin> |
Stone, Avi (as206k) | e59dd95 | 2018-05-17 14:57:16 +0300 | [diff] [blame] | 220 | <groupId>io.fabric8</groupId> |
| 221 | <artifactId>docker-maven-plugin</artifactId> |
| 222 | <version>0.23.0</version> |
| 223 | <configuration> |
Areli, Fuss (af732p) | d54cab9 | 2018-05-17 19:53:13 +0300 | [diff] [blame] | 224 | <verbose>true</verbose> |
| 225 | <apiVersion>1.23</apiVersion> |
| 226 | <registry>nexus3.onap.org:10001</registry> |
| 227 | <authConfig> |
| 228 | <pull> |
| 229 | <username>docker</username> |
| 230 | <password>docker</password> |
| 231 | </pull> |
| 232 | </authConfig> |
| 233 | <images> |
| 234 | <!-- Build backend image --> |
| 235 | <image> |
| 236 | <name>onap/dcae-be</name> |
| 237 | <alias>dcae-be</alias> |
| 238 | <build> |
| 239 | <cleanup>try</cleanup> |
| 240 | <dockerFileDir>${project.parent.basedir}/docker/docker_be</dockerFileDir> |
| 241 | <tags> |
| 242 | <tag>${docker.tag}</tag> |
| 243 | <tag>${docker.latest.tag}</tag> |
| 244 | <tag>${docker.staging.tag}</tag> |
| 245 | </tags> |
| 246 | </build> |
| 247 | </image> |
| 248 | </images> |
Stone, Avi (as206k) | e59dd95 | 2018-05-17 14:57:16 +0300 | [diff] [blame] | 249 | </configuration> |
| 250 | <executions> |
Areli, Fuss (af732p) | d54cab9 | 2018-05-17 19:53:13 +0300 | [diff] [blame] | 251 | <execution> |
| 252 | <id>clean-images</id> |
| 253 | <phase>pre-clean</phase> |
| 254 | <goals> |
| 255 | <goal>remove</goal> |
| 256 | </goals> |
| 257 | <configuration> |
| 258 | <removeAll>true</removeAll> |
| 259 | <image>onap/dcae-be</image> |
| 260 | </configuration> |
| 261 | </execution> |
| 262 | <execution> |
| 263 | <id>generate-images</id> |
Areli, Fuss (af732p) | a808ee1 | 2018-05-17 20:15:19 +0300 | [diff] [blame] | 264 | <phase>install</phase> |
Areli, Fuss (af732p) | d54cab9 | 2018-05-17 19:53:13 +0300 | [diff] [blame] | 265 | <goals> |
| 266 | <goal>build</goal> |
| 267 | </goals> |
| 268 | </execution> |
| 269 | <execution> |
| 270 | <id>push-images</id> |
| 271 | <phase>deploy</phase> |
| 272 | <goals> |
| 273 | <goal>push</goal> |
| 274 | </goals> |
| 275 | <configuration> |
| 276 | <image>onap/dcae-be</image> |
| 277 | </configuration> |
| 278 | </execution> |
Stone, Avi (as206k) | e59dd95 | 2018-05-17 14:57:16 +0300 | [diff] [blame] | 279 | </executions> |
Areli, Fuss (af732p) | d54cab9 | 2018-05-17 19:53:13 +0300 | [diff] [blame] | 280 | </plugin> |
Stone, Avi (as206k) | c936da8 | 2018-05-17 13:04:39 +0300 | [diff] [blame] | 281 | </plugins> |
| 282 | </build> |
Areli, Fuss (af732p) | d54cab9 | 2018-05-17 19:53:13 +0300 | [diff] [blame] | 283 | </profile> |
Stone, Avi (as206k) | c936da8 | 2018-05-17 13:04:39 +0300 | [diff] [blame] | 284 | |
Stone, Avi (as206k) | 5032434 | 2018-04-12 15:46:31 +0300 | [diff] [blame] | 285 | </profiles> |
| 286 | <build> |
| 287 | <finalName>dcae</finalName> |
| 288 | <plugins> |
| 289 | <plugin> |
| 290 | <groupId>org.apache.maven.plugins</groupId> |
| 291 | <artifactId>maven-surefire-plugin</artifactId> |
| 292 | </plugin> |
| 293 | <plugin> |
| 294 | <groupId>org.springframework.boot</groupId> |
| 295 | <artifactId>spring-boot-maven-plugin</artifactId> |
| 296 | <configuration> |
| 297 | <webXml>src/main/webapp/WEB-INF/web.xml</webXml> |
| 298 | <webResources> |
| 299 | <resource> |
| 300 | <!-- this is relative to the pom.xml directory --> |
| 301 | <directory>src/main/webapp/</directory> |
| 302 | </resource> |
| 303 | </webResources> |
| 304 | </configuration> |
Stone, Avi (as206k) | 5032434 | 2018-04-12 15:46:31 +0300 | [diff] [blame] | 305 | </plugin> |
| 306 | <plugin> |
| 307 | <groupId>org.apache.maven.plugins</groupId> |
| 308 | <artifactId>maven-war-plugin</artifactId> |
| 309 | <configuration> |
| 310 | <archive> |
| 311 | <manifestEntries> |
| 312 | <Specification-Version>${project.version}</Specification-Version> |
| 313 | </manifestEntries> |
| 314 | </archive> |
| 315 | </configuration> |
| 316 | </plugin> |
| 317 | </plugins> |
| 318 | </build> |
| 319 | </project> |