Jorge Hernandez | 638480e | 2019-02-07 15:58:58 -0600 | [diff] [blame^] | 1 | <!-- |
| 2 | ============LICENSE_START======================================================= |
| 3 | ONAP |
| 4 | ================================================================================ |
| 5 | Copyright (C) 2019 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-applications.controlloop.packages</groupId> |
| 28 | <artifactId>packages</artifactId> |
| 29 | <version>1.4.0-SNAPSHOT</version> |
| 30 | </parent> |
| 31 | |
| 32 | <artifactId>docker-controlloop</artifactId> |
| 33 | <packaging>pom</packaging> |
| 34 | |
| 35 | <name>docker-controlloop</name> |
| 36 | <description>ONAP Policy Control Loop PDP-D Docker Build</description> |
| 37 | |
| 38 | <build> |
| 39 | <plugins> |
| 40 | <plugin> |
| 41 | <groupId>org.apache.maven.plugins</groupId> |
| 42 | <artifactId>maven-dependency-plugin</artifactId> |
| 43 | <executions> |
| 44 | <execution> |
| 45 | <id>copy-cl-apps-zip</id> |
| 46 | <phase>prepare-package</phase> |
| 47 | <goals> |
| 48 | <goal>copy</goal> |
| 49 | </goals> |
| 50 | <configuration> |
| 51 | <outputDirectory>${project.build.directory}/policy-pdpd-cl</outputDirectory> |
| 52 | <overWriteReleases>false</overWriteReleases> |
| 53 | <overWriteSnapshots>true</overWriteSnapshots> |
| 54 | <artifactItems> |
| 55 | <artifactItem> |
| 56 | <groupId>org.onap.policy.drools-applications.controlloop.packages</groupId> |
| 57 | <artifactId>apps-controlloop</artifactId> |
| 58 | <version>${project.version}</version> |
| 59 | <type>zip</type> |
| 60 | <destFileName>apps-controlloop.zip</destFileName> |
| 61 | </artifactItem> |
| 62 | </artifactItems> |
| 63 | </configuration> |
| 64 | </execution> |
| 65 | </executions> |
| 66 | </plugin> |
| 67 | <plugin> |
| 68 | <artifactId>maven-resources-plugin</artifactId> |
| 69 | <executions> |
| 70 | <execution> |
| 71 | <id>copy-resources</id> |
| 72 | <phase>prepare-package</phase> |
| 73 | <goals> |
| 74 | <goal>copy-resources</goal> |
| 75 | </goals> |
| 76 | <configuration> |
| 77 | <outputDirectory>${project.build.directory}/policy-pdpd-cl</outputDirectory> |
| 78 | <resources> |
| 79 | <resource> |
| 80 | <directory>src/main/docker</directory> |
| 81 | </resource> |
| 82 | </resources> |
| 83 | </configuration> |
| 84 | </execution> |
| 85 | </executions> |
| 86 | </plugin> |
| 87 | |
| 88 | <plugin> |
| 89 | <groupId>org.codehaus.mojo</groupId> |
| 90 | <artifactId>exec-maven-plugin</artifactId> |
| 91 | <executions> |
| 92 | <execution> |
| 93 | <id>get-target-version</id> |
| 94 | <phase>prepare-package</phase> |
| 95 | <goals> |
| 96 | <goal>exec</goal> |
| 97 | </goals> |
| 98 | </execution> |
| 99 | </executions> |
| 100 | <configuration> |
| 101 | <executable>echo</executable> |
| 102 | <workingDirectory>${project.build.directory}</workingDirectory> |
| 103 | <arguments> |
| 104 | <argument>${project.version}</argument> |
| 105 | </arguments> |
| 106 | <outputFile>${project.build.directory}/version</outputFile> |
| 107 | </configuration> |
| 108 | </plugin> |
| 109 | |
| 110 | </plugins> |
| 111 | </build> |
| 112 | |
| 113 | </project> |