mmis | 1336873 | 2018-03-01 16:50:11 +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 | |
liamfallon | 4ddca8b | 2018-10-31 17:17:01 +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 | 1336873 | 2018-03-01 16:50:11 +0000 | [diff] [blame] | 22 | |
| 23 | <modelVersion>4.0.0</modelVersion> |
| 24 | |
| 25 | <parent> |
| 26 | <groupId>org.onap.policy.engine</groupId> |
| 27 | <artifactId>packages</artifactId> |
Pamela Dragosh | b874f12 | 2019-04-16 10:18:43 -0400 | [diff] [blame^] | 28 | <version>1.3.7-SNAPSHOT</version> |
mmis | 1336873 | 2018-03-01 16:50:11 +0000 | [diff] [blame] | 29 | </parent> |
| 30 | |
mmis | 1336873 | 2018-03-01 16:50:11 +0000 | [diff] [blame] | 31 | <artifactId>docker</artifactId> |
mmis | 1336873 | 2018-03-01 16:50:11 +0000 | [diff] [blame] | 32 | <packaging>pom</packaging> |
| 33 | <name>Policy Engine - Docker build</name> |
| 34 | <description>ONAP Policy Docker Build</description> |
| 35 | |
| 36 | <properties> |
| 37 | <nexusproxy>https://nexus.onap.org</nexusproxy> |
| 38 | </properties> |
| 39 | |
| 40 | <build> |
| 41 | <plugins> |
mmis | 842fdfc | 2018-03-06 16:36:00 +0000 | [diff] [blame] | 42 | <plugin> |
| 43 | <groupId>org.apache.maven.plugins</groupId> |
| 44 | <artifactId>maven-dependency-plugin</artifactId> |
| 45 | <executions> |
| 46 | <execution> |
| 47 | <id>copy-pe-zip</id> |
| 48 | <phase>prepare-package</phase> |
| 49 | <goals> |
| 50 | <goal>copy</goal> |
| 51 | </goals> |
| 52 | <configuration> |
| 53 | <outputDirectory>${project.build.directory}/policy-pe</outputDirectory> |
| 54 | <overWriteReleases>false</overWriteReleases> |
| 55 | <overWriteSnapshots>true</overWriteSnapshots> |
| 56 | <artifactItems> |
| 57 | <artifactItem> |
| 58 | <groupId>org.onap.policy.engine</groupId> |
| 59 | <artifactId>install</artifactId> |
| 60 | <version>${project.version}</version> |
| 61 | <type>zip</type> |
| 62 | <destFileName>install.zip</destFileName> |
| 63 | </artifactItem> |
| 64 | </artifactItems> |
| 65 | </configuration> |
| 66 | </execution> |
| 67 | </executions> |
| 68 | </plugin> |
| 69 | <plugin> |
| 70 | <artifactId>maven-resources-plugin</artifactId> |
| 71 | <version>3.0.2</version> |
| 72 | <executions> |
| 73 | <execution> |
| 74 | <id>copy-resources</id> |
| 75 | <phase>prepare-package</phase> |
| 76 | <goals> |
| 77 | <goal>copy-resources</goal> |
| 78 | </goals> |
| 79 | <configuration> |
| 80 | <outputDirectory>${project.build.directory}/policy-pe</outputDirectory> |
| 81 | <resources> |
| 82 | <resource> |
| 83 | <directory>src/main/docker</directory> |
mmis | 842fdfc | 2018-03-06 16:36:00 +0000 | [diff] [blame] | 84 | </resource> |
| 85 | </resources> |
| 86 | </configuration> |
| 87 | </execution> |
| 88 | </executions> |
| 89 | </plugin> |
mmis | 1336873 | 2018-03-01 16:50:11 +0000 | [diff] [blame] | 90 | <plugin> |
| 91 | <groupId>org.codehaus.mojo</groupId> |
| 92 | <artifactId>exec-maven-plugin</artifactId> |
| 93 | <version>1.6.0</version> |
| 94 | <executions> |
| 95 | <execution> |
| 96 | <id>get-target-version</id> |
| 97 | <phase>prepare-package</phase> |
| 98 | <goals> |
| 99 | <goal>exec</goal> |
| 100 | </goals> |
| 101 | </execution> |
| 102 | </executions> |
| 103 | <configuration> |
| 104 | <executable>echo</executable> |
| 105 | <workingDirectory>${project.build.directory}</workingDirectory> |
| 106 | <arguments> |
| 107 | <argument>${project.version}</argument> |
| 108 | </arguments> |
| 109 | <outputFile>${project.build.directory}/version</outputFile> |
| 110 | </configuration> |
| 111 | </plugin> |
| 112 | |
| 113 | </plugins> |
| 114 | </build> |
| 115 | |
| 116 | </project> |