mmis | 824a75e | 2018-03-02 18:04:48 +0000 | [diff] [blame] | 1 | <!-- |
| 2 | ============LICENSE_START======================================================= |
| 3 | ONAP Policy Engine - Docker files |
| 4 | ================================================================================ |
| 5 | Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. |
| 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 | |
| 21 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 22 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 23 | |
| 24 | <modelVersion>4.0.0</modelVersion> |
| 25 | |
| 26 | <parent> |
| 27 | <groupId>org.onap.policy.drools-pdp</groupId> |
| 28 | <artifactId>packages</artifactId> |
| 29 | <version>1.2.0-SNAPSHOT</version> |
| 30 | </parent> |
| 31 | |
mmis | 824a75e | 2018-03-02 18:04:48 +0000 | [diff] [blame] | 32 | <artifactId>docker</artifactId> |
mmis | 824a75e | 2018-03-02 18:04:48 +0000 | [diff] [blame] | 33 | <packaging>pom</packaging> |
| 34 | <name>Policy Drools PDP - Docker build</name> |
| 35 | <description>ONAP Policy Drools PDP Docker Build</description> |
| 36 | |
| 37 | <properties> |
| 38 | <nexusproxy>https://nexus.onap.org</nexusproxy> |
| 39 | </properties> |
| 40 | |
mmis | 824a75e | 2018-03-02 18:04:48 +0000 | [diff] [blame] | 41 | <build> |
| 42 | <plugins> |
| 43 | <plugin> |
| 44 | <groupId>org.apache.maven.plugins</groupId> |
| 45 | <artifactId>maven-dependency-plugin</artifactId> |
| 46 | <executions> |
mmis | 19b1048 | 2018-03-06 17:48:31 +0000 | [diff] [blame] | 47 | <execution> |
| 48 | <id>copy-drools-zip</id> |
| 49 | <phase>prepare-package</phase> |
| 50 | <goals> |
| 51 | <goal>copy</goal> |
| 52 | </goals> |
| 53 | <configuration> |
| 54 | <outputDirectory>${project.build.directory}/policy-drools</outputDirectory> |
| 55 | <overWriteReleases>false</overWriteReleases> |
| 56 | <overWriteSnapshots>true</overWriteSnapshots> |
| 57 | <artifactItems> |
| 58 | <artifactItem> |
| 59 | <groupId>org.onap.policy.drools-pdp</groupId> |
| 60 | <artifactId>install-drools</artifactId> |
| 61 | <version>${project.version}</version> |
| 62 | <type>zip</type> |
| 63 | <destFileName>install-drools.zip</destFileName> |
| 64 | </artifactItem> |
| 65 | </artifactItems> |
| 66 | </configuration> |
| 67 | </execution> |
mmis | 824a75e | 2018-03-02 18:04:48 +0000 | [diff] [blame] | 68 | <execution> |
| 69 | <id>copy-apps-zip</id> |
| 70 | <phase>prepare-package</phase> |
| 71 | <goals> |
| 72 | <goal>copy</goal> |
| 73 | </goals> |
| 74 | <configuration> |
| 75 | <outputDirectory>${project.build.directory}/policy-drools</outputDirectory> |
| 76 | <overWriteReleases>false</overWriteReleases> |
| 77 | <overWriteSnapshots>true</overWriteSnapshots> |
| 78 | <artifactItems> |
| 79 | <artifactItem> |
| 80 | <groupId>org.onap.policy.drools-applications.controlloop.packages</groupId> |
| 81 | <artifactId>apps</artifactId> |
| 82 | <version>${project.version}</version> |
| 83 | <type>zip</type> |
| 84 | <destFileName>apps.zip</destFileName> |
| 85 | </artifactItem> |
| 86 | </artifactItems> |
| 87 | </configuration> |
| 88 | </execution> |
| 89 | </executions> |
| 90 | </plugin> |
mmis | 19b1048 | 2018-03-06 17:48:31 +0000 | [diff] [blame] | 91 | <plugin> |
| 92 | <artifactId>maven-resources-plugin</artifactId> |
| 93 | <version>3.0.2</version> |
| 94 | <executions> |
| 95 | <execution> |
| 96 | <id>copy-resources</id> |
| 97 | <phase>prepare-package</phase> |
| 98 | <goals> |
| 99 | <goal>copy-resources</goal> |
| 100 | </goals> |
| 101 | <configuration> |
| 102 | <outputDirectory>${project.build.directory}/policy-drools</outputDirectory> |
| 103 | <resources> |
| 104 | <resource> |
| 105 | <directory>src/main/docker</directory> |
mmis | 19b1048 | 2018-03-06 17:48:31 +0000 | [diff] [blame] | 106 | </resource> |
| 107 | </resources> |
| 108 | </configuration> |
| 109 | </execution> |
| 110 | </executions> |
| 111 | </plugin> |
| 112 | |
mmis | 824a75e | 2018-03-02 18:04:48 +0000 | [diff] [blame] | 113 | <plugin> |
| 114 | <groupId>org.codehaus.mojo</groupId> |
| 115 | <artifactId>exec-maven-plugin</artifactId> |
| 116 | <version>1.6.0</version> |
| 117 | <executions> |
| 118 | <execution> |
| 119 | <id>get-target-version</id> |
| 120 | <phase>prepare-package</phase> |
| 121 | <goals> |
| 122 | <goal>exec</goal> |
| 123 | </goals> |
| 124 | </execution> |
| 125 | </executions> |
| 126 | <configuration> |
| 127 | <executable>echo</executable> |
| 128 | <workingDirectory>${project.build.directory}</workingDirectory> |
| 129 | <arguments> |
| 130 | <argument>${project.version}</argument> |
| 131 | </arguments> |
| 132 | <outputFile>${project.build.directory}/version</outputFile> |
| 133 | </configuration> |
| 134 | </plugin> |
| 135 | |
| 136 | </plugins> |
| 137 | </build> |
| 138 | |
| 139 | </project> |