blob: 1762daf03d576ad121cd68c9d03079b669c02275 [file] [log] [blame]
Pamela Dragosh0e16acf2017-02-14 19:45:48 -05001<!--
2 ============LICENSE_START=======================================================
3 Policy Packages
4 ================================================================================
Pamela Dragoshfd307be2018-08-28 18:10:51 -04005 Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
Ram Krishna Verma565dc1f2020-02-05 16:51:06 -05006 Modifications Copyright (C) 2020 Bell Canada.
Pamela Dragosh0e16acf2017-02-14 19:45:48 -05007 ================================================================================
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
liamfallon99200202018-10-31 16:00:08 +000022<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 Dragosh0e16acf2017-02-14 19:45:48 -050023
Pamela Dragoshfd307be2018-08-28 18:10:51 -040024 <modelVersion>4.0.0</modelVersion>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -050025
Pamela Dragoshfd307be2018-08-28 18:10:51 -040026 <parent>
27 <groupId>org.onap.policy.drools-pdp</groupId>
Ram Krishna Verma565dc1f2020-02-05 16:51:06 -050028 <artifactId>drools-packages</artifactId>
jhhd8c487e2021-03-11 18:40:45 -060029 <version>1.9.0-SNAPSHOT</version>
Pamela Dragoshfd307be2018-08-28 18:10:51 -040030 </parent>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -050031
Pamela Dragoshfd307be2018-08-28 18:10:51 -040032 <artifactId>base</artifactId>
33 <packaging>pom</packaging>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -050034
Pamela Dragoshfd307be2018-08-28 18:10:51 -040035 <name>Base Package</name>
36 <description>ONAP Policy Drools PDP Packaging</description>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -050037
Pamela Dragoshfd307be2018-08-28 18:10:51 -040038 <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 Dragosh0e16acf2017-02-14 19:45:48 -050059
Pamela Dragoshfd307be2018-08-28 18:10:51 -040060 <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}"'
liamfallon99200202018-10-31 16:00:08 +000089 &gt;target/build.info</argument>
Pamela Dragoshfd307be2018-08-28 18:10:51 -040090 </arguments>
91 </configuration>
92 </execution>
93 </executions>
94 </plugin>
95 </plugins>
96 </build>
97 </profile>
98 </profiles>
Pamela Dragosh0e16acf2017-02-14 19:45:48 -050099
100</project>