mmis | 824a75e | 2018-03-02 18:04:48 +0000 | [diff] [blame] | 1 | <!-- |
| 2 | ============LICENSE_START======================================================= |
| 3 | ONAP Policy Engine - Docker files |
| 4 | ================================================================================ |
Pamela Dragosh | fd307be | 2018-08-28 18:10:51 -0400 | [diff] [blame] | 5 | Copyright (C) 2017-2018 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 | |
Pamela Dragosh | fd307be | 2018-08-28 18:10:51 -0400 | [diff] [blame] | 21 | <project xmlns="http://maven.apache.org/POM/4.0.0" |
| 22 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 23 | 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] | 24 | |
Pamela Dragosh | fd307be | 2018-08-28 18:10:51 -0400 | [diff] [blame] | 25 | <modelVersion>4.0.0</modelVersion> |
mmis | 824a75e | 2018-03-02 18:04:48 +0000 | [diff] [blame] | 26 | |
Pamela Dragosh | fd307be | 2018-08-28 18:10:51 -0400 | [diff] [blame] | 27 | <parent> |
| 28 | <groupId>org.onap.policy.drools-pdp</groupId> |
| 29 | <artifactId>packages</artifactId> |
| 30 | <version>1.3.0-SNAPSHOT</version> |
| 31 | </parent> |
mmis | 824a75e | 2018-03-02 18:04:48 +0000 | [diff] [blame] | 32 | |
Pamela Dragosh | fd307be | 2018-08-28 18:10:51 -0400 | [diff] [blame] | 33 | <artifactId>docker</artifactId> |
| 34 | <packaging>pom</packaging> |
| 35 | <name>Policy Drools PDP - Docker build</name> |
| 36 | <description>ONAP Policy Drools PDP Docker Build</description> |
mmis | 824a75e | 2018-03-02 18:04:48 +0000 | [diff] [blame] | 37 | |
Pamela Dragosh | fd307be | 2018-08-28 18:10:51 -0400 | [diff] [blame] | 38 | <properties> |
| 39 | <nexusproxy>https://nexus.onap.org</nexusproxy> |
| 40 | </properties> |
mmis | 824a75e | 2018-03-02 18:04:48 +0000 | [diff] [blame] | 41 | |
Pamela Dragosh | fd307be | 2018-08-28 18:10:51 -0400 | [diff] [blame] | 42 | <build> |
| 43 | <plugins> |
| 44 | <plugin> |
| 45 | <groupId>org.apache.maven.plugins</groupId> |
| 46 | <artifactId>maven-dependency-plugin</artifactId> |
| 47 | <executions> |
| 48 | <execution> |
| 49 | <id>copy-drools-zip</id> |
| 50 | <phase>prepare-package</phase> |
| 51 | <goals> |
| 52 | <goal>copy</goal> |
| 53 | </goals> |
| 54 | <configuration> |
| 55 | <outputDirectory>${project.build.directory}/policy-drools</outputDirectory> |
| 56 | <overWriteReleases>false</overWriteReleases> |
| 57 | <overWriteSnapshots>true</overWriteSnapshots> |
| 58 | <artifactItems> |
| 59 | <artifactItem> |
| 60 | <groupId>org.onap.policy.drools-pdp</groupId> |
| 61 | <artifactId>install-drools</artifactId> |
| 62 | <version>${project.version}</version> |
| 63 | <type>zip</type> |
| 64 | <destFileName>install-drools.zip</destFileName> |
| 65 | </artifactItem> |
| 66 | </artifactItems> |
| 67 | </configuration> |
| 68 | </execution> |
| 69 | </executions> |
| 70 | </plugin> |
| 71 | <plugin> |
| 72 | <artifactId>maven-resources-plugin</artifactId> |
| 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-drools</outputDirectory> |
| 82 | <resources> |
| 83 | <resource> |
| 84 | <directory>src/main/docker</directory> |
| 85 | </resource> |
| 86 | </resources> |
| 87 | </configuration> |
| 88 | </execution> |
| 89 | </executions> |
| 90 | </plugin> |
mmis | 19b1048 | 2018-03-06 17:48:31 +0000 | [diff] [blame] | 91 | |
Pamela Dragosh | fd307be | 2018-08-28 18:10:51 -0400 | [diff] [blame] | 92 | <plugin> |
| 93 | <groupId>org.codehaus.mojo</groupId> |
| 94 | <artifactId>exec-maven-plugin</artifactId> |
| 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> |
mmis | 824a75e | 2018-03-02 18:04:48 +0000 | [diff] [blame] | 113 | |
Pamela Dragosh | fd307be | 2018-08-28 18:10:51 -0400 | [diff] [blame] | 114 | </plugins> |
| 115 | </build> |
mmis | 824a75e | 2018-03-02 18:04:48 +0000 | [diff] [blame] | 116 | |
| 117 | </project> |