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> |
| 106 | <filtering>true</filtering> |
| 107 | </resource> |
| 108 | </resources> |
| 109 | </configuration> |
| 110 | </execution> |
| 111 | </executions> |
| 112 | </plugin> |
| 113 | |
mmis | 824a75e | 2018-03-02 18:04:48 +0000 | [diff] [blame] | 114 | <plugin> |
| 115 | <groupId>org.codehaus.mojo</groupId> |
| 116 | <artifactId>exec-maven-plugin</artifactId> |
| 117 | <version>1.6.0</version> |
| 118 | <executions> |
| 119 | <execution> |
| 120 | <id>get-target-version</id> |
| 121 | <phase>prepare-package</phase> |
| 122 | <goals> |
| 123 | <goal>exec</goal> |
| 124 | </goals> |
| 125 | </execution> |
| 126 | </executions> |
| 127 | <configuration> |
| 128 | <executable>echo</executable> |
| 129 | <workingDirectory>${project.build.directory}</workingDirectory> |
| 130 | <arguments> |
| 131 | <argument>${project.version}</argument> |
| 132 | </arguments> |
| 133 | <outputFile>${project.build.directory}/version</outputFile> |
| 134 | </configuration> |
| 135 | </plugin> |
| 136 | |
| 137 | </plugins> |
| 138 | </build> |
| 139 | |
| 140 | </project> |