mmis | 824a75e | 2018-03-02 18:04:48 +0000 | [diff] [blame] | 1 | <!-- |
| 2 | ============LICENSE_START======================================================= |
| 3 | ONAP Policy Engine - Docker files |
| 4 | ================================================================================ |
Pamela Dragosh | b8f3236 | 2019-01-09 12:14:44 +0100 | [diff] [blame] | 5 | Copyright (C) 2017-2019 AT&T Intellectual Property. All rights reserved. |
mmis | 824a75e | 2018-03-02 18:04:48 +0000 | [diff] [blame] | 6 | ================================================================================ |
| 7 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 8 | you may not use this file except in compliance with the License. |
| 9 | You may obtain a copy of the License at |
| 10 | |
| 11 | http://www.apache.org/licenses/LICENSE-2.0 |
| 12 | |
| 13 | Unless required by applicable law or agreed to in writing, software |
| 14 | distributed under the License is distributed on an "AS IS" BASIS, |
| 15 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 16 | See the License for the specific language governing permissions and |
| 17 | limitations under the License. |
| 18 | ============LICENSE_END========================================================= |
| 19 | --> |
| 20 | |
liamfallon | 45f8e42 | 2018-10-31 15:37:59 +0000 | [diff] [blame] | 21 | <project xmlns="http://maven.apache.org/POM/4.0.0" 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"> |
mmis | 824a75e | 2018-03-02 18:04:48 +0000 | [diff] [blame] | 22 | |
Pamela Dragosh | fd307be | 2018-08-28 18:10:51 -0400 | [diff] [blame] | 23 | <modelVersion>4.0.0</modelVersion> |
mmis | 824a75e | 2018-03-02 18:04:48 +0000 | [diff] [blame] | 24 | |
Pamela Dragosh | fd307be | 2018-08-28 18:10:51 -0400 | [diff] [blame] | 25 | <parent> |
| 26 | <groupId>org.onap.policy.drools-pdp</groupId> |
| 27 | <artifactId>packages</artifactId> |
Pamela Dragosh | a15cfa1 | 2019-04-16 08:35:36 -0400 | [diff] [blame] | 28 | <version>1.3.7-SNAPSHOT</version> |
Pamela Dragosh | fd307be | 2018-08-28 18:10:51 -0400 | [diff] [blame] | 29 | </parent> |
mmis | 824a75e | 2018-03-02 18:04:48 +0000 | [diff] [blame] | 30 | |
Pamela Dragosh | fd307be | 2018-08-28 18:10:51 -0400 | [diff] [blame] | 31 | <artifactId>docker</artifactId> |
| 32 | <packaging>pom</packaging> |
| 33 | <name>Policy Drools PDP - Docker build</name> |
| 34 | <description>ONAP Policy Drools PDP Docker Build</description> |
mmis | 824a75e | 2018-03-02 18:04:48 +0000 | [diff] [blame] | 35 | |
Pamela Dragosh | fd307be | 2018-08-28 18:10:51 -0400 | [diff] [blame] | 36 | <properties> |
| 37 | <nexusproxy>https://nexus.onap.org</nexusproxy> |
| 38 | </properties> |
mmis | 824a75e | 2018-03-02 18:04:48 +0000 | [diff] [blame] | 39 | |
Pamela Dragosh | fd307be | 2018-08-28 18:10:51 -0400 | [diff] [blame] | 40 | <build> |
| 41 | <plugins> |
| 42 | <plugin> |
| 43 | <groupId>org.apache.maven.plugins</groupId> |
| 44 | <artifactId>maven-dependency-plugin</artifactId> |
| 45 | <executions> |
| 46 | <execution> |
| 47 | <id>copy-drools-zip</id> |
| 48 | <phase>prepare-package</phase> |
| 49 | <goals> |
| 50 | <goal>copy</goal> |
| 51 | </goals> |
| 52 | <configuration> |
| 53 | <outputDirectory>${project.build.directory}/policy-drools</outputDirectory> |
| 54 | <overWriteReleases>false</overWriteReleases> |
| 55 | <overWriteSnapshots>true</overWriteSnapshots> |
| 56 | <artifactItems> |
| 57 | <artifactItem> |
| 58 | <groupId>org.onap.policy.drools-pdp</groupId> |
| 59 | <artifactId>install-drools</artifactId> |
| 60 | <version>${project.version}</version> |
| 61 | <type>zip</type> |
| 62 | <destFileName>install-drools.zip</destFileName> |
| 63 | </artifactItem> |
| 64 | </artifactItems> |
| 65 | </configuration> |
| 66 | </execution> |
| 67 | </executions> |
| 68 | </plugin> |
| 69 | <plugin> |
| 70 | <artifactId>maven-resources-plugin</artifactId> |
| 71 | <executions> |
| 72 | <execution> |
| 73 | <id>copy-resources</id> |
| 74 | <phase>prepare-package</phase> |
| 75 | <goals> |
| 76 | <goal>copy-resources</goal> |
| 77 | </goals> |
| 78 | <configuration> |
| 79 | <outputDirectory>${project.build.directory}/policy-drools</outputDirectory> |
| 80 | <resources> |
| 81 | <resource> |
| 82 | <directory>src/main/docker</directory> |
| 83 | </resource> |
| 84 | </resources> |
| 85 | </configuration> |
| 86 | </execution> |
| 87 | </executions> |
| 88 | </plugin> |
mmis | 19b1048 | 2018-03-06 17:48:31 +0000 | [diff] [blame] | 89 | |
Pamela Dragosh | fd307be | 2018-08-28 18:10:51 -0400 | [diff] [blame] | 90 | <plugin> |
| 91 | <groupId>org.codehaus.mojo</groupId> |
| 92 | <artifactId>exec-maven-plugin</artifactId> |
| 93 | <executions> |
| 94 | <execution> |
| 95 | <id>get-target-version</id> |
| 96 | <phase>prepare-package</phase> |
| 97 | <goals> |
| 98 | <goal>exec</goal> |
| 99 | </goals> |
| 100 | </execution> |
| 101 | </executions> |
| 102 | <configuration> |
| 103 | <executable>echo</executable> |
| 104 | <workingDirectory>${project.build.directory}</workingDirectory> |
| 105 | <arguments> |
| 106 | <argument>${project.version}</argument> |
| 107 | </arguments> |
| 108 | <outputFile>${project.build.directory}/version</outputFile> |
| 109 | </configuration> |
| 110 | </plugin> |
mmis | 824a75e | 2018-03-02 18:04:48 +0000 | [diff] [blame] | 111 | |
Pamela Dragosh | fd307be | 2018-08-28 18:10:51 -0400 | [diff] [blame] | 112 | </plugins> |
| 113 | </build> |
mmis | 824a75e | 2018-03-02 18:04:48 +0000 | [diff] [blame] | 114 | |
| 115 | </project> |