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 | |
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"> |
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 | <modelVersion>4.0.0</modelVersion> |
Pamela Dragosh | 0e16acf | 2017-02-14 19:45:48 -0500 | [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> |
Pamela Dragosh | 0e16acf | 2017-02-14 19:45:48 -0500 | [diff] [blame] | 32 | |
Pamela Dragosh | fd307be | 2018-08-28 18:10:51 -0400 | [diff] [blame^] | 33 | <artifactId>base</artifactId> |
| 34 | <packaging>pom</packaging> |
Pamela Dragosh | 0e16acf | 2017-02-14 19:45:48 -0500 | [diff] [blame] | 35 | |
Pamela Dragosh | fd307be | 2018-08-28 18:10:51 -0400 | [diff] [blame^] | 36 | <name>Base Package</name> |
| 37 | <description>ONAP Policy Drools PDP Packaging</description> |
Pamela Dragosh | 0e16acf | 2017-02-14 19:45:48 -0500 | [diff] [blame] | 38 | |
Pamela Dragosh | fd307be | 2018-08-28 18:10:51 -0400 | [diff] [blame^] | 39 | <build> |
| 40 | <plugins> |
| 41 | <plugin> |
| 42 | <artifactId>maven-assembly-plugin</artifactId> |
| 43 | <executions> |
| 44 | <execution> |
| 45 | <goals> |
| 46 | <goal>single</goal> |
| 47 | </goals> |
| 48 | <phase>package</phase> |
| 49 | <configuration> |
| 50 | <descriptors> |
| 51 | <descriptor>src/assembly/zip.xml</descriptor> |
| 52 | </descriptors> |
| 53 | <appendAssemblyId>false</appendAssemblyId> |
| 54 | </configuration> |
| 55 | </execution> |
| 56 | </executions> |
| 57 | </plugin> |
| 58 | </plugins> |
| 59 | </build> |
Pamela Dragosh | 0e16acf | 2017-02-14 19:45:48 -0500 | [diff] [blame] | 60 | |
Pamela Dragosh | fd307be | 2018-08-28 18:10:51 -0400 | [diff] [blame^] | 61 | <profiles> |
| 62 | <profile> |
| 63 | <id>unix_pe_version</id> |
| 64 | <activation> |
| 65 | <os> |
| 66 | <family>!windows</family> |
| 67 | </os> |
| 68 | </activation> |
| 69 | <build> |
| 70 | <plugins> |
| 71 | <plugin> |
| 72 | <groupId>org.codehaus.mojo</groupId> |
| 73 | <artifactId>exec-maven-plugin</artifactId> |
| 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> |
| 85 | <argument>mkdir -p target ; echo |
| 86 | -e |
| 87 | 'version="${project.version}"\ndescription="ONAP |
| 88 | Drools |
| 89 | PDP"\nbuildTag="'"${BUILD_TAG}"'"\ncommit="'"${GIT_COMMIT}"'"\ntimestamp="${maven.build.timestamp}"' |
| 90 | >target/build.info</argument> |
| 91 | </arguments> |
| 92 | </configuration> |
| 93 | </execution> |
| 94 | </executions> |
| 95 | </plugin> |
| 96 | </plugins> |
| 97 | </build> |
| 98 | </profile> |
| 99 | </profiles> |
Pamela Dragosh | 0e16acf | 2017-02-14 19:45:48 -0500 | [diff] [blame] | 100 | |
| 101 | </project> |