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