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. |
Ram Krishna Verma | 565dc1f | 2020-02-05 16:51:06 -0500 | [diff] [blame] | 6 | Modifications Copyright (C) 2020 Bell Canada. |
Pamela Dragosh | 0e16acf | 2017-02-14 19:45:48 -0500 | [diff] [blame] | 7 | ================================================================================ |
| 8 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 9 | you may not use this file except in compliance with the License. |
| 10 | You may obtain a copy of the License at |
| 11 | |
| 12 | http://www.apache.org/licenses/LICENSE-2.0 |
| 13 | |
| 14 | Unless required by applicable law or agreed to in writing, software |
| 15 | distributed under the License is distributed on an "AS IS" BASIS, |
| 16 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 17 | See the License for the specific language governing permissions and |
| 18 | limitations under the License. |
| 19 | ============LICENSE_END========================================================= |
| 20 | --> |
| 21 | |
liamfallon | 9920020 | 2018-10-31 16:00:08 +0000 | [diff] [blame] | 22 | <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] | 23 | |
Pamela Dragosh | fd307be | 2018-08-28 18:10:51 -0400 | [diff] [blame] | 24 | <modelVersion>4.0.0</modelVersion> |
Pamela Dragosh | 0e16acf | 2017-02-14 19:45:48 -0500 | [diff] [blame] | 25 | |
Pamela Dragosh | fd307be | 2018-08-28 18:10:51 -0400 | [diff] [blame] | 26 | <parent> |
| 27 | <groupId>org.onap.policy.drools-pdp</groupId> |
Ram Krishna Verma | 565dc1f | 2020-02-05 16:51:06 -0500 | [diff] [blame] | 28 | <artifactId>drools-packages</artifactId> |
jhh | d8c487e | 2021-03-11 18:40:45 -0600 | [diff] [blame] | 29 | <version>1.9.0-SNAPSHOT</version> |
Pamela Dragosh | fd307be | 2018-08-28 18:10:51 -0400 | [diff] [blame] | 30 | </parent> |
Pamela Dragosh | 0e16acf | 2017-02-14 19:45:48 -0500 | [diff] [blame] | 31 | |
Pamela Dragosh | fd307be | 2018-08-28 18:10:51 -0400 | [diff] [blame] | 32 | <artifactId>base</artifactId> |
| 33 | <packaging>pom</packaging> |
Pamela Dragosh | 0e16acf | 2017-02-14 19:45:48 -0500 | [diff] [blame] | 34 | |
Pamela Dragosh | fd307be | 2018-08-28 18:10:51 -0400 | [diff] [blame] | 35 | <name>Base Package</name> |
| 36 | <description>ONAP Policy Drools PDP Packaging</description> |
Pamela Dragosh | 0e16acf | 2017-02-14 19:45:48 -0500 | [diff] [blame] | 37 | |
Pamela Dragosh | fd307be | 2018-08-28 18:10:51 -0400 | [diff] [blame] | 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> |
Pamela Dragosh | 0e16acf | 2017-02-14 19:45:48 -0500 | [diff] [blame] | 59 | |
Pamela Dragosh | fd307be | 2018-08-28 18:10:51 -0400 | [diff] [blame] | 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> |
| 73 | <executions> |
| 74 | <execution> |
| 75 | <id>create-version-file</id> |
| 76 | <goals> |
| 77 | <goal>exec</goal> |
| 78 | </goals> |
| 79 | <phase>prepare-package</phase> |
| 80 | <configuration> |
| 81 | <executable>/bin/bash</executable> |
| 82 | <arguments> |
| 83 | <argument>-c</argument> |
| 84 | <argument>mkdir -p target ; echo |
| 85 | -e |
| 86 | 'version="${project.version}"\ndescription="ONAP |
| 87 | Drools |
| 88 | PDP"\nbuildTag="'"${BUILD_TAG}"'"\ncommit="'"${GIT_COMMIT}"'"\ntimestamp="${maven.build.timestamp}"' |
liamfallon | 9920020 | 2018-10-31 16:00:08 +0000 | [diff] [blame] | 89 | >target/build.info</argument> |
Pamela Dragosh | fd307be | 2018-08-28 18:10:51 -0400 | [diff] [blame] | 90 | </arguments> |
| 91 | </configuration> |
| 92 | </execution> |
| 93 | </executions> |
| 94 | </plugin> |
| 95 | </plugins> |
| 96 | </build> |
| 97 | </profile> |
| 98 | </profiles> |
Pamela Dragosh | 0e16acf | 2017-02-14 19:45:48 -0500 | [diff] [blame] | 99 | |
| 100 | </project> |