Pamela Dragosh | 0e16acf | 2017-02-14 19:45:48 -0500 | [diff] [blame] | 1 | <!-- |
| 2 | ============LICENSE_START======================================================= |
| 3 | Policy Packages |
| 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. |
Pamela Dragosh | 0e16acf | 2017-02-14 19:45:48 -0500 | [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 | |
liamfallon | 9920020 | 2018-10-31 16:00:08 +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"> |
Pamela Dragosh | 0e16acf | 2017-02-14 19:45:48 -0500 | [diff] [blame] | 22 | |
Pamela Dragosh | fd307be | 2018-08-28 18:10:51 -0400 | [diff] [blame] | 23 | <modelVersion>4.0.0</modelVersion> |
Pamela Dragosh | 0e16acf | 2017-02-14 19:45:48 -0500 | [diff] [blame] | 24 | |
Pamela Dragosh | fd307be | 2018-08-28 18:10:51 -0400 | [diff] [blame] | 25 | <parent> |
| 26 | <groupId>org.onap.policy.drools-pdp</groupId> |
| 27 | <artifactId>packages</artifactId> |
liamfallon | 9920020 | 2018-10-31 16:00:08 +0000 | [diff] [blame] | 28 | <version>1.4.0-SNAPSHOT</version> |
Pamela Dragosh | fd307be | 2018-08-28 18:10:51 -0400 | [diff] [blame] | 29 | </parent> |
Pamela Dragosh | 0e16acf | 2017-02-14 19:45:48 -0500 | [diff] [blame] | 30 | |
Pamela Dragosh | fd307be | 2018-08-28 18:10:51 -0400 | [diff] [blame] | 31 | <artifactId>base</artifactId> |
| 32 | <packaging>pom</packaging> |
Pamela Dragosh | 0e16acf | 2017-02-14 19:45:48 -0500 | [diff] [blame] | 33 | |
Pamela Dragosh | fd307be | 2018-08-28 18:10:51 -0400 | [diff] [blame] | 34 | <name>Base Package</name> |
| 35 | <description>ONAP Policy Drools PDP Packaging</description> |
Pamela Dragosh | 0e16acf | 2017-02-14 19:45:48 -0500 | [diff] [blame] | 36 | |
Pamela Dragosh | fd307be | 2018-08-28 18:10:51 -0400 | [diff] [blame] | 37 | <build> |
| 38 | <plugins> |
| 39 | <plugin> |
| 40 | <artifactId>maven-assembly-plugin</artifactId> |
| 41 | <executions> |
| 42 | <execution> |
| 43 | <goals> |
| 44 | <goal>single</goal> |
| 45 | </goals> |
| 46 | <phase>package</phase> |
| 47 | <configuration> |
| 48 | <descriptors> |
| 49 | <descriptor>src/assembly/zip.xml</descriptor> |
| 50 | </descriptors> |
| 51 | <appendAssemblyId>false</appendAssemblyId> |
| 52 | </configuration> |
| 53 | </execution> |
| 54 | </executions> |
| 55 | </plugin> |
| 56 | </plugins> |
| 57 | </build> |
Pamela Dragosh | 0e16acf | 2017-02-14 19:45:48 -0500 | [diff] [blame] | 58 | |
Pamela Dragosh | fd307be | 2018-08-28 18:10:51 -0400 | [diff] [blame] | 59 | <profiles> |
| 60 | <profile> |
| 61 | <id>unix_pe_version</id> |
| 62 | <activation> |
| 63 | <os> |
| 64 | <family>!windows</family> |
| 65 | </os> |
| 66 | </activation> |
| 67 | <build> |
| 68 | <plugins> |
| 69 | <plugin> |
| 70 | <groupId>org.codehaus.mojo</groupId> |
| 71 | <artifactId>exec-maven-plugin</artifactId> |
| 72 | <executions> |
| 73 | <execution> |
| 74 | <id>create-version-file</id> |
| 75 | <goals> |
| 76 | <goal>exec</goal> |
| 77 | </goals> |
| 78 | <phase>prepare-package</phase> |
| 79 | <configuration> |
| 80 | <executable>/bin/bash</executable> |
| 81 | <arguments> |
| 82 | <argument>-c</argument> |
| 83 | <argument>mkdir -p target ; echo |
| 84 | -e |
| 85 | 'version="${project.version}"\ndescription="ONAP |
| 86 | Drools |
| 87 | PDP"\nbuildTag="'"${BUILD_TAG}"'"\ncommit="'"${GIT_COMMIT}"'"\ntimestamp="${maven.build.timestamp}"' |
liamfallon | 9920020 | 2018-10-31 16:00:08 +0000 | [diff] [blame] | 88 | >target/build.info</argument> |
Pamela Dragosh | fd307be | 2018-08-28 18:10:51 -0400 | [diff] [blame] | 89 | </arguments> |
| 90 | </configuration> |
| 91 | </execution> |
| 92 | </executions> |
| 93 | </plugin> |
| 94 | </plugins> |
| 95 | </build> |
| 96 | </profile> |
| 97 | </profiles> |
Pamela Dragosh | 0e16acf | 2017-02-14 19:45:48 -0500 | [diff] [blame] | 98 | |
| 99 | </project> |