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